Skip to content

Instantly share code, notes, and snippets.

@Zillionx
Last active May 22, 2016 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Zillionx/2bae6ec9936708b0fbd8 to your computer and use it in GitHub Desktop.
Save Zillionx/2bae6ec9936708b0fbd8 to your computer and use it in GitHub Desktop.
Shrinking virtual disks on OSX VMWare fusion via CLI
#!/bin/sh
# remove vm snapshots
# change your path /path_to_your/disc.vmdk
#
# source: http://snipurl.com/maggini_vmdisc_osx
cd '/Applications/VMware Fusion.app/Contents/Library'
# defrag
./vmware-vdiskmanager -d path_to_your/disc.vmdk
# shrink
./vmware-vdiskmanager -k path_to_your/disc.vmdk
@Zillionx
Copy link
Author

Zillionx commented Nov 2, 2015

Tested with OSX 10.11 El Capitan - VMware Fusion 8.0.2 and VM OS X 10.11.vmdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment