Grub2 uefi chainloading iPXE

Hi,

I’m chainloading from grub2 to ipxe but the interface disappears everytime after the chainload.

chainloader /ipxe.efi

boot

iPXE initialising devices… (it’s just stuck there)

chainloader /snponly.efi

boot

no more network device

I checked the interface in grub before the chainloader to make sure it works. i also tried to chainload grub2 with grub2 to test if it was an issue with ipxe but same results, no interface after chainloading.

Anyone know what I’m doing wrong?

What is your use case? You can chainload from PXELinux that works fine. For EFI, just use iPXE.EFI directly.

I already have it working for PXElinux and it works great. My EFI machines use grub to boot. I use ipxe to boot winpe and build Windows. I need to chainload ipxe from grub so I can easily convert machines to windows if i need to by just loading a different grub config instead of switching boot loaders.

iPXE provides EFI binary, why dont you load that straigh in without chainbooting?

http://boot.ipxe.org/ipxe.efi

Foreman has a PXE loader entry for that: iPXE Chain UEFI (weird name I have to admit).

I know i have it working that way. We are using grub2 for all efi boot but i need ipxe for windows.
we are not using the foreman dhcp proxy so we can use the pxe loader functionality.

So is there no way to chainload ipxe through grub2? or even boot winpe through grub2?