[cloud-init] Using Ubuntu 24.04 minimal image does not work

Herman33

New Member
Sep 4, 2024
2
0
1
I'm trying to get cloud init working with the Ubuntu 24.04 minimal image. The cloud init does not initiate at all it seems.

I'm using this image:
https://cloud-images.ubuntu.com/min...lease/ubuntu-24.04-minimal-cloudimg-amd64.img

When I switch to the full image (https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img) everything works as expected.

I've read somewhere (can't find the topic anymore) that this might be due to the minimal image not supporting cd-rom.

Is this the cause? And if so, is there a work-around?

This is the process I'm using to create my template:

Bash:
qm create 8010 \
    --name "ubuntu-2404-ci" \
    --ostype l26 \
    --memory 1024 \
    --agent 1 \
    --bios ovmf \
    --machine q35 --efidisk0 local-lvm:0,pre-enrolled-keys=0 \
    --cpu host --socket 1 --cores 1 \
    --vga serial0 --serial0 socket  \
    --net0 virtio,bridge=vmbr0

# normal image (this one works)
#qm importdisk 8010 noble-server-cloudimg-amd64.img local-lvm

# minimal image (this one does not work)
qm importdisk 8010 ubuntu-24.04-minimal-cloudimg-amd64.img local-lvm

qm set 8010 --scsihw virtio-scsi-pci --virtio0 local-lvm:vm-8010-disk-1,discard=on
qm set 8010 --boot order=virtio0
qm set 8010 --ide2 local-lvm:cloudinit
qm set 8010 --cicustom "user=local:snippets/ci-ubuntu.yml"
qm set 8010 --ipconfig0 ip=dhcp

qm cloudinit update 8010
 
Thanks for your quick answer, I got it working.

You've quoted the "--bios ovmf \" part too, should I change something there too?
 

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!