VMware Workstation Linux虚拟机收缩磁盘
CentOS7虚拟机随着日常使用占用空间越来越大,df查看磁盘其实并没有使用那么多,在VMware里可以不安装VMwareTools,也可使用Open-vm-tools进行压缩
#系统默认分区,压缩命令 vmware-toolbox-cmd disk shrink /
运行压缩命令提示错误
Shrink disk is disabled for this virtual machine. Shrinking is disabled for linked clones, parents of linked clones, pre-allocated disks, snapshots, or due to other factors. See the User's manual for more information. Unable to find partition /
删除掉此虚拟机的快照
再次运行压缩命令,正常显示进度条,此时会断开远程连接
VMware Workstation会显示压缩进度,压缩结束后重启虚拟机即可
本站所有文章均可随意转载,转载时请保留原文链接及作者。