Archive/XCP CloudStack

From Xen
Revision as of 17:46, 31 January 2013 by Nulllptr (talk | contribs) (XCP 1.5 Compatibility)


CloudStack ( is a mature cloud orchestration technology that works with KVM, VMWare, XenServer, and XCP. CloudStack was acquired by Citrix in 2011, and is the orchestration system of choice for XCP and XenServer.

ACS 4.0.0

NOTE: The steps re: repos are not necessary for ACS 4.0.0. Create a homogeneous cluster or perform a clean install and use "add host" to import the hosts into cloudstack.

Renaming repos below will cause a "Duplicate name: xcp:main" which will prevent adding hosts. Clean reinstall or removing xs:main and xe pool-eject is needed for proper import.

XCP 1.5 Compatibility

Before installing CloudStack, there are a few compatibility fixes to apply:

  1. Rename the installed repo (this name changed between 1.1 and 1.5) to get the CloudStack supplemental pack installed.
  2. Fix the get_mtime bug by replacing the file with a custom built version and actually include the python stats module to get access to the functions necessary.
  3. Do not modify the XAPI version as some other HOWTOs suggest. For CloudStack to work the API version should be kept as it is from the install ("1.4.90").

To accomplish the above, run these commands on each XCP host being adding them to CloudStack:

  1. cp /etc/xensource/installed-repos/xcp:main /etc/xensource/installed-repos/xs:main
  2. mv /opt/xensource/sm/ /opt/xensource/sm/
  3. wget -O /opt/xensource/sm/
  4. chmod 755 /opt/xensource/sm/

Alternatively, you can modify the NFSSR script on the CloudStack server itself before the install:

  1. mv /usr/lib/cloud/agent/scripts/vm/hypervisor/xenserver/xcpserver/ /usr/lib/cloud/agent/scripts/vm/hypervisor/xenserver/xcpserver/
  2. wget -O /usr/lib/cloud/agent/scripts/vm/hypervisor/xenserver/xcpserver/

What CloudStack changes on a XCP Host