Home TZ Proxmox VE Whmcs Module Debian 12 Template

Debian 12 Template

May 16, 2026 3 min read

Debian 12 Proxmox Cloud-Init Template

This documentation covers the automated deployment script for generating a fully functional Debian 12 (Bookworm) Cloud-Init template in Proxmox VE. Customize your environment variables below, and the script will update automatically.

Customize Your Script

Deployment Script

Converting to a Reusable Template

Before turning this VM into a Proxmox template, you must clean the internal state so cloned VMs do not share the same machine ID and SSH host keys. Log into the VM as root and run:

# Run INSIDE the Debian 12 VM
cloud-init clean --logs --seed
rm -rf /etc/ssh/ssh_host_*
truncate -s 0 /etc/machine-id
rm -f /var/lib/dbus/machine-id
ln -s /etc/machine-id /var/lib/dbus/machine-id
apt-get clean
history -c
history -w
poweroff

Once the VM has fully powered down, return to the Proxmox Host Shell and execute: qm template 11001

Copied!

Script is ready to paste into your terminal.

Last updated: May 16, 2026