I was recently involved in a conversation where people needed to convert a handful of KVM virtual machine images to Hyper-V. Now, the QEMU project already includes the necessary tools to do this – but what if you do not have a Linux computer handy? Well – thankfully the people over at Cloudbase Solutions have recently ported the qemu-img tool to Windows.
You can download it here: http://www.cloudbase.it/qemu-img-windows/
To use this tool to convert a KVM image to Hyper-V you just need to run:
qemu-img convert -f qcow2 “SourceDisk.img” -O vhdx -o subformat=dynamic “Destination.vhdx”
To use it to convert a VMware image to Hyper-V you need to run:
qemu-img convert -f vmdk “SourceDisk.vmdk” -O vhdx -o subformat=dynamic “Destination.vhdx”