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