Let's say I have a VM that is Windows 2008 R2 with a 100 GB Hard disk and therefore the corresponding VMDK file is 100 GB in size. Now let's say I want to move 30 GB of files in that VM to somewhere else and now only need a 70 GB hard drive. Is there a way to make the VMDK file smaller? I know I can make them bigger but can anything be done in the opposite direction? I would be using ESXi v5 Enterprise edition.
VMware
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
8/22/2022 - Mon
vmwarun - Arun
A VMDK can be thin or thick provisioned depending on your requirement. If you have deployed a VM with 100GB VMDK in thin format, let's say that you have installed an OS which has consumed only 20GB, then only 20GB would be used from a storage perspective.
From a Windows perspective, there is an option to shrink the disks although the ratio of shrinkage depends on how much data is currently occupied by the guest.
coolsport00
The easiest and most 'supported' way to do so according to VMware is to use vCenter Converter Standalone to do a V2V. You run the very least potential of VM corruption. During the Conversion wizard, you have the option to choose the disk and shrink it to the size you want. it.
From a Windows perspective, there is an option to shrink the disks although the ratio of shrinkage depends on how much data is currently occupied by the guest.