redhat-cop / ocp4-helpernode

This playbook helps set up an "all-in-one" node, that has all the infrastructure/services in order to install OpenShift 4.
336 stars 302 forks source link

Bare metal install: PXE Boot not working on Intel NUCs #101

Closed ghost closed 3 years ago

ghost commented 4 years ago

I get all the way through the install instances part. https://github.com/RedHatOfficial/ocp4-helpernode/blob/master/docs/bmquickstart.md#install-instances

I'm setting the Intel NUCs BIOs in the following way:

The NUC will get to the point of: "Checking media presence" "Media Present" "Start PXE over IPv4 on MAC: xxxxxxx"

and after ~1 min or so, it will error out with "A bootable device has not been detected".

I've double checked the install and all of the files are in place, the webserver is running and serving the necessary files, etc.

I have noticed other PXE boot tutorials that the filename mentioned in the DHCP config is always something like 'BOOTX64.efi'.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/preparing-for-a-network-install_installing-rhel-as-an-experienced-user#configuring-a-tftp-server-for-uefi-based-clients_preparing-for-a-network-install

Does the bare metal not support UEFI PXE boot?

christianh814 commented 4 years ago

Does the bare metal not support UEFI PXE boot?

Although the OpenShift Image file does support UEFI boot, the HelperNode isn't set up to do so in the way TFTP is configured. This is definitely something that needs to be updated. Thank you for the catch!

ghost commented 4 years ago

Let me take a look at how we might be able to enhance this. The PXE default config could add another flag for UEFI boot.

pxe: uefi_boot: true

??

christianh814 commented 4 years ago

Let me take a look at how we might be able to enhance this. The PXE default config could add another flag for UEFI boot.

pxe: uefi_boot: true

??

Well according to the RHEL Doc it looks like you can do both.

I think exploring how we can get both is a good first step. If we can't, yeah we would need to set an option like that.

christianh814 commented 4 years ago

cc: @therevoman

therevoman commented 4 years ago

I believe Christian is correct that it's possible to do both. Right now we are only using the syslinux package and uefi requires another with the files landing under /var/lib/tftpboot

therevoman commented 4 years ago

Might have to use a flag, I forgot that BIOS uses linux and EFI uses linuxefi in the grub config.

christianh814 commented 3 years ago

Should be in devel now