Skip to content

Transform VHD to QCOW2

Posted on:May 5, 2022 at 08:14 PM

Me again..

So there is this tool: Disk2Vhd.

It allows to make a virtual hard disk (vhd) from your current disk. You can select the partition you want and write them onto the disk. Why would you want that? We need it to use Windows software, which doesn’t work with wine or for example, requires certificates, which can not be obtian for a linux machine. (Don’t click any of the checkboxes in the GUI.) If you select the partition to export, put it onto a USB drive or on a partition, which can also be mounted in Linux.

Now boot into Linux, mount the drive and run this command.

qemu-img convert -O qcow2 /data/source.vhd /data/output.qcow2

Next, create a Windows VM and use this as