I'm trying to get the most basic Ubuntu Server headless installation scenario working. I trimmed my user-data yaml file down to the bare minimum.
#cloud-config
version: 1
identity:
hostname: headless2204
username: batman
password: topsecret
package_upgrade: false
ssh:
install-server: yes
allow-pw: yes
Together with an empty meta-data file I placed it into the /nocloud-net folder.
As for grub.cfg, I added:
menuentry "Headless Ubuntu Server Installation" {
set gfxpayload=keep
linux /casper/vmlinuz quiet autoinstall ds=nocloud-net\;s=/cdrom/nocloud-net/ ---
initrd /casper/initrd.gz
}
The only shortcut I've taken was that I popped up an Ubuntu Desktop VM and launched Cubic instead of CLI tools and xorriso. Is there any difference between them? Cubic seems to be doing exactly the same thing.
My custom image boots just fine, the updated grub.cfg works, however the Ubuntu installer doesn't seem to pick up the autoinstall config. It just works the standard way. When I switch to a different terminal session (Ctrl+F2) during the installation to check the logs, there is nothing autoinstall related. I could only find cloud-init stuff but nothing helpful there.
Do you have any ideas about fixing or debugging it?