New
#1
Compact a Hyper-V VHD
I have Hyper-V VM with the Windows 10 Pro Technical Preview Build 9926 as the guest, and Windows 8.1 Pro as the host OS. I've been running it for 3 months now, with at least 2 build updates. But I can't compact the VHD. The used drive space on the VM guest is 16.8 GB, while the size of the .vhdx is 24.8 GB. That is 8 GB space that could be removed.
I've tried doing the compact within Hyper-V Manager. But I can't get the .vhdx file to shrink any more. I don't want to defrag the virtual drive from the guest OS because my host OS is running from a solid state drive.
So how do I recover those 8 GB on my host machine?