VMware {code} Community
Humphry
Contributor
Contributor
Jump to solution

problem with snapshots and thin provisioning

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.

Reply
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

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 -

View solution in original post

Reply
0 Kudos
2 Replies
admin
Immortal
Immortal
Jump to solution

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 -

Reply
0 Kudos
Humphry
Contributor
Contributor
Jump to solution

Thanks AngelaS, it solved the problem!!!!

Reply
0 Kudos