Convert a QCOW2, RAW, VMDK or VDI image to VHD. Exe convert source. Img-O vpc-o subformat = dynamic dest. Subformat can be either “dynamic” or “fixed” for VHD (vpc) or VHDX. Note: use the fixed VHD subformat for Azure, the. Cd /media/wherever-the-image-is/ sudo apt-get install qemu-kvm qemu-img convert test.qcow2 -O raw disk.img Move /media/wherever-the-image-is/disk.img somewhere that you're not about to write to. If you're planning to write it to the disk that it's currently sitting on, you'll want to stick it on a separate internal disk, or, worst-comes-to.
QEMU disk image utility for Windows. It is used for converting, creating and consistency checking of various virtual disk formats. It’s compatible with Hyper-V, KVM, VMware, VirtualBox and Xen virtualization solutions.This build has been optimized for Windows Server (x64), including Windows Nano Server.
Usage examples
Convert a QCOW2, RAW, VMDK or VDI image to VHDX
Convert a QCOW2, RAW, VMDK or VDI image to VHD