PXE Syslinux examples

From Bitbull Wiki
Jump to navigation Jump to search

1 pxe syslinux configuration examples

1.1 green color theme

MENU COLOR screen      0
MENU COLOR border      32
MENU COLOR title       32
MENU COLOR hotsel      32
MENU COLOR sel         30;42
MENU COLOR unsel       32
MENU COLOR hotkey      0
MENU COLOR tabmsg      30
MENU COLOR timeout_msg 32
MENU COLOR timeout     32
MENU COLOR disabled    0
MENU COLOR cmdmark     0
MENU COLOR cmdline     0

1.2 boot controling

LABEL hdd
        MENU LABEL Boot from hard disk
        KERNEL chain.c32
        APPEND hd0 0

LABEL reboot
        menu label Reboot System (Cold)
        COM32 reboot.c32

1.3 forward to second pxe server

LABEL pxechain
        MENU LABEL Boot RIS on second Server
        COMBOOT pxechain.com
        APPEND 10.0.0.99::/pxelinux.0

1.4 complete config file for pxe installation server

default menu.c32                                                                                                                                                                              
TIMEOUT 600                                                                                                                                                                                   
ONTIMEOUT hdd                                                                                                                                                                                 
PROMPT 0                                                                                                                                                                                      
NOESCAPE 1                                                                                                                                                                                    
                                                                                                                                                                                              
MENU TITLE Install Server / Ubuntu 12.04                                                                                                                                                
MENU COLOR screen      0                                                                                                                                                                      
MENU COLOR border      32                                                                                                                                                                     
MENU COLOR title       32                                                                                                                                                                     
MENU COLOR hotsel      32                                                                                                                                                                     
MENU COLOR sel         30;42                                                                                                                                                                  
MENU COLOR unsel       32                                                                                                                                                                     
MENU COLOR hotkey      0                                                                                                                                                                      
MENU COLOR tabmsg      30                                                                                                                                                                     
MENU COLOR timeout_msg 32                                                                                                                                                                     
MENU COLOR timeout     32                                                                                                                                                                     
MENU COLOR disabled    0                                                                                                                                                                      
MENU COLOR cmdmark     0
MENU COLOR cmdline     0


LABEL hdd
        MENU LABEL Boot from hard disk
        KERNEL chain.c32
        APPEND hd0 0 

LABEL reboot
        menu label Reboot System (Cold)
        COM32 reboot.c32

MENU SEPARATOR

label buehl
        menu label Install Workstation
        kernel u1204.i386.linux
        append initrd=u1204.i386.initrd.gz ks=http://setup/inst/ks/Standard-Desktop.ks

label standalone
        menu label Install Standalone
        kernel u1204.i386.linux
        append initrd=u1204.i386.initrd.gz ks=http://setup/inst/ks/Standalone-Desktop.ks

MENU SEPARATOR

label nx
        menu passwd n00p
        menu label Install NX Server
        kernel u1204.i386.linux
        append initrd=u1204.i386.initrd.gz ks=http://setup/inst/ks/NX.ks

label freenx
        menu passwd n00p
        menu label Install freeNX Server
        kernel u1204.i386.linux
        append initrd=u1204.i386.initrd.gz ks=http://setup/inst/ks/freenx.ks

label rescue
        menu passwd n00p
        MENU LABEL System Rescue CD
        kernel rescuecd.kernel
        append initrd=rescuecd.initram.igz setkmap=sg-lat1 netboot=http://setup.mybuehl.ch/inst/cd/rescuecd/sysrcd.dat

LABEL pxechain
        MENU LABEL Boot RIS for Kubuntu 12.04 on setup
        COMBOOT pxechain.com
        APPEND 10.0.1.13::/pxelinux.0