0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 567
/ 2 Years ago, mon, may 30, 2022, 4:33:32
testing on VirtualBox an automated install of ubuntu desktop, i have a router, dhcp, tftp, http server.
This is my pxelinux.cfg/default
:
UI menu.c32
LABEL Ubuntu
MENU LABEL Ubuntu
KERNEL ubuntu/casper/vmlinuz
INITRD ubuntu/casper/initrd
APPEND root=/dev/ram0 ramdisk_size=1500000 ip=dhcp cloud-config-url=/dev/null url=http://192.168.1.1/ubuntu-22.04.1-desktop-amd64.iso autoinstall ds='nocloud-net;s=http://192.168.1.1/' ---
But the automated install doesn't work. I still get to the install form...
I use a minimal autoinstall user-data
and empty meta-data
on my http server:
#cloud-config
autoinstall:
version: 1
identity:
hostname: test
password: $6$TgOD2MaHJ5/yy6s4$J7QZMZe/lUqOboU6M3B/MqXEnovVil2n4N1OkfDgP7.RcBXUPGxehSPF6Vy8fPt9yHf61LAGkIL8zLjFVN88i.
username: test
on the /var/log/apache2/access.log
only the ubuntu ISO is requested by the pxe boot. But on live environment I can download the user-data and meta-data files with wget.
with journalctl | grep autoinstall
I get
Jan 12 11:08:49 ubuntu kernel: Command line: BOOT_IMAGE=ubuntu/casper/vmlinuz root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.1.1/ubuntu-22.04.1-desktop-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.1.1/ cloud-config-url=/dev/null --- initrd=ubuntu/casper/initrd
Jan 12 11:08:49 ubuntu kernel: Kernel command line: BOOT_IMAGE=ubuntu/casper/vmlinuz root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.1.1/ubuntu-22.04.1-desktop-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.1.1/ cloud-config-url=/dev/null --- initrd=ubuntu/casper/initrd
Jan 12 11:08:49 ubuntu kernel: Unknown kernel command line parameters "autoinstall --- BOOT_IMAGE=ubuntu/casper/vmlinuz ramdisk_size=1500000 ip=dhcp url=http://192.168.1.1/ubuntu-22.04.1-desktop-amd64.iso ds=nocloud-net;s=http://192.168.1.1/ cloud-config-url=/dev/null", will be passed to user space.
Jan 12 11:08:49 ubuntu kernel: autoinstall
Jan 12 11:09:06 ubuntu /usr/libexec/gdm-x-session[1506]: Kernel command line: BOOT_IMAGE=ubuntu/casper/vmlinuz root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.1.1/ubuntu-22.04.1-desktop-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.1.1/ cloud-config-url=/dev/null --- initrd=ubuntu/casper/initrd
I have tested with ubuntu server 22.04, UEFI and BIOS, with quotes and backslash for ds parameter but none of them seems to work
More From » 22.04