Using Ubuntu 22.04 LTS cloud image, Cloud-Init, Terraform and Ansible to automate the creation of Ubuntu server VMs on Proxmox 8.0.4. These servers need to have Virtual CD Drives.
I downloaded the Ubuntu 22.04 LTS cloud image and converted it to a VM template without a CD Drive on the image. I cloned the image from the Proxmox UI and it worked without any issues issue. I then created VMs from Terraform and no issues.
I then added the CD Drive during the image creation with “qm set 9000 --cdrom none” and via the Proxmox UI and then first created the via Terraform. The creation got stuck in the Cloud-Init and went on for 5 min at that point I manually stopped the process in Terraform. I attempted the same thing this time using Proxmox UI to create the CD Drive in the templet and used Terraform to create a VM with the same results.
To check if the issue was with Terraform I created a VM clone of the image with the Proxmox UI and it got stuck performing the Cloud-Init of the build.
The issue is definitely in the running of the Cloud-Init portion of the processes.
Any ideas on how to work around this?
Thanks.
I downloaded the Ubuntu 22.04 LTS cloud image and converted it to a VM template without a CD Drive on the image. I cloned the image from the Proxmox UI and it worked without any issues issue. I then created VMs from Terraform and no issues.
I then added the CD Drive during the image creation with “qm set 9000 --cdrom none” and via the Proxmox UI and then first created the via Terraform. The creation got stuck in the Cloud-Init and went on for 5 min at that point I manually stopped the process in Terraform. I attempted the same thing this time using Proxmox UI to create the CD Drive in the templet and used Terraform to create a VM with the same results.
To check if the issue was with Terraform I created a VM clone of the image with the Proxmox UI and it got stuck performing the Cloud-Init of the build.
The issue is definitely in the running of the Cloud-Init portion of the processes.
Any ideas on how to work around this?
Thanks.