A bash script to create Linux cloud-init templates in Proxmox with a single command.
- Single command template creation
- Pre-configured cloud-init settings with QEMU guest agent integration
- Custom network and storage configuration
- VM deployment in ~30 seconds versus ~13 minutes with the traditional method
- Proxmox VE 9.0.10 (tested version)
- Install libguestfs-tools:
apt install libguestfs-tools -y- SSH public key imported for passwordless access
- Make the script executable:
chmod +x create-template.sh- Run the script:
./create-template.sh- Clone the template to deploy new VMs in ~30 seconds.
The script creates a VM template with the following defaults - customize cloud-init credentials before running:
- 2 CPU cores (x86-64-v2-AES)
- 2GB RAM
- VirtIO network bridge (vmbr0)
- 30GB disk space minimum
- OVMF BIOS with pre-enrolled keys
- Cloud-init ready
Created by Muller Matos