I have done this on Windows Server 2008 R2 before and it had worked perfectly. Why doesn't it work on Windows Server 2012?
After some searching around in the technet forums, I had found a way to do it.
Open up Powershell with Administrator priviledges and execute the following commands:
- Mount-VHD -Path [path to your .vhdx] -ReadOnly
- Optimize-VHD -Path [path to your .vhdx] -Mode Full
- Dismount-VHD -Path [path to your .vhdx]
The .vhdx size should be reduced to what is consumed by the VM - in my case, back to 30GB.
No comments:
Post a Comment