Prepare an image for import into the Rackspace Open Cloud
You can use the Cloud Images service to import custom virtual machine disk images into the Rackspace Open Cloud. In order for these images to boot correctly, prepare them according to the following requirements and instructions.
General requirements for preparing images for export include the following items:
The image must be a single file in the Virtual Hard Disk (VHD) file format.
Note: A Cloud Files object, whether a Dynamic Large Object (DLO) or a Static Large Object (SLO), is considered to be a single file for this purpose.
Images must not expand to a system disk larger than 160 GB.
Note: Images with system disks larger than 160 GB can be exported but cannot be imported into the Rackspace Open Cloud.
If you have exported an image from the Rackspace Open Cloud, it is already in the VHD format that is required for import.
Microsoft product use rights do not allow the use of License Mobility for Windows licenses.
Note: Because of the limitations related to this software platform, import is not available for Windows images.
Prepare an image
Server image in vhd, raw, qcow2, or vmdk format
Linux server with qemu-img installed
[Citrix Hypervisor] (https://www.citrix.com/downloads/citrix-hypervisor/) or XCP-ng 7.0 or later
Install a Citrix Hypervisor locally
When you get to the Virtual Machine Storage page, choose Enable thin provisioning-Optimized Storage for XenDesktop. This enables you to create the correct image type for Rackspace cloud (VHD).
To learn more about preparing an image on Linux, see Cloud image creation format and process.
Export images from another cloud
Amazon EC2®, Microsoft Azure®, and Google Compute Engine® can export images in the VHD format, which is required for Rackspace Cloud. (On Google Compute, this format is called VPC).
To export images from another cloud, use the following recommended workflow:
In the other cloud, perform the following steps:
- Create an image of the server that you want to bring over to the Rackspace Open Cloud.
- Boot a new server from the image that you just created.
- Make appropriate modifications to the new server so that it can work in the Rackspace Open Cloud.
- Create an image of the new server.
- Export the image in VHD format.
While offline, perform the following step:
- Upload the image to your Rackspace Cloud Files account in the region in which you want to boot your server.
Using Rackspace Cloud Images, perform the following step:
- Import the image into the Rackspace Open Cloud.
Set the proper image metadata
After the server is imported, set the following metadata key-value pairs on the image by using the Cloud Servers API:
|Key||Value||What it Does|
|vm_mode||hvm||Boots in the correct virtualizaton mode. If you do not set this correctly, you get bootloader errors.|
|img_config_drive||mandatory||Attaches the Openstack config-drive for metadata information (network, SSH keys) to servers built from this image.|
|ssh_user||varies||The default SSH user for this image (such as ‘debian’, ‘ubuntu’, ‘admin’, and so on.)|
©2020 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License