iPXE discussion forum
Another way to chainload iPXE from iPXE - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Another way to chainload iPXE from iPXE (/showthread.php?tid=10525)



Another way to chainload iPXE from iPXE - tedkuban - 2017-11-10 13:20

Hello all!

I tried to use iPXE with DHCP Server that not support classes (MikroTik ROS) with following config:

make bin/undionly.kpxe EMBED=loadlkrn.ipxe

loadlkrn.ipxe contents:
Code:
#!ipxe

dhcp
kernel ipxe.lkrn initrd=boot.ipxe
initrd boot.ipxe
boot

Then booting using "undionly.kpxe" as boot file name I got this error:
[Image: h8nl8a]

If I boot using pxelinux.0 with this config:
Code:
menu title PXE Boot Menu

label Load iPXE SuperBoot Menu
       menu label Load iPXE SuperBoot Menu
       kernel /ipxe.lkrn
       initrd boot.ipxe
, iPXE was loaded successfully.

All files (undionly.kpxe, ipxe.lkrn, boot.ipxe) are in the Boot TFTP root.

What do I do incorrectly in the first option of loading and what decision will be true to use only iPXE?


RE: Another way to chainload iPXE from iPXE - NiKiZe - 2017-11-10 18:55

https://image.prntscr.com/image/6r9Wp5ulTEWVo5-p6517eA.png

Reading that image you have "Could not start download: Operation not supported (http://ipxe.org/3c092003)"

To break down what you do:
You have an ipxe binary with embeded script that downloads ipxe and runs a downloaded script?
Why do you do this in the first place?

your line: kernel ipxe.lkrn initrd=boot.ipxe
will start ipxe.lkrn with initrd=boot.ipxe as argument and I'm skeptical to what it does in this case, just skip the "initrd=boot.ipxe" part instead to load the script that you put into memory on the separate initrd line


RE: Another way to chainload iPXE from iPXE - tedkuban - 2017-11-10 21:57

(2017-11-10 18:55)NiKiZe Wrote:  https://image.prntscr.com/image/6r9Wp5ulTEWVo5-p6517eA.png

Reading that image you have "Could not start download: Operation not supported (http://ipxe.org/3c092003)"

To break down what you do:
You have an ipxe binary with embeded script that downloads ipxe and runs a downloaded script?
Why do you do this in the first place?

your line: kernel ipxe.lkrn initrd=boot.ipxe
will start ipxe.lkrn with initrd=boot.ipxe as argument and I'm skeptical to what it does in this case, just skip the "initrd=boot.ipxe" part instead to load the script that you put into memory on the separate initrd line

I have removed initrd=boot.ipxe parameter, but the behavior of ipxe.lkrn hasn't changed - Operation not supported