Converting KVM, Xen disks to VMware via QEMU

One way to migrate to an ESXi (VMware) hypervisor is to convert a KVM or Xen disk using the qemu-img disk handling software included in the QEMU virtualization system (link to the distributions http://www.qemu.org/download/#windows).

To convert, use the command with the keys specified in the example:

qemu-img convert -f qcow2 -O vmdk -o adapter_type=lsilogic,subformat=streamOptimized,compat6 xen-or-kvm-disk.qcow2 converted-disk.vmdk

It is assumed that the source disk format qcow2, the virtual machine using the disk, is turned off.

Then you need to copy the created disk to the ESXi host and use the utility to work with disks from VMware:

vmkfstools -i converted-disk.vmdk my-new-vm-disk.vmdk -d thin

Notes:

In the case of migration from Xen, the virtual machine may be in paravirtualization mode, which will require replacing the core to run on ESXi.
In the case of migrating Fedora, RHEL and CentOS that store the UUID of a disk in initramfs, it may be necessary to re-create the disk, to do this in rescue mode you need to use: dracut --regenerate-all --force

  • 47 Users Found This Useful
Was this answer helpful?

Related Articles

vCloud Connector - installation and migration instructions for VM from vCenter to vCloud

To migrate VM from vCenter to vCloud, you must plan to locate the vCloud Connector Server and...

Converting a VHD disk to VMDK format with StarWind V2V Converter

The free product StarWind V2V Converter makes it easy to convert virtual machines and their disks...

Exporting a machine with VMware vSphere client

If there is a task to upload the virtual machine in OVF or OVA format and access is performed...

Creating a machine from vmdk disk, exporting to OVF

To create a machine and export to OVF, we suggest using VMware Workstation Pro From the File...

Linux physical server migration

Make a copy of your hard drive with the command: dd if=/dev/sda of=/mnt/backup/sda.img bs=8M...