其他分享
首页 > 其他分享> > 压缩virtualbox的vdi

压缩virtualbox的vdi

作者:互联网

vdi是虚拟盘镜像。
guest已经删除了很多文件,但vdi没有自己释放。
我的guest是Linux mint,host是macOS。
压缩的办法是
首先在guest执行dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile
然后在host执行VBoxManage modifymedium --compact /your/path/linuxmint-disk001.vdi
记得在host执行的时候,把/your/path替换成真实的路径。
DONE.

标签:bigemptyfile,guest,压缩,host,vdi,path,your,virtualbox
来源: https://www.cnblogs.com/gimp/p/13758056.html