Monday, May 21, 2007

How-To Shrink A VMWare Virtual Disk Image

Have you ever come across a situation where you needed to reduce the size of your VMWare Virtual Disk Image? I found various links via Google on how to expand the Virtual Disk Image size, but none on how to reduce its size. Well, I will show you how to shrink your VMWare Virtual Disk Image below using VMWare's FREE VMWare Converter software. NOTE: this process can also be done using Norton Ghost, but because I don't have it, I will only being showing how to do this using VMWare Converter.

As with any type of operation in which you stand to lose your data, make sure you have a good backup first. I've copied my Virtual Disk Image file into a temporary folder before performing these steps.


1. Choose Import Machine to start the VMWare Converter Import Wizard.









2. Select the option for Standalone virtual machine, backup or disk image. If the image is from ESX Server or VMWare VirtualCenter select the option ESX server or VirtualCenter virtual machine.

3. Select the image to be re-sized.













4. Click the drop-down arrow under New Disk Space and enter the new disk size for the image.







5. Choose the location to save the re-sized image to.












6. Choose where you will import this image to.












7. Select how the image will be created.













8. Choose how you want the image's NICs mapped.











9. Next you are able to perform some customizations on the new image if you choose. If you don't want to do this at this time just click Next.



10. The creation of the new image will begin, this process may take some time depending on what size you set for your new image.

11. Once the new image has been created I perform a shrink to reduce it to the size that it currently occupies with data.


That's all there is to shrinking a VMWare Virtual Disk Image to a new size.

12 comments:

Anonymous said...

Thanks, for the how to! Now I can fit my VM on my pen drive! I thought I would add the following note for anyone else who runs into the same exception I did while following the directions on your blog.

When I clicked Next between step 3 and step 4 I got the following exception displayed in a message box: "Unable to connect to VMware Converter Agent on the local machine". I could not continue. This was because the VMWare Converter Service was disabled on my machine. I manually enabled and started the service (Control Panel > Administrative Tools > Services > VMWare Converter Service). After that everything went smoothly!

Anonymous said...

You are welcome and thanks for the tip.

Anonymous said...

I uninstalled a number of unwanted programs from my Win XP VMWare image and following your steps it reduced in size from 13GB --> 4.5GB. Unfortunately upon restart it triggered the dreaded Win XP reactivation...and it appears that I'm at my limit!
Do you know of any (other?) way to shrink the image and avoid the reactivation?
Thanks.

Anonymous said...

I hadn't experienced that scenario, so at the moment I'm unaware of a way to avoid that. It's kinda difficult to reproduce, but I'll see what I can come up with.

Anonymous said...

Does anyone know if this works with VMware vCenter?

Many Thanks

Russ

Anonymous said...

What version of VMware Converter are you working with?

Lance Spence said...

At the time I wrote this it was 3.0 I believe.

Anonymous said...

Thanks for the easy-to-use guide. The screenshots helped me a lot.

Anonymous said...

Hi,
I could not get the VmWAre Converter software. I got Vmware vCentre Converter Standalone software but it do not have import machine option.

please help..

Anonymous said...

There appears to be a much simpler way!
see:
http://blog.sharevm.com/2008/12/12/how-does-shrink-with-vmware-disk-manager-work/

knev said...

Do you have the link for download vmware converter, could not get on search

Please help

Lance Spence said...

Try the following link.

http://www.softpedia.com/get/System/System-Miscellaneous/VMware-Converter.shtml