vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
149 stars 33 forks source link

destroy_cloud_config_vdi_after_boot deletes the cloud config VDI too soon #325

Open wkleinhenz opened 2 months ago

wkleinhenz commented 2 months ago

Currently Im using cloud config files to bootstrap a VM Image created using packer. this is mainly being used to set host specific things like the network configuration and host name. when using destroy_cloud_config_vdi_after_boot = true, the expected_ip_cidr setting and the default power_state setting which i believe is Running the cloud config VDI is deleted as soon as it meets the running state, but this means that the VM isn't able to access the cloud config files.

Proposed changes: