Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building Menus with iPXE?
2013-01-27, 18:14 (This post was last modified: 2020-06-10 14:51 by fsp.)
Post: #1
Building Menus with iPXE?
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.
Find all posts by this user
Quote this message in a reply
2013-01-27, 22:35
Post: #2
RE: Building Menus with iPXE?
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...
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-01-27, 23:18 (This post was last modified: 2013-01-27 23:20 by fsp.)
Post: #3
RE: Building Menus with iPXE?
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.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
2013-01-28, 08:05
Post: #4
RE: Building Menus with iPXE?
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-01-28, 18:08 (This post was last modified: 2013-01-28 19:53 by fsp.)
Post: #5
RE: Building Menus with iPXE?
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?

Code:
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://192.168.0.9/czilla/filesystem.squashfs
this was the old pxe code, I can replace tftp which http in every occasion.

Edit2: Did it!
This is my ipxe entry:

Code:
:cz32
kernel http://192.168.0.9/clonezilla/x86/vmlinuz
initrd http://192.168.0.9/clonezilla/x86/initrd.img
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=http://192.168.0.9/clonezilla/x86/filesystem.squashfs
boot
Find all posts by this user
Quote this message in a reply
2013-02-08, 13:26
Post: #6
RE: Building Menus with iPXE?
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.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)