« My New Role | Main

VM Ware Fusion - Cleanup Deleted Snapshot Fails - How to get it working again

I *love* developing in a VMWare virtual machine.  I can tweak and break things in the OS as badly as I want then simply revert back to a snapshot or another backup to get back to a good state.  But my VM for Vista is huge and when it gets bloated it takes up even more space.

Starting with VMWare Fusion 2.0 you can now have multiple snapshots.  I haven't found a need for this so when I create a new snapshot I delete my old one.  When you delete an old snapshot, VMWare will cleanup old files that it no longer needs thus keeping the size of the virtual machine as small as it can be.

Recently I had an error occur when VMWare was cleaning up the deleted files.  Ever since then whenever I deleted older snapshots I would get an error saying I didn't have enough disk space to delete older files and my virtual machine continued to take up more and more disk space.

Here's how you get things working again:

1. Copy your virtual machine off to a drive that has plenty of disk space - the recommendation I saw was at least enough free space as the size of your virtual machine.  I used one of the external hard drives I keep my virtual machine backups on.

2. Start the copied virtual machine up so that its running from the bigger disk.

3. Take a snapshot.

4. Delete the snapshot you just took - this will cause VMWare to start its cleanup and since its now on a disk with plenty of room it will be able to complete.  Cleanup can take a while so be patient.

5. Copy the cleaned up virtual machine back.

For me this shrunk my virtual machine fro 56 Gigs back to 39 - big difference!

Posted by Nick Harris on November 14, 2008 at 12:21 PM | Permalink

Comments

One additional note - if you're having trouble moving the cleaned up virtual machine back, try the following:

http://communities.vmware.com/thread/177181;jsessionid=92CE51F4A5123065C2D94FA6E8F3A145?tstart=0

For anyone interested in what was causing the copy failure even though VMware Fusion was not running nor was the vmware-vmx process running we were able to narrow it down, using TeamViewer, to the Applications folder within the Virtual Machine's Package and by deleting it the copy proceed without issue and the Virtual Machine is up and running back on the internal drive drive.

Note: Deleting the Applications folder within the Virtual Machine's Package is safe to do as it is self-regenerating however be sure to shutdown, not suspend the Virtual Machine before deleting it.

Anyway, John it was nice talking with you and thanks for letting me make the remote connection to make this easier to clear up. Have a good one. Woody

Posted by: Nick Harris | Nov 14, 2008 7:34:35 PM

The comments to this entry are closed.