To follow up on my own question, I managed to have the iso booting with my autoinstall.yml
like this:
First I added the .yml to the squashfs:
sudo unsquashfs -d ./squashfs-root -no-progress cd_amd64/casper/installer.squashfs
sudo cp -vf autoinstall.yml squashfs-root/etc/cloud/cloud.cfg.d/90_autoinstall.cfg
sudo rm cd_amd64/casper/installer.squashfs
sudo mksquashfs squashfs-root cd_amd64/casper/installer.squashfs -no-progress -noappend
sudo rm -rf squashfs-root
Then I modified Grubs txt.cfg
to add the autoinstall
parameter:
label autoinstall
menu label ^Install Ubuntu Server unattended
kernel /casper/vmlinuz
append initrd=/casper/initrd autoinstall quiet ---
This runs the autoinstall with the given .yml file.
Just using the content from the /var/log/installer/autoinstall-user-data
file of my previous installation resulted in similar errors as @jinxcappa described:
None is not of type ‘string’
I removed the attribute instead of setting it to ‘’, which worked for me. I also had to add version:1
below autoinstall:
.
Now I’m also stuck at the point
Command ‘[‘netplan’, ‘apply’]’ returned non-zero exit status 1
The network section is just:
network:
ethernets:
ens160: {dhcp4: true}
version: 2
ens160
is the correct name of the interface, I can confirm this in a second console.