Ask Your Question

Converting between image formats kvm -> xen for Rackspace cloud?

asked 2014-06-25 18:36:59 -0500

aricg gravatar image

updated 2014-06-27 16:43:32 -0500

smaffulli gravatar image

From the docs

The qemu-img convert command can do conversion between multiple formats, including raw, qcow2, VDI (VirtualBox), VMDK (VMWare) and VHD (Hyper-V).

Since hyperv and xen use the same container format, it was suggested to me that the conversion would be compatible. I tried using qem-image to convert a qcow2 disk to a .vhd

qemu-img convert -f qcow2 -O vpc ~/Downloads/Fedora-x86_64-20-20140407-sda.qcow2 Fedora.vhd

After uploading this image to the rackspace open cloud, it failed to build.

Server building... 10% complete
Error building server
ERROR (InstanceInErrorState): No valid host was found. Exceeded max scheduling attempts 3 for instance 26aff154-e887-4698-94d5-2f0a2c480d46

I am able to convert using a patched version of vhd_utils, however the patch is old and unsupported by the people at xen. The patched version also failed to work on fedora20 or ubuntu12.04. Only the version built on ubuntu14.04 was able to convert from qcow2 to xen properly.

I'd like to know what people are using to convert kvm to xen, or if I missed something.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-06-30 14:49:38 -0500

Everett Toews gravatar image

Have a look at this Rackspace Knowledge Center article, Preparing an image for import into the Rackspace open cloud . It links to the blog post you already referred to but look below that to the Alternative method. The stuff might be what you need instead.

edit flag offensive delete link more


Yes, am working on the team which is handling this workflow. Please try to use what is suggested above.

nikhil-komawar gravatar imagenikhil-komawar ( 2014-07-01 15:30:53 -0500 )edit

answered 2014-07-01 15:32:26 -0500

Do you have a development xenserver to test this image on? If your image works on the bare xenserver install then we can point you to the right direction to get necessary add-ons to be added to the image for making it work with Rackspace OpenCloud.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-06-25 18:36:59 -0500

Seen: 2,163 times

Last updated: Jul 01 '14