The hard disk space occupied by vmware only increases. Even if the file is deleted, the occupied hard disk space will not be released. It took a while, and there was not enough space. Solution:
Method 1: Cut a part of the *sxxx.vmdk file to another drive letter.
Open Debian_Lenny.vmdk with ultraEdit, and you will see the file list. Relocate the file you cut. Just start the virtual machine.
This method is useless.
Method 2: The virtual machine has this function when VMware Tools is installed, and the virtual Windows system has VMware Tools in the control panel.
After opening, you can see a list of Shrink, select the partition to be compressed, and click Prepare for Shrink to prepare for compression. After completing the compression preparation in the virtual machine system, it will jump back to the real operating system, and a progress box will prompt that the virtual machine file is being compressed, and finally the compression work will be prompted in the virtual machine system.
Virtual Linux/FreeBSD system can use vmware-toolbox. Install vmware-tools in linux, and then click strike on vmware-toolbox on the command line.
Note: This method should ensure the space on your current disk. = The size of the virtual machine to be attacked. So if you don't have enough disk space, you can move some files to other disks first, then strike, and finally move the moved files back.
Method 3: There is a vmware-vdiskmanager under the installation directory of VMware.
This is the method I often use under the window. It usually takes a few minutes to complete.
Shut down the client and at the host command line:
vmware-vdiskmanager - k *。 vmdk
Note: The * here is the file name of the virtual machine vmdk file, including the path, for example:
vmware-vdiskmanager.exe-k " G:\ mivm \ net \ winxp . vmdk "
The execution process will show the progress, and after completion, you will be prompted:
Shrinkage: 100% complete.
Contraction completed successfully.
However, there is not much room for reduction.
The compression function has some restrictions, such as it cannot be used on virtual machines with pre-allocated space, there can be no snapshots, only partitions can be compressed, and physical disks cannot be compressed. Please refer to the user manual for details. In addition, when viewing the help, you should click "User Manual" instead of "Help Topic" in the help menu, otherwise you will only see some very basic VMware software operation configurations, and many things will not be found.