iPXE discussion forum
Exception during the UEFI preboot environment - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Exception during the UEFI preboot environment (/showthread.php?tid=27783)



Exception during the UEFI preboot environment - juddgaddie - 2020-08-20 17:03

When booting with iPXE I get the a fatal BIOS/UEFI error 'Exception during the UEFI preboot environment' as I'm about to install an OS

The iPXE efi is being booted directly from the network card via UEFI pxe boot.
It was built from https://github.com/ipxe/ipxe/commit/ef2c844d01e78723af54b6ca67019fd9fe7f08e4
with a small embeded script that does the following
PHP Code:
#!ipxe

prompt --key 0x02 --timeout 2000 Press Ctrl-for the iPXE command line... && shell ||
echo 
"iPXE Loaded.. running embedded script"
echo "Displaying interfaces.."
ifstat
echo "Running dhcp on all interfaces to find first available"
dhcp
route
echo "DNS: ${dns}"
echo "DHCP complete chaining from the Gateway IP (DHCP Option 3) default.ipxe"
chain --autofree http://${3}/ipxe/default.ipxe?mac=${net0/mac}
chain --autofree http://${3}/ipxe/${net0/mac}.ipxe
chain --autofree http://${3}/ipxe/dynamic.ipxe?mac=${net0/mac}
echo "iPXE script complete" 

Then it loads the default.ipxe on the gateway with the following
PHP Code:
#!ipxe
  
echo "hello world"
chain --autofree https://boot.netboot.xyz/ipxe/netboot.xyz-snponly.efi 

Here is a screenshot of the final error
https://drive.google.com/file/d/1_RKyxf_h6YWyclxdbOLMwYMAjuglgZC2/view?usp=sharing

Here is a link to a video showing exactly what is happening.
https://drive.google.com/file/d/1IANUQjYn6SAB3fwl2oQc8aBAoSA78N7i/view?usp=sharing