Qemu-img convert -O qcow2 Windows.vhdx disk.qcow2 We want to convert it to a QCOW2 file, so we can take snapshots of it and compress it. Now that you’ve built QEMU, the Windows VHDX is probably done downloading. Dd if =/dev/zero of =pflash0.img bs =1m count =64ĭd if =/dev/zero of =pflash1.img bs =1m count =64ĭd if =QEMU_EFI.fd of =pflash0.img conv =notruncĭd if =QEMU_VARS.fd of =pflash1.img conv =notrunc