Feb 252012

It’s quite easy to shrink dynamic disk files in VMWare – just go to VM Settings -> select the desired disk -> Utilities -> Compact or use command line tool vmware-vdiskmanager. You’ve done this and… the VMDK size is still the same.

So… before you shrink the virtual drive make sure you fill the empty disk space with zeros!
On linux/unix/OS X – Lion start terminal / shell and execute:
cat /dev/zero > disk.fill;sync;sleep 1;sync;rm -f disk.fill
after the job is finished you can shrink your VMDK drive.

Have fun.

 Posted by at 10:01

  One Response to “VMWare shrink *nix / OS X virtual disk (VMDK)”

  1. This is cool!

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>