VMware virtual machines in use, as software and data increase, the virtual disk occupies a larger amount of hard disk space, but after the data is deleted, it does not automatically reduce the physical hard disk space occupied
Instead, it continues to occupy the appropriate size. If you need to solve the above problem, you need to compress the WMware virtual disk, the author summarizes the commonly used three methods, respectively, as follows:
WMware version: 8.0.4 build-744019
Virtual machine system: CentOS release 6.3 (Final)
Method One, in the Linux system, if the installation of Vmware-tools only need to execute the following command
[[email protected]5201351 ~]# vmware-toolbox-cmd disk shrink/// can also specify other partitions
When the progress bar runs out, the SSH connection is disconnected, and the local terminal automatically starts compressing the disk.
Method Two, enter the Linux GUI, use the Vmware-toolbox command, open the Vmware-tools graphical interface.
[[email protected]5201351 ~]# vmware-toolbox // disk compression by Operation
The above command is just a preparation phase before the disk is compressed, and when the progress bar is complete, you will be prompted as follows, and clicking Yes will start compressing the disk.
Method Three: Operate on the virtual machine software, if you need to shut down the virtual machine operating system, press the operation.
With the virtual machine selected, right--->settings, select disk, select Compact under Utilities, the disk will be compressed immediately, as shown in the following:
Several methods of disk compression for VMware virtual machines