Sunday, December 11, 2011

Can you shrink the sparse disk image of a Mac OS X guest OS in VMWare Fusion?

http://superuser.com/questions/325233/can-you-shrink-the-sparse-disk-image-of-a-mac-os-x-guest-os-in-vmware-fusion

In short: Erase free space on the guest OS’s disk from within the guest OS using Disk Utility, then shrink the guest OS’s disk from the host OS using vmware-vdiskmanager at the command line. In long: In the guest OS: Open Disk Utility. Select the guest OS’s partition. Go to the “Erase” tab. Click on the “Erase Free Space” button. Make sure “Zero Out Deleted Files” is selected, and erase the free space. Once it’s finished, close Disk Utility, and shut down the guest OS. In the host OS: Open Terminal, and type /Library/Application Support/VMware Fusion/vmware-vdiskmanager -k, followed by a space, and then the path to your guest OS’s virtual disk file. Hit return. The guest OS’s virtual disk file is found within its virtual machine file. E.g. if your virtual machine file is at /Users/you/VM, the path to its virtual disk is /Users/you/VM.vmwarevm/VM.vmdk.

No comments:

Mimmo97 Blog Archive