This is an old revision of the document!
Convert a VMWare VMDK disk image to Xen HVM
http://linux.cloudibee.com/2008/11/vmware-to-xen-conversion
Here are the steps for converting Vmware windows/linux guest to Xen format. You need qemu-img tool (from the qemu-utils package) for the conversion.
Extra Step for Converting a Vmware Windows VM Guest
You first have to ensure that your image has IDE drivers installed (see Microsoft kb314082)
Conversion steps
Check the format of the vmware vmdk file
Halt the vmware VM.
# qemu-img info guest22-flat.vmdk image: fooguest22-flat.vmdk file format: raw virtual size: 15G disk size: 15G
If the file format is “raw”, we do not need to convert the image file using qemu-img convert, just rename to file with the .img extension. If it is not “raw”, use “qemu-img” to convert the image to raw format.
Convert Using qemu-img
# qemu-img convert guest22-flat.vmdk -O raw /volumes/guest22/guest22.img
Create Xen Config File
Create the Xen config file in /etc/xen/guest22, with the renamed/converted image file as disk.
disk = [ 'file:/volumes/guest22/guest22.img,hda,w' ]
Boot up the Xen domU Guest
It should boot up fine.