Post

Proxmox Cloud Image template

Proxmox Cloud Image template

Choose your Ubuntu Cloud Image https://cloud-images.ubuntu.com/

Download Ubuntu Server 24.04 LTS (Noble Numbat)

1
wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img

Create a new virtual machine ID is 8000

1
qm create 8000 --memory 2048 --core 2 --name ubuntu-cloud-dev --net0 virtio,bridge=vmbr0

Import the downloaded Ubuntu disk to local-lvm storage

1
qm disk import 8000 noble-server-cloudimg-amd64.img local-lvm

Attach the new disk to the vm as a scsi drive on the scsi controller

1
qm set 8000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-8000-disk-0

Add cloud init drive

1
qm set 8000 --ide2 local-lvm:cloudinit

Make the cloud init drive bootable and restrict BIOS to boot from disk only

1
qm set 8000 --boot c --bootdisk scsi0

Add serial console

1
qm set 8000 --serial0 socket --vga serial0

Update Cloud-init configuration

Update User, Password=none, SSH Public Key (.pub) and IP Config = DHCP.

Create template.

1
qm template 8000

Sources

Photo by Rodion Kutsaiev on Unsplash

Perfect Proxmox Template with Cloud Image and Cloud Init https://technotim.live/posts/cloud-init-cloud-image/

Want to thank me?

🤝 Buy me a coffee https://buymeacoffee.com/dbplatz

This post is licensed under CC BY 4.0 by the author.