HostOnNet Blog


Convert KVM, VMWare virtual machine to Hyper-V

QEMU disk image utility (qemu-img) can be used to convert virtual machine disk from one format to another.

https://linux.die.net/man/1/qemu-img

QEMU is part of Linux KVM virtual machine.

To convert KVM Virtual machine image to Hyper-V format, run

qemu-img convert -f qcow2 “kvm-virtal-machine.img” -O vhdx -o subformat=dynamic “hyperv-virtual-machine.vhdx”

To convert VMware image to Hyper-V

qemu-img convert -f vmdk "vmware-virtal-machine.vmdk” -O vhdx -o subformat=dynamic hyperv-virtual-machine.vhdx”

Posted in Virtualization