Bash script downloading the image and creating a UEFI booted cloud-init ready Proxmox VM template from scratch.
Supports Ubuntu for now, by default uses a Noble image, and templates a q35 type VM using host
cpu and booted with UEFI bios, Qemu guest agent installed and ssh public key added - either user provided one or generated.
Usage:
- Customize vars file as required. Defaults are highly opinionated ;)
- Unless you add your ssh public key it will be generated. Public key can either be added as a String in vars (i.e. shorter ed25519 key), or you can just drop it into work directory named
authorizedKey.pub
Kudos to @andrewglass3 for his script as it showed me the overall flow of VM creation with Proxmox CLI.