pxelinux.0 EFI equivalent? Booting to menus for EFI-clients - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: pxelinux.0 EFI equivalent? Booting to menus for EFI-clients (/showthread.php?tid=14952) |
pxelinux.0 EFI equivalent? Booting to menus for EFI-clients - denriktiga - 2018-11-02 15:26 Hello! I'm having some trouble booting to menus with my EFI-clients. I'm new to EFI and can't figure out how to adapt my current setup. Running on CentOS 7.5 using latest syslinux and iPXE. I embedded this script and compiled the ipxe.efi: Code: #!ipxe Relevant config for isc-dhcp-server. I have activated all of the "option space ipxe" options: Code: #EFI 32 & 64bit The boot.php chains boot2.php to match the MAC-address with mysql and decide to either sanboot, load the default menu or load the menu to restore/capture an image: PHP Code: <?php PHP Code: --snip-- This works perfectly with BIOS-clients, but obviously not with EFI-clients. I made a test menu as per the wiki: Code: menu Trying this makes the VM crash: PHP Code: if($sanboot->num_rows == '0' && $restore->num_rows == '0' ){ This results in error 2e008081: PHP Code: if($boot->num_rows == '0' && $restore->num_rows == '0' ){ So i think biggest problem is I can't figure out how to boot to menus for EFI-clients. This works ok, but results in kernel panic I guess because it does not use the bootx64.efi: PHP Code: if($sanboot->num_rows == '0' && $restore->num_rows == '0' ){ I bet it's something really basic, but I don't know what to do. Thanks! RE: pxelinux.0 EFI equivalent? Booting to menus for EFI-clients - NiKiZe - 2018-11-28 16:19 simple config for detecting efi: http://ipxe.org/howto/chainloading#uefi You have all kernel cmdline arguments on the initrd, try to move boot=live etc up to the kernel line. Also remember that for efi you will have to add initrd=initrd.img to the kernel cmdline. And finally, why are you involving syslinux at all? Modified kernel and initrd line: PHP Code: if($sanboot->num_rows == '0' && $restore->num_rows == '0' ){ |