Hello,
Does anyone know a way of reasonably automating the deployment of an ubuntu vm starting from the cloud-image?
I'm mostly referring to this part:
https://pve.proxmox.com/wiki/Cloud-Init_Support
Does the proxmox api support this? Would I be able to do it with packer, for example? All the tutorial I've come either type in the commands manually or use packer with a standard iso, which takes quite a lot of time.
Does anyone know a way of reasonably automating the deployment of an ubuntu vm starting from the cloud-image?
I'm mostly referring to this part:
https://pve.proxmox.com/wiki/Cloud-Init_Support
Code:
# download the image
wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
# create a new VM
qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0
# import the downloaded disk to local-lvm storage
qm importdisk 9000 bionic-server-cloudimg-amd64.img local-lvm
# finally attach the new disk to the VM as scsi drive
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-1
Does the proxmox api support this? Would I be able to do it with packer, for example? All the tutorial I've come either type in the commands manually or use packer with a standard iso, which takes quite a lot of time.