Here is how to add a Debain 11 Cloud Image to ProxMox so that it is a template. Most came from here. However, it was not setup for Debian 11 nor was it setup for local-lvm. So, here is how to get Debian 11 loaded into ProxMox

cd ~
# Get the latest image from debian...
wget https://cdimage.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2

# create vm called debian11-cloud with 2048 memory and net0 at vmbr0
qm create 9110 --name debian11-cloud --memory 2048 --net0 virtio,bridge=vmbr0

# now make into a proxmox compatible image file.
qm importdisk 9110 debian-11-generic-amd64.qcow2 local-lvm -format qcow2

# now attach it to scsi interface as a disk
qm set 9110 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9110-disk-0

# create the boot image disk
qm set 9110 --ide2 local-lvm:cloudinit --boot c --bootdisk scsi0 --serial0 socket --vga serial0

#Oh, resize the disk from 2G to 32G 
qm resize 9110 scsi0 +30G

# set dhcp or static
qm set 9110 --ipconfig0 ip=dhcp
##qm set 9110 --ipconfig0 ip=10.10.10.222/24,gw=10.10.10.1

# Copy over the public ssh key
qm set 9110 --sshkey ~/.ssh/msi.pub

# Set Debian password
qm set 9110 --cipassword SomePassword!!

# done now dump the user
qm cloudinit dump 9110 user

#remove downloaded image. NOTE: Below will remove ALL debian-11 with extension qcow2!!! You have been warned!!! 
rm debian-11*.qcow2

Other Things To Do

Fix for Docker and Kubernetes

Once this is done then it is time to update the distro. For me, the grub needed to be updated. Why? because of this. So, follow Debian11 and Rancher2.6 and get er' done.

Also, if installing docker on this cloud vm follow the rancher fix post.

Related This I Found

Here is a post similar to mine for Ubuntu.

One thought on “Cloud Debian 11 Image”

Leave a Reply

Your email address will not be published. Required fields are marked *