Mac – How to shrink the VMware image

dynamic-diskvirtual machinevmware

I created an image of a Windows Server 2008 system using the free VMware Player and set the maximum hard drive size to 100GB. I then gave those image files – 30GB at the time – to a server hosting company. A few weeks later I asked them for a copy of them back; the image should not have changed much in size, but the files I got back were the full 100GB size.

I am not a VMware expert at all, so I have two questions:

  1. How/why did they expand the whole dynamic disk?
  2. Is there any way I can somehow shrink this image down to the size that actually contains data?

I tried the VMware converter, and it can't seem to read my image (vmdk) file; it just outputs a generic error.

Best Answer

My speculation is that when they created the VM from your image they pre-allocated the full size of the images (this can have better performance). When they exported them you got the full image.

I doubt you can shrink the images with VMware player. VMware Workstation comes with vmware-vdiskmanager that can apparently convert from a fixed size disk to a growable disk reducing the size of the image. I have never tried this so I cannot say how well it works.

The manual is here: http://www.vmware.com/support/developer/vddk/vddk12_diskmanager.pdf

Related Question