use distrobuilder cloud vm with cloud-init

rwanito

Member
May 25, 2021
14
0
6
25
Hello,

I try to use a fresh created cloud vm created via distrobuilder.
Distrobuilder is a tool who allows me to create LXC image and qcow2 images.

I use this cloud qcow2 : repo.
And to create it in my cluster :

Bash:
qm create 106 --cores 4 --name "debian-bullseye-cloud-template" --memory 4096 --net0 virtio,bridge=vmbr0
qm importdisk 106 /tmp/build/debian-cloud/disk.qcow2 STORE
qm set 106 --bios ovmf -efidisk0 STORE:1,format=raw,efitype=4m,pre-enrolled-keys=1
qm set 106 --scsihw virtio-scsi-pci --scsi0 STORE:vm-106-disk-0
qm set 106 --serial0 socket --vga serial0
qm set 106 --agent 1
qm set 106 --ide0 STORE:cloudinit
qm set 106 --boot c --bootdisk scsi0
qm template 106

qm clone 106 107 --name base
qm resize 107 scsi0 128G
qm set 107 --ipconfig0 ip=x.x.x.x/24,gw=x.x.x.x --ciuser admin --cipassword toto
qm start 107

Cloud-init does not start or extremely randomly.
I need to recreate the cloudinit disk and it could work.
The boot is super slow and is stuck in "Starting serial...".

After a while, I used to have just after "Loading intiial ramdisk" : "Gave up waiting for suspend/resume device".
And then, the normal boot and the prompt without changes.

I don't know if I miss something or if the built image needs something else (since I built in my intranet) ?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!