本文只介紹手動壓縮方法。
1.首先要在Guest系統上,把所有沒用的數據寫零
*NIX,執行:
dd if=/dev/zero of=/bigemptyfile rm /bigemptyfile
Windows,執行(sdelete.exe):
sdelete -c -z C:\
2.關閉Guest,開始壓縮硬盤文件
Virtual Box:
VBoxManage modifyhd --compact my_hd.vdi
VMware:
vmware-vdiskmanager -k my_hd.vmdk