Billing

Creating Template of Ubuntu Server on Proxmox

Add cloud init drive

https://cloud-images.ubuntu.com/minimal/releases/jammy/release/

ubuntu-22.04-minimal-cloudimg-amd64.img

qm set –serial0 socket –vga serial0

qm set 900 –serial0 socket –vga serial0

Change the file extension of the image to .qcow2

mv ubuntu-22.04-minimal-cloudimg-amd64.img ubuntu-22.04.qcow2

Resize the downloaded cloud image

qemu-img resize ubuntu-22.04.qcow2 32G

Import the cloud image into Proxmox

qm importdisk 900 ubuntu-22.04.qcow2 local-lvm

after preparing template

clone the template to VM.

check ip address of new vm to check if DHCP is assigning ip addresses

install qemu agent.

sudo apt install qemu-guest-agent

to activate the qemu guest agent restart the VM

sudo reboot now