Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Templates

Prepare virtual machine and container templates and add them to Paymenter.

On this page

Virtual machine templates#

Virtual machines are cloned from a cloud-init template that sits in the pool. A cloud image only allows SSH keys by default, so prepare it once to accept the root password from the welcome email and to run the guest agent:

apt install libguestfs-tools
wget https://cloud.debian.org/images/cloud/trixie/latest/debian-13-genericcloud-amd64.qcow2
virt-customize -a debian-13-genericcloud-amd64.qcow2 \
  --install qemu-guest-agent \
  --run-command "printf 'PermitRootLogin yes\nPasswordAuthentication yes\n' > /etc/ssh/sshd_config.d/10-hosting.conf" \
  --run-command "printf 'ssh_pwauth: true\ndisable_root: false\n' > /etc/cloud/cloud.cfg.d/99-hosting.cfg" \
  --truncate /etc/machine-id

Then turn the image into a template:

qm create 9000 --name debian-13 --pool customers --memory 1024 --cores 1 --ostype l26 \
  --scsihw virtio-scsi-single --net0 virtio,bridge=vmbr0 --agent enabled=1 --serial0 socket
qm set 9000 --scsi0 local-zfs:0,import-from=/root/debian-13-genericcloud-amd64.qcow2
qm set 9000 --ide2 local-zfs:cloudinit --boot order=scsi0
qm template 9000

Repeat this for every operating system you want to offer. The disk is grown to the size of the product on creation.

Container templates#

pveam update
pveam download local debian-13-standard_13.6-1_amd64.tar.zst

Adding templates to Paymenter#

Go to Proxmox VE → Templates and click Import from Proxmox. Pick the server and the guest type, and every template Proxmox has is added. Give each one the name your customers see, for example Debian 13, and set the order they appear in. The On Proxmox column shows whether the template still exists with that VMID; when you renumber a template in Proxmox, change the VMID here and every product follows.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.