Why? Because it is faster to test installs and adding items to the DietPi installer with snapshots! Also it makes a great small Linux installation to run other items off in Hyper-V.
- Go get the VirtualBox x64 image from the DietPi site. http://dietpi.com/#five
- Download the QEMU disk image utility from https://cloudbase.it/qemu-img-windows/
- Extract the VirtualBox image, it is a ova file. At this point we need to take the actual disk image out of this file. I use 7zip for this purpose. Right click on the ova file and open archive. Then extract the VMDK file out.
- Extract the QEMU disk image utility to the same folder as the VMDK file and then run the following command changing the file names as needed:
.\qemu-img.exe convert '.\DietPi_v120_VirtualBox-x86_64-(Jessie)-disk1.vmdk' -O vhdx -o subformat=dynamic '.\DietPi_v12 0_VirtualBox-x86_64-(Jessie)-disk1.vhdx'
Now you need to open up Hyper-V and make a new VM using the image you just extracted. You may want to keep a copy around to make more images in the future.