Creating a Proxmox template from a Cloud Image, cloning to create additional VMs

Download a Cloud Image as a .qcow2 image from https://cloud-images.ubuntu.com/

Steps to create template and cloning a template are from docs here: https://pve.proxmox.com/wiki/Cloud-Init_Support

Create Proxmox Template from image

Note that the path to the image is an absolute path.

I’m numbering my base image/template as 200 but you can use any value that’s not already in use:

qm create 200 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci
qm set 200 --scsi0 local-lvm:0,import-from=/root/ubuntu-server-24.04-cloudimg-amd64.img
qm set 200 --ide2 local-lvm:cloudinit
qm set 200 --boot order=scsi0
qm template 200

Clone template to a new VM

qm clone 200 201 -name [VM_NAME]
qm set 201 --sshkey [YOUR_SSH_KEY].pub
qm set 201 --ipconfig0 ip=[YOUR-IP]/24,gw=[YOUR-GW]
qm disk resize 201 scsi0 20G