Skip to content

Instantly share code, notes, and snippets.

@kenwilcox
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenwilcox/846e985d0adf7977c4f9 to your computer and use it in GitHub Desktop.
Save kenwilcox/846e985d0adf7977c4f9 to your computer and use it in GitHub Desktop.
How to properly shrink the VMWare disk image

I know this is found online, This Gist is so I can easily find it.

  • Delete any Snapshots
  • In a terminal of the guest OS type:
  cat /dev/zero > whipefile; rm whipefile
  # That command fills the disk with zeros, once full it removes the file - This can take some time
  • From the terminal of the host OS type:
  vmware-vdiskmanager -k <full path to vmdk>
  # Example OSX
  /Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -k /Users/me/Documents/Virtual\ Machines/Mac\ OS\ X\ 10.10.vmwarevm/Virtual\ Disk.vmdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment