Home TZ Proxmox VE Whmcs Module Ubuntu 24.04 Template

Ubuntu 24.04 Template

May 16, 2026 3 min read

Ubuntu 24.04 LTS Proxmox Cloud-Init Template

This documentation covers the automated deployment script for generating a fully functional Ubuntu 24.04 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 Ubuntu 24.04 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 10001

Copied!

Script is ready to paste into your terminal.

Last updated: May 16, 2026