Shrinking the virtual disk in a Windows virtual machine
To shrink the virtual disk in a Windows virtual machine:
- Power on the Windows virtual machine.
- Open a Command Prompt with administrator privileges.
- Run these commands:
cd C:\Program Files\VMware\VMware Tools
C:\Program Files\VMware\VMware Tools> VMwareToolboxCmd help disk
This displays a list of options that are available for shrinking.
For example:
C:\Program Files\VMware\VMware Tools>VMwareToolboxCmd.exe disk shrink c:\
Please disregard any warnings about disk space for the duration of shrink process.
Progress: 100 [===========>]
Disk shrinking complete.
Shrinking the virtual disk in a Linux virtual machine
To shrink the virtual disk in a Linux virtual machine:
- Open Terminal.
- Run these commands:
cd /usr/bin
/usr/bin$ vmware-toolbox-cmd help disk
Shrinking the virtual disk in a Mac OS X virtual machine
To shrink the virtual disk in a Mac OS X virtual machine:
- Open Terminal.
- Run these commands:
cd /Library/Application Support/VMware Tools
./vmware-tools-cli help disk
Note: To perform a normal shrink operation, use the shrink only option.
Run all the commands after logging in to the virtual machine (Windows, Linux, Mac OS X).