Debian Cloudimage 2

Page content

Test

mkdir raw
cd raw
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2
vm_id="9999"
vm_name="test-vm-${vm_id}"
vm_storage="local-lvm"
image="debian-12-genericcloud-amd64.qcow2"

virt-customize -a ${image} --install qemu-guest-agent,cloud-utils,vim,joe,htop,btop
qm create ${vm_id} --name ${vm_name} --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0 --agent 1 
qm importdisk ${vm_id} ${image} ${vm_storage}

qm set ${vm_id} --scsihw virtio-scsi-pci --scsi0 ${vm_storage}:vm-${vm_id}-disk-0
qm set ${vm_id} --ide2 ${vm_storage}:cloudinit
qm set ${vm_id} --boot c --bootdisk scsi0
qm set ${vm_id} --serial0 socket
qm set ${vm_id} --ipconfig0 ip=dhcp
qm set ${vm_id} --cpu cputype=x86-64-v2-AES

qm set ${vm_id} --sshkeys installer.pub
qm set ${vm_id} --ciuser installer

Any Comments ?

sha256: 72ac8b05c0c3c006b8983e2408431cc9a10c095548d4f1a87829df699e30befc