Montag, 13. April 2009

gPXE and localboot

gPXE is a great tool, but it seems is has some problem with localboot.
So normaly you should use the following options for a localboot:

label Boot local Harddisk
MENUE label ^Boot local Harddisk
MENUE default
KERNEL chain.c32
APPEND hd0 0

But this will not worked with gPXE alone, after a lot of testing to make sure that this was no error from the Webserver or DHCP, i use simple "pxelinux" to make a localboot.

gPXE -> pxelinux -> chain.c32 -> localboot

Because pxelinux will unload from the memory before it load the chain.c32 it works without any problems and also the localboot has the full avalible memory.

Example Configurations

/etc/dhcp3/dhcpd.conf

option domain-name-servers [Servername];
option routers
[Servername];
next-server
[Servername];

if exists user-class and option user-class = "gPXE" {
filename "http://[Servername]/boot.conf";
} else {
filename "undionly.kpxe";
}

/var/sites/.../boot.conf
#!gpxe
chain http://
[Servername]/vesamenu.c32 menu.conf

/var/sites/.../menu.conf
menu background background.png
prompt 0
timeout 500
allowoptions 0
menu timeoutrow 29
menu vshift 2
menu rows 8
menu color title 1;36;44 #ff8bc2ff #00000000 std
menu color unsel 37;44 #ff1069c5 #00000000 std
menu color sel 7;37;40 #ff000000 #ffff7518 all
menu color hotkey 1;37;44 #ffffffff #00000000 std
menu color hotsel 1;7;37;40 #ff000431 #ffff7518 all

LABEL Boot local Harddisk
MENU label ^Boot local Harddisk
MENU default
KERNEL pxelinux.0

LABEL MemTest86
MENU LABEL ^MemTest86
KERNEL memtest

LABEL GParted
MENU LABEL ^GParted
KERNEL gparted/vmlinuz1
APPEND initrd=gparted/initrd1.img boot=live union=aufs noswap noprompt vga=788 fetch=http://
[Servername]/pxe/gparted/filesystem.squashfs
...


/var/sites/.../pxelinux.cfg/default
default chain.c32 hd0 0

With this the localboot runs without any problems even with gPXE and over a Webserver.
Next thing is to try to boot Windows XP over iSCSI and gPXE.

Keine Kommentare:

Kommentar veröffentlichen