Create cloud-init template
Download the image on the Hypervisor (Proxmox)
wget https://cdimage.debian.org/cdimage/cloud/bullseye/20220121-894/debian-11-generic-amd64-20220121-894.raw
2. Rename the image to something more normal:
mv debian-11-generic-amd64-20220121-894.raw debian11-cloudinit.raw
3. Create the VM with a free number
qm create 101
4. Import the raw image as disk for the vm (101 in our case) and specify the volume (vms in our case)
qm importdisk 101 debian11-cloudinit.raw vms
5. Change the Bus Device to SCSI, Tick Discard, Click add

6. Enable the SCSI Device as the boot device (Click enable)

7. Add a network device with the following config:

8. Set up cloudinit
storage device:

With the following config:

Set up credentials:

To configure network IP:

Example of IP and Gateway:

This will make it so that the VM starts with the defined params
Last updated