Hello,
I am experiencing an issue with the CloudInit Drive 'auto-regenerating' after a clone, a virtual hardware hotswap, or even a reboot. The Regenerate Image button must be manually clicked in the GUI.
Have I come across a bug? Is there a workaround for this perhaps? This is essentially completely blocking the automation of any VM provisioning with this method.
Any help would be hugely appreciated !
I am experiencing an issue with the CloudInit Drive 'auto-regenerating' after a clone, a virtual hardware hotswap, or even a reboot. The Regenerate Image button must be manually clicked in the GUI.
- I have used Packer to create an image of Alma 9 Linux with cloud-init installed. It also pushed the below line to /etc/cloud/cloud.cfg as per the docs.
datasource_list: [ NoCloud, ConfigDrive ]
- I then provision a VM via Terraform with only the ipconfig0 for cloud-init defined.
- After booting if I run
systemctl start cloud-init
I get a line in the logs saying no datasources found. If I do any combination of hotswapping hardware, rebooting, running cloud-init manually, no datasources are found and the ipconfig0 IP. - After clicking the Regenerate Image button in the GUI and rebooting the VM, the CloudInit Drive and IP will be picked up by the VM as expected.
Have I come across a bug? Is there a workaround for this perhaps? This is essentially completely blocking the automation of any VM provisioning with this method.
Any help would be hugely appreciated !
Last edited: