Last active
May 22, 2016 07:24
-
-
Save Zillionx/2bae6ec9936708b0fbd8 to your computer and use it in GitHub Desktop.
Shrinking virtual disks on OSX VMWare fusion via CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested with OSX 10.11 El Capitan - VMware Fusion 8.0.2 and VM OS X 10.11.vmdk