Going to use cloud-init on a Ubuntu Cloud Image from: https://cloud-images.ubuntu.com/
mv nobel-server-cloudimg-amd64.img nobel-server-cloudimg-amd64.qcow2
qemu-img resize nobel-server-cloudimg-amd64.qcow2 32G
qm importdisk <template-id> nobel-server-cloudimg-amd64.qcow2 <datastorage>
4. in gui add the unused disk and add the disk to the boot order.
5. add a cloud init disk and configure it in the menu cloud-init
6. boot the vm up
7. install updates, qemu-guest-agent and other wanted packages like monitoring
8. execute
sudo truncate -s 0 /etc/machine-id /var/lib/dbus/machine-id
sudo cloud-init clean
sudo history -c
9. shutdown vm from gui and turn into template
From: https://www.learnlinux.tv/proxmox-full-course/?playlist=d6a7b30&video=16eef6b and https://www.learnlinux.tv/proxmox-ve-how-to-build-an-ubuntu-22-04-template-updated-method/