Problem:
I am trying to PXE boot Ubuntu 18/20, but I cant seem to make much progress. I have been using Foreman for CentOS/RHEL PXE install for many years now and that works without any issues. We usually boot the machine into the PXE menu and manually select the OS we want to install (and the KS file takes over from there).
I am trying to achieve something similar with Ubuntu.
Expected outcome:
Select ubuntu in the PXe menu, installation starts and grabs the preseed file and OS is deployed.
Foreman and Proxy versions:
1.14.3
Other relevant data:
I did the exact same things that I usually do when a new RHEl/CentOS is released.
- Downloaded ubuntu iso 18 and 20, desktop and server edition, extracted the ISO and have a URL
pointing to the extracted files. - Created a Installation medium using the above http URL
- Created a OS pointing to the above medium
- Created hostgroup with the above OS
- Associated the Ubuntu images with preseed and pxelinux global default (also tried preseed pxelinux default)
- Build PXE default
When the machine boots into PXE, I see that the menu does display the Ubuntu option. Now some of the issues I encounter
- Selecting the Ubuntu option, did nothing, it would put me back to the PXE menu screen.
- I checked that the linux and initd.gz file in /var/lib/tftpboot/boot folder are both empty. Not sure why. Since I couldnt figure that out after looking at a few things, I manually copied over the linux and initrd file to this location. This allowed me to get past the PXE menu and it started loading the files.
- Now it appears that it never gets to the KS/preseed file? I see an error:
/init: line 49: can’t open /dev/sr0: No medium found
It tries this several times and finally gives up and asks me if I want to attempt interactive netboot from a URL. If I say yes, and supply the web url to the ISO (not the extracted file) it boots the live image…
So I guess, I am missing something which will autoload the image and the preseed file. or may be Ubuntu works differently than RHEL? We dont have any Ubuntu machines, so I am not very familiar with it unlike RHEL which works just fine with the process that I outlined above.
Any help/pointers would be really helpful. Please let me know if I can provide any logs…
Oh, one more thing, when I build the PXE menu , I see these errors in proxy.log (its weird because I dont have a folder called 20_amd64_s_U04, The folder I have is 20_x86_64_s_U04.
[2020-08-17T15:55:04.524970 ] ERROR -- : [38670] http://webserver.domain.com/os_images/ubuntu/20_amd64_c_U04/dists/focal/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz:
E, [2020-08-17T15:55:04.525071 ] ERROR -- : [38670] 2020-08-17 15:55:04 ERROR 404: Not Found.
I, [2020-08-17T15:55:04.535971 ] INFO -- : 10.52.194.107 - - [17/Aug/2020:15:55:04 -0700] "POST /tftp/fetch_boot_file HTTP/1.1" 200 - 0.0009
E, [2020-08-17T15:55:04.544263 ] ERROR -- : [38677] http://webserver.domain.com/os_images/ubuntu/20_amd64_s_U04/dists/focal/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux:
E, [2020-08-17T15:55:04.544403 ] ERROR -- : [38677] 2020-08-17 15:55:04 ERROR 404: Not Found.
Thanks,
PK
PS: I created a second support topic within minutes, because the first time I accidentally submitted the request and then it wouldn’t allow me to edit the post to add details.