Shrinking a Virtual Machine in Fusion

I trashed one of my Windows 7 virtual machines by running the ms12-020 DoS attack against it several times, so I deleted it. I planned to copy my other VM to make a new disposable target VM, but when I checked the size, it was 25 GB!

Opening the VM shows that the actual hard disk usage is only 14.2 GB.

That motivated me to figure out how to shrink a VM. Virtual disks are wasteful of space-they just increase in size until you put manual effort into shrinking them.

This tutorial guided me:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1001934

First, I ran Disk Cleanup in the Windows 7 guest OS, but there was nothing significant to be removed.

As recommended, I ran the defragmenter in the Windows 7 guest OS.

Although the "% analyzed" sat at 0%, Task Manager showed that the CPU was busy doing something.

I went away to do other things, and when I checked an hour later, it was done.

I shut down the Windows 7 guest. The VM was still 25 GB in size.

I clicked the "Clean Up Virtual Machine" button. The process started...

And completed after just a minute or two, reducing my VM to 13 GB.


Posted by Sam Bowne 5-29-12