VMWare ESXi 5.5, thin provision still allocates full amount of space on disk

thin-provisioningvmware-esxi

I see a lot of questions and answers surrounding thin provisioning on VMWare ESXi but not exactly what I'm encountering. I am creating a brand new VM and specifying a 100GB thin provisioned hard disk. From all I've read, I'm expecting the physical size of the vmdk file to be less than 100GB. However, it is still creating a xxx-flat.vmdk that is 100GB.

I'm trying to set up a base system that I can then simply copy around and customize like I've done with VMWare Workstation in the past. Very easy! When I power up the copy, VMWare asks me if I've copied it, I answer "yes" and I'm off and running. However, with what appears to me to be a bug in ESXi 5.5, I'll be copying around a 100GB+ which means I'd be just about as fast to reinstall the OS every time I wanted a new instance.

Has anyone experienced this?

Best Answer

This is because thin-provisioned files in ESXi are sparse files. The method you're using to move them around won't preserve that thin attribute.

There are ways around this. Please see: Move VMware ESXi VM to new datastore - preserve thin-provisioning