wiki:Grafisches-PXE-Bootmenue

Grafisches-PXE-Boot-Menü

Das LINBO-Boot-System ermöglicht im Zusammenspiel mit  Syslinux und  Grub4dos das Erstellen eigener PXE-Bootmenüs. Dazu muss die gruppenspezifische PXE-Boot-Konfigurationsdatei unter /var/linbo/pxelinux.cfg/<gruppe> gegen eine Selbstgestrickte entsprechend den unten aufgeführten Beispielen ausgetauscht werden.

Einfache Konfigurationsdatei für ein Grafisches PXE-Boot-Menü1:

DEFAULT /vesamenu.c32
# nach Ablauf des Timeouts wird Windows XP gebootet.
ONTIMEOUT winxp
PROMPT 0
# STARTE winxp nach 30 Sek. Untätigkeit, wird durch Tastendruck des Anwenders unterbrochen.
TIMEOUT 300
KBDMAP /german.kbd
DISPLAY /boot.msg
# verbietet die Änderung der APPEND-Zeile
ALLOWOPTIONS 0

# Layout-Definitionen fuer das Menue
MENU AUTOBOOT Automatischer Start von "Windows XP" in # Sekunde{n}...
MENU BACKGROUND /logo.16
MENU TITLE Boot-Menue der Gruppe fs
MENU color title	1;36;44    #ffffffff #00000000 std
MENU color sel		7;37;40    #ffffffff #ffdaa520 all
MENU color hotsel	1;7;37;40  #ffffffff #ffdaa520 all
MENU WIDTH 80
MENU MARGIN 10
MENU ROWS 12
MENU ENDROW 24
MENU TIMEOUTROW 18
MENU VSHIFT 2

# direkter Start des Windows-XP-Systems aus der 1. Partition
LABEL winxp
MENU LABEL ^1. Windows XP
KERNEL grub.exe
APPEND --config-file=root (hd0,0); chainloader +1; boot;

# direkter Start des Ubuntu-Systems aus der 2. Partition
LABEL ubuntu
MENU LABEL ^2. Ubuntu
KERNEL grub.exe
APPEND --config-file=root (hd0,1); kernel /vmlinuz ro quiet splash root=/dev/sda2; initrd /initrd.img;

# LINBO-PXE-Boot
LABEL linbo
MENU LABEL ^3. LINBO
KERNEL linbo
APPEND initrd=linbofs.gz vga=788 quiet

So erscheint das einfache Boot-Menü auf dem Client (Navigation mit den Pfeiltasten, Auswahl mit ENTER):

Einfaches Grafisches-PXE-Bootmenü

Komplexe Konfigurationsdatei für ein Grafisches PXE-Boot-Menü1:

DEFAULT /vesamenu.c32
# nach Ablauf des Timeouts wird Windows XP mit synchronisiertem Autostart gebootet.
ONTIMEOUT winxpsync
PROMPT 0
# STARTE winxpsync nach 30 Sek. Untätigkeit, wird durch Tastendruck des Anwenders unterbrochen.
TIMEOUT 300
# starte auf jeden Fall das Defaultsystem nach 30 Sek.,
# auch wenn der Anwender den Autostart unterbrochen hat.
TOTALTIMEOUT 300
KBDMAP /german.kbd
DISPLAY /boot.msg
# verbietet die Änderung der APPEND-Zeile
ALLOWOPTIONS 0

# Layout-Definitionen fuer das Menue
MENU AUTOBOOT Automatischer Start von "Windows XP - Sync+Start" in # Sekunde{n}...
MENU BACKGROUND /logo.16
MENU TITLE Boot-Menue der Gruppe fs
MENU color title	1;36;44    #ffffffff #00000000 std
MENU color sel		7;37;40    #ffffffff #ffdaa520 all
MENU color hotsel	1;7;37;40  #ffffffff #ffdaa520 all
MENU WIDTH 80
MENU MARGIN 10
MENU ROWS 12
MENU ENDROW 24
MENU TIMEOUTROW 18
MENU VSHIFT 2

# direkter Start des Windows-XP-Systems aus der 1. Partition
LABEL winxp
MENU LABEL ^1. Windows XP - Start
KERNEL grub.exe
APPEND --config-file=root (hd0,0); chainloader +1; boot;

# LINBO-Start mit synchronisiertem Autostart des Windows-XP-Systems
LABEL winxpsync
MENU LABEL ^2. Windows XP - Sync+Start
KERNEL linbo
# autostart=1 weil es an 1. Stelle in der start.conf steht
APPEND initrd=linbofs.gz vga=788 quiet autostart=1

# direkter Start des Ubuntu-Systems aus der 2. Partition
LABEL ubuntu
MENU LABEL ^3. Ubuntu - Start
KERNEL grub.exe
APPEND --config-file=root (hd0,1); kernel /vmlinuz ro quiet splash root=/dev/sda2; initrd /initrd.img;

# LINBO-Start mit synchronisiertem Autostart des Ubuntu-Systems
LABEL ubuntusync
MENU LABEL ^4. Ubuntu - Sync+Start
KERNEL linbo
# autostart=2 weil es an 2. Stelle in der start.conf steht
APPEND initrd=linbofs.gz vga=788 quiet autostart=2

# LINBO-PXE-Boot ohne Autostart eines Systems
LABEL linbo
MENU LABEL ^5. LINBO PXE
KERNEL linbo
APPEND initrd=linbofs.gz vga=788 quiet autostart=0

# LINBO-PXE-Boot im Debug-Modus
LABEL debug
MENU LABEL ^6. LINBO PXE (Debug)
KERNEL linbo
APPEND initrd=linbofs.gz vga=788 debug autostart=0

# lokaler LINBO-Boot
LABEL linbo-lokal
MENU LABEL ^7. LINBO lokal
KERNEL grub.exe
APPEND --config-file=find --set-root --ignore-floppies --ignore-cd /linbofs.gz; kernel /linbo vga=788 quiet autostart=0; initrd /linbofs.gz;

# lokaler LINBO-Boot im Debug-Modus
LABEL debug-lokal
MENU LABEL ^8. LINBO lokal (Debug)
KERNEL grub.exe
APPEND --config-file=find --set-root --ignore-floppies --ignore-cd /linbofs.gz; kernel /linbo vga=788 debug autostart=0; initrd /linbofs.gz;

# PartedMagic-ISO übers Netzwerk booten
# ISO-Datei pmagic.iso muss in Verzeichnis /var/linbo liegen.
LABEL pmagic
MENU LABEL ^9. PartedMagic
KERNEL memdisk
INITRD pmagic.iso
APPEND iso vmalloc=256M keymap=de-latin1 de_DE

Das komplexe Boot-Menü sieht so auf dem Client so aus:

Grafisches-PXE-Bootmenü


1) Zur Menü-Syntax siehe  http://syslinux.zytor.com/wiki/index.php/Menu.

Attachments