Converting KVM/Xen Virtual Disks to VMware Format Using QEMU

One method for migrating to an ESXi (VMware) hypervisor involves converting KVM or Xen disks using the qemu-img disk utility, which is part of the QEMU virtualization system (download distributions here).

Conversion Command

Execute the following command with the specified parameters:

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

Prerequisites:

  • The source disk must be in qcow2 format

  • The virtual machine using this disk must be powered off

 

Post-Conversion Steps

  1. Copy the converted disk to your ESXi host

  2. Use VMware's disk management utility to optimize the disk:

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

Important Notes:

  1. Xen Paravirtualization:
    If migrating from Xen, the VM might be in paravirtualization mode, requiring a kernel replacement to run on ESXi.

  2. Fedora/RHEL/CentOS Migration:
    These distributions store disk UUIDs in initramfs. If needed, regenerate it in rescue mode by executing: dracut --regenerate-all --force

 

Have you tried Cloud4U services? Not yet?

Visit Website

Try for free

  • 47 Users Found This Useful
Was this answer helpful?

Related Articles

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...

Uploading and Downloading Virtual Machines in VMware vCloud Director

To upload the virtual machine from VMware vCloud Director:   Navigate to the "vApps" tab....

Migrating a Windows Physical Server to a Virtual Machine

Prerequisites VMware vCenter Converter Standalone must be installed on the source machine....

Exporting a Virtual Machine With VMware vSphere client

Using VMware vSphere Client Select the virtual machine you want to export Navigate to...

Converting VHD to VMDK Using StarWind V2V Converter

StarWind V2V Converter is a free tool that enables simple and convenient conversion of virtual...