[syslinux] Chain loading hard disk with gPXELinux

Tim Franssen
2009-05-13T08:20:46Z

On Wed, May 13, 2009 at 2:25 AM, H. Peter Anvin <hpa at zytor.com> wrote:

> If you're using raw gPXE, things are a bit different.
>

I'm not, but gPXELINUX doesn't seem to have its own version number..?

gPXELINUX reports the following version numbers in the two versions I've
tested (see below):
 - gPXE version numbers 0.9.5 and 0.9.7
 - PXELINUX versions 3.73 and 3.80



Here are the boot procedures that I get with both versions of the software:

*gPXELINUX 0.9.5/3.73*

[...]
> gPXE 0.9.5 -- Open Source Boot Firmware -- http://etherboot.org
> Features: FTP HTTP HTTPS DNS TFTP iSCSI AoE bzImage COMBOOT ELF Multiboot
> PXE PXEXT
>
> net0: 08:00:27:e3:03:c3 on UNDI (open)
>   [Link:up, TX:0 TXE:0 RX:0 RXE:0]
> Waiting for link-up on net0... ok
> DHCP (net0 08:00:27:e3:03:c3).. ok
> net0: 192.168.1.19/255.255.255.0 gw 192.168.1.1
>
> PXELINUX 3.73 2009-01-25  Copyright (C) 1994-2008 H. Peter Anvin
> UNDI data segment at:   0009B1A0
> UNDI data segment size: 2E58
> UNDI code segment at:   0009AA30
> UNDI code segment size: 0764
> PXE entry point found (we hope) at 9AA3:036C
> Getting cached packet 01
> Getting cached packet 02
> Getting cached packet 03
> My IP address seems to be C0A80113 192.168.1.19
> ip=192.168.1.19:192.168.1.2:192.168.1.1:255.255.255.0
> TFTP prefix: /
> Trying to load: config
> Booting from local disk...
> No more network devices
>
> Press Ctrl-B for the gPXE command line...
>

*gPXELINUX 0.9.7/3.80*

[...]
> gPXE 0.9.7 -- Open Source Boot Firmware -- http://etherboot.org
> Features: FTP HTTP HTTPS DNS TFTP AoE iSCSI bzImage COMBOOT ELF Multiboot
> PXE PXEXT
>
> DHCP (net0 08:00:27:30:a3:de).... ok
>
> PXELINUX 3.80 2009-05-04  Copyright (C) 1994-2009 H. Peter Anvin et al
> !PXE entry point found (we hope) at 9A9C:03B6 via plan A
> UNDI code segment at 9A9C len 0804
> UNDI data segment at 9B1D len 2E30
> Setting cached packet 01 02 03
> My IP address seems to be 0A000032 10.0.0.50
> ip=10.0.0.50:10.0.0.1:10.0.0.1:255.255.255.0
> TFTP prefix: /
> Trying to load: config
> Booting from local disk...
>
> Press Ctrl-B for the gPXE command line...
>

In both cases the last line disappears after about a second and after that
nothing else happens. I know the subnets and the MAC addresses differ but
both runs are done on the same VirtualBox "hardware". The first boots
over
our test server, the second over a VM with the same software.

TFTP /config file:


default local
> label local
>     localboot 0
>