Skip to content

Email: admin@alshowto.com

Al's Down`N Dirty KB

Al's Down`N Dirty KB

Get`Er Done

  • Home
  • vm
  • Cloud Debian 11 Image

Cloud Debian 11 Image

Posted on September 16, 2022December 18, 2022 By admin 1 Comment on Cloud Debian 11 Image
ProxMox, vm

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.

Related

Tags: CloudInit VM Setup

Post navigation

❮ Previous Post: Ceph: Remove Damaged Node
Next Post: Debian11 and Rancher2.6 ❯

You may also like

Proxmox and HAProxy
Linux
Proxmox VM Custer Behind HAProxy Load Balancer
October 14, 2022
vm
Ceph: Remove Damaged Node
September 12, 2022
Linux
pfSense and Qemu Guest Agent
October 26, 2022
50000 Foot View of My Network
ProxMox
Containered Crazy
September 10, 2022

One thought on “Cloud Debian 11 Image”

  1. Pingback: Debian Kubernetes: Install Specific Version – Al's Down`N Dirty KB

Leave a Reply Cancel reply

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

Copyright © 2023 Al's Down`N Dirty KB.

Theme: Oceanly Premium by ScriptsTown