Hi, I'm having some problems creating templates from virtual machines with snapshots. Virtual machines use thin provisioning, but when I take a snapshot the virtual disk is marked as thick (it seems to be a known bug ), although it actually uses thin provisioning. So, when I clone the virtual machine and mark it as template, this new template is configured as thick provisioning.
I've not been able to force the new template to be created as thin provisioning via the Perl SDK. Does anyone know how could I force the template to use thin provisioning??
Thanks in advance.
Hi,
In general, in order to convert the thick disks to thin disks using CloneVM_Task API, you would need to set the VirtualMachineCloneSpec.location.transform as VirtualMachineRelocateTransformation.sparse. To perform the reverse operation, i.e. to convert a thin disk to thick disk, set the transform property as VirtualMachineRelocateTransformation.flat
I hope this might prove helpful to you!
- Angela -
Hi,
In general, in order to convert the thick disks to thin disks using CloneVM_Task API, you would need to set the VirtualMachineCloneSpec.location.transform as VirtualMachineRelocateTransformation.sparse. To perform the reverse operation, i.e. to convert a thin disk to thick disk, set the transform property as VirtualMachineRelocateTransformation.flat
I hope this might prove helpful to you!
- Angela -
Thanks AngelaS, it solved the problem!!!!