iPXE discussion forum
Building Menus with 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: Building Menus with iPXE? (/showthread.php?tid=6807)

Building Menus with iPXE? - fsp - 2013-01-27 18:14

I want to use iPXE as a replacement to my existing PXE installation with syslinux stuff.

However I can't figure out the building of menus. The wiki doesn't show me any samples, the screenshot there contains all I would need.

This is what happens when I try to use the menus:

I use the latest git repository.

RE: Building Menus with iPXE? - robinsmidsrod - 2013-01-27 22:35

As I mentioned to you on IRC, the image is unreachable, I end up in an HTTP redirect loop.

If you need an extensive iPXE menu example you could use this script I use at home: https://gist.github.com/2234639

It should give you a good overview of how to do a bunch of things...

RE: Building Menus with iPXE? - fsp - 2013-01-27 23:18

Link works for me, but I added an attachment here.
Also uploading with Chrome doesn't work for me.

I found your script prior to posting here and it failed due to the error messages in the screenshot.

If I remember correctly this ipxe-image has been created with the rom-o-matic.

RE: Building Menus with iPXE? - robinsmidsrod - 2013-01-28 08:05

If you look in the banner message you can see that your binary doesn't have the word "Menu" listed together with AoE, iSCSI, HTTP and such. I'm going to assume that however that binary was assembled, it was assembled without the menu feature. That is not surprising, as the rom-o-matic available in the contrib dir has not been updated to take the menu feature into account. I would suggest that you create yourself a Linux virtual machine (if you don't already have a Linux system available) and compile ipxe from source. It should be fairly straight-forward. If not, you can also download a prebuilt ipxe.usb/ipxe.iso or undionly.kpxe from http://ipxe.org/download. It should include the menu feature.

RE: Building Menus with iPXE? - fsp - 2013-01-28 18:08

Yeah I already created a VM to use the rom-o-matic. I tried a few different scripts to embed and I thought it would be easier with the rom-o-matic I set up there.
I'm gonna try compiling directly.

Edit: Solved it, now I can make those menus, which leads to my next question:

Is it possible to let ipxe boot clonezilla?

MENU LABEL Clonezilla Live 32-bit
kernel /czilla/vmlinuz
append initrd=/czilla/initrd.img boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="/usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap.gz" ocs_live_batch="no" ocs_lang="en_US.UTF-8" vga=788 nosplash fetch=tftp://
this was the old pxe code, I can replace tftp which http in every occasion.

Edit2: Did it!
This is my ipxe entry:

imgargs vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_lang="en_US.UTF-8" ocs_live_keymap="/usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap.gz" vga=788 nosplash fetch=

RE: Building Menus with iPXE? - Virucyde - 2013-02-08 13:26

This isn't iPXE related, you should chainload into the iPXE ROM, and then have that download your PXELinux as you normally would. From there you just use PXE Linux menus.