Linux ubuntu PXE provisioning does not create boot host file

Just for the record, moving pub direcory to /usr/share/foreman/public does the trick an particular kernel and initrd files are loaded by the client.
But after that, client shows the error “Booting kernek failure: Invalid argument”.
I’ve searched for the forums, and I have found a similar issue at

In that case,seems that kernel and initrd files were not foud, and they mentioned that the ones in casper directory should been used, but that is fixed now, so I don`t know what the error comes from.
May be in the grub arguments:

DEFAULT linux cloud-init autoinstall
LABEL linux cloud-init autoinstall
KERNEL boot/ubuntu-24-04-autoinstall-zcIo8TMJBnZX-vmlinuz
INITRD boot/ubuntu-24-04-autoinstall-zcIo8TMJBnZX-initrd
APPEND root=/dev/ram0 ip=dhcp BOOTIF=c6:64:81:e3:e4:cb ramdisk_size=1500000 fsck.mode=skip autoinstall url=http://:443/pub/installation_media/ubuntu/24.04-x86_64.iso cloud-config-url=/dev/null ds=nocloud-net;s=http:///userdata/c6:64:81:e3:e4:cb/ console-setup/ask_detect=false locale=es_ES localechooser/translation/warn-light=true localechooser/translation/warn-severe=true hostname= domain=

Anyway the issue of this ticket is solved. So I am going to open another topic for that.
Thank for you help Leos.

1 Like