You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module vdc_vapp_vm must implement override_template_disk.size_in_mb while calling instantiateVAppTemplate instead to reconfigure the machine after creation ( mandatory on fast provisioned Storage Policies )
Actual Behavior
Tries to reconfigure the virtual machine and fails
│ Error: error creating VM from template: error managing internal disks : error updating VM disks: error updating VM disks: API Error: 400: [ 7930ecce-417c-4ddf-bc46-e9adfe93348e ] The hard drives of the virtual machine "my-testhost" cannot be modified while the virtual machine has snapshots.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered:
Right now, we don't plan to use the instantiateVAppTemplate for creating vApps because of multiple reasons. As a workaround, could you perhaps create a new vApp template in the UI with the custom disk size and then create VMs using that? That way you shouldn't need to use override_template_disk at all.
Hello @drgogeta86 , we have chosen a slightly different path, but giving the same result (a full VM clone, instead of linked one) and it is implemented in #1206.
The reason why we didn't choose to use instantiateVAppTemplate is that it creates a vApp and a VM at the same time. This does not suit Terraform model we have.
We have done investigation to find out if the reconfigurevApp endpoint can also change disk, but unfortunately it isn't supported.
Terraform Version
Terraform v1.3.9
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
https://gist.github.com/drgogeta86/612c6eb808c6ad3945ef00ca29042963
Expected Behavior
The module
vdc_vapp_vm
must implementoverride_template_disk.size_in_mb
while callinginstantiateVAppTemplate
instead to reconfigure the machine after creation ( mandatory on fast provisioned Storage Policies )Actual Behavior
Tries to reconfigure the virtual machine and fails
│ Error: error creating VM from template: error managing internal disks : error updating VM disks: error updating VM disks: API Error: 400: [ 7930ecce-417c-4ddf-bc46-e9adfe93348e ] The hard drives of the virtual machine "my-testhost" cannot be modified while the virtual machine has snapshots.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: