Converting VMWare 1.0.6 preallocated virtual disks to growable

By andy February 16th, 2009

Running out of space on your VMWare Server? Try this to convert some of your larger preallocated disks to growable. This way they only consume the space on the disk that they currently need, and will not consume disk space on the host drive for disk space on the guest systems whic is in fact empty and unused.

Stop the VM, then:

vmware-vdiskmanager -r GuestVM.vmdk -t 0 NewGuestVM.vmdk

This will create a new, growable, copy of the original drive. Then you will need to point the VM at the new drive (or delete the original and rename the new one back to the same name as the old).

I assume there is a performance penalty for doing this. But if you are running out of space, this can at least buy you some time.

While you are messing around on the command line, you could use the following to defrag the VMDK file for better perfomance.

vmware-vdiskmanager -d Guest.vmdk

This entry was posted on Monday, February 16th, 2009 at 9:26 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply