satis egitimisatis


Discussion on the state of cloud computing and open source software that helps build, manage, and deliver everything-as-a-service.

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that has been used in the blog.
  • Bloggers
    Bloggers Search for your favorite blogger from this site.
  • Login
Posted by on in Cloud Computing Trends
  • Font size: Larger Smaller
  • Hits: 5097
  • Print
  • Report this post

Running CloudStack in a virtualized environment

There are situations, such as training environment, in which it's desirable to run CloudStack in a virtualized environment. If you read the official documentation you'll see that you must have hypervisor hosts with hardware virtualization. However there are some nifty workarounds that you can use to setup a CloudStack environment all within a virtualized environment, such as your laptop. Obviously you wouldn't want to run it in production this way, but there are a number of realistic use cases where it makes sense.

I should note up front, that this doesn't work with all hypervisors, some of which only work with hardware virtualization, however it does at least work for XenServer. Also, you won't be able to install any OS as a virtual machine, you'll essentially be limited to Linux distros that support Xen paravirtualization, which thankfully is most of them.

You of course provision a virtual machine to act as your management server, database, secondary and primary storage. But then also provision additional virtual machines to act as XenServer hosts. Once you've installed all your virtual machines, but before you attempt to add the first hypervisor to your CloudStack environment, you'll need to login to your database and run the following commands:

mysql> INSERT INTO `cloud`.`configuration` (`category`, `instance`, `component`, `name`, `value`, `description`) VALUES ('Advanced', 'DEFAULT', 'management server', 'xen.check.hvm', 'false', 'Shoud we allow only the XenServers support HVM');  
mysql> commit
mysql> exit
The above command turns off the hardware virtualization check for XenServer.
Now you should be able to add your XenServer hosts to CloudStack.
Thanks to Hongxi Ma who originally wrote documentation on how to do this.
On a completely unrelated note, I also want to thank the folks at One Brick Tech as they recently helped cloudstack by letting us take over the CloudStack blog at wordpress
Rate this blog entry:
Trackback URL for this blog entry.
David Nalley is currently employed by Citrix as the Community Manager for the CloudStack project. In addition he's a long time contributor to the Fedora Project, where among other things he is currently serving on the Fedora Project Board. He's also contributed to in various forms to Cobbler, Zenoss,, OLPC Math4, and Sahana. He is a frequent speaker at Free Software conferences around the nation, and writes for a number of technical and open source media publications including Linux Pro Magazine and
  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Friday, 18 July 2014


Citrix supports the open source community via developer support and evangeslism. We have a number of developers and evangelists that participate actively in the open source community in Apache Cloudstack, OpenDaylight, Xen Project and XenServer. We also conduct educational activities via the Build A Cloud events held all over the world.