[gPXE] boot selecting card (via MAC?)

3 views
Skip to first unread message

Alessandro Dentella

unread,
Dec 20, 2012, 9:13:57 AM12/20/12
to gp...@etherboot.org

Hi,

I've just installed some Linux boxes with dual boot: Windows on the HD and
Linux LTSP via gPXE.

I used Grub4dows with an entry like this:

title Linux (LTSP via gPXE)
find --set-root /boot/grub/gpxe.iso
map /boot/grub/gpxe.iso (0xff) || map --mem /boot/grub/gpxe.iso (0xff)
map --hook
chainloader (0xff)

In some pc I added a second ethernet card since the integrated one was not
fast.

The boot process sometime does not work correctly as the wrong card is used
and it waits forever or enters a reboot loop.

I could select the correct driver only but that's more complicated to manage
as I have several different cards.

Is it possible to tell the gpxe.iso which MAC address is supposed to use?

thanks in advance
sandro
*:-)
_______________________________________________
gPXE mailing list
gP...@etherboot.org
http://etherboot.org/mailman/listinfo/gpxe

Shao Miller

unread,
Jan 1, 2013, 9:39:38 PM1/1/13
to gp...@etherboot.org
Not that I know of.

There were patches for gpxe.lkrn to accept a command-line, but I don't
believe they were ever merged into gPXE. If they had've been, then you
might do something like:

title Linux (LTSP via gPXE)
find --set-root /boot/grub/gpxe.iso
map /boot/grub/gpxe.iso (0xff) || map --mem /boot/grub/gpxe.iso (0xff)
map --hook
root (0xff)
kernel /gpxe.lkrn some_command_line_maybe_with_mac_address

But then you'd still need some enhanced gPXE scripting capabilities to deal
with choosing the right network interface.

I believe that this can be accomplished with iPXE.

- Shao Miller

Shao Miller

unread,
Jan 1, 2013, 9:41:37 PM1/1/13
to gp...@etherboot.org
Oh but I should also ask: Why are you using an .ISO wrapper, when all you
really need is gpxe.lkrn? GRUB4DOS can load and execute a Linux x86
kernel-format binary directly, as my example suggests. - Shao
Reply all
Reply to author
Forward
0 new messages