你好!
压缩VHD之前,请确保:
1. VM shutdown
2. 删除Snapshot,但是仍要做VM的backup。
然后按照Edit Disk 里的向导完成VHD压缩,具体的步骤,你可以参考以下文章:
http://blogs.technet.com/b/askcore/archive/2012/09/20/compacting-a-dynamically-expanding-virtual-hard-disk-in-windows-server-2012.aspx
如果压缩的效果不好,请尝试使用Precompact.exe,然后按照以下步骤:
1. 磁盘碎片整理在VM上
2. 运行 Pre-Compactor 在VM上
3. Compact Disk 在 Hyper-V console上
详细的信息请参考:
VHD Size on Physical Machine
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com