

vmware-tools-cli disk list to see the available locations for wipe.If you have multiple partitions, you can wipe them individually and do a final shrink at the end: The / is a path to the file system to wipe empty space on.

When that's done, the VMDK shrink will be invoked without shutting down the VM, and show up as a progress bar over the VM window. This will first do a wipe of empty space one the file system (same as creating a zero-filled file) and show a progress in the guest Terminal. They added a CLI option that was super easy - do this from inside the guest OS: sudo /Library/Application\ Support/VMware\ Tools/vmware-tools-cli disk shrink /įrom mudaltsov at the VMware Commmunity Forums:Ī slightly easier method - the shrink functionality is built into the VMware Tools command-line utility: sudo /Library/Application\ Support/VMware\ Tools/vmware-tools-cli disk shrink / if your virtual machine file is at /Users/you/VM, the path to its virtual disk is /Users/you/VM.vmwarevm/VM.vmdk.įor the record, this shrunk a Snow Leopard VM of mine from 15 GB to 6 GB. The guest OS’s virtual disk file is found within its virtual machine file. Type 'space' then the path to the virtual disk file of your VM. & alias vmware-vdiskmanager="/Library/Application Support/VMware Fusion/vmware-vdiskmanager" || alias vmware-vdiskmanager="/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager" Or in the terminal of the guest OS when the partition is named 'Macintosh HD': diskutil secureErase freespace 0 Macintosh\ HD

Make sure “Zero Out Deleted Files” is selected, and erase the free space.Click on the “Erase Free Space” button.The file is a sparse disk image, and not pre-allocated.Įrase free space on the guest OS’s disk from within the guest OS using Disk Utility, then shrink the guest OS’s disk from the host OS using vmware-vdiskmanager at the command line.Aha - indeed you can, as per this thread on the VMWare discussion boards about this issue, assuming:
