This is a set of shell scripts that I have used to drive proxmox
Run proxmox_image_builder.sh to build an image. The script will do the following when run with default options:
- Look for a file called ./proxmox_tools.cfg which contains variable options. If it doesn't exist it will run with default options.
- Lookup the latest LTS version of Ubuntu from the Ubuntu website.
- Set the coreect URl for that version of Ubuntu.
- Get the next highest VMID from the proxmox server.
- Download the Ubuntu image from the Ubuntu website.
- Add cloud-init scripts and configs to the image.
- Run virt-customise against the image using ./cloud/k8s_mods.txt
- Upload the image to the proxmox server.
- Enable firewall and add base rules to the image.