简单选单
/tftpboot/pxelinux.cfg/default
default menu.c32 prompt 0 timeout 300 ONTIMEOUT local MENU TITLE PXE Menu LABEL Pmajic MENU LABEL Pmajic kernel images/pmagic/bzImage append noapic initrd=images/pmagic/initrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=100000 label Dos Bootdisk MENU LABEL ^Dos bootdisk kernel memdisk append initrd=images/622c.img LABEL CentOS 5 x86 NO KS eth0 MENU LABEL CentOS 5 x86 NO KS eth0 KERNEL images/centos/5/x86/vmlinuz APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-i386/ LABEL CentOS 5 x86_64 NO KS eth0 MENU LABEL CentOS 5 x86_64 NO KS eth0 KERNEL images/centos/5/x86_64/vmlinuz APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-x86_64/
这个样例(概括地)描述如何利用组件安装 PXE,并通过一个本地网页服务器(还有 FTP 或 NFS 服务器)来伺服映像库。我们并不推荐指向互联网上的公共镜像来进行「互联网安装」。
多层选单
- default - Main Menu
- tools - Tools Menu
- x86_Servers - x86 Servers Menu
- x86_64_Servers - x86_64 Servers Menu
/tftpboot/pxelinux.cfg/default
default menu.c32 prompt 0 timeout 300 ONTIMEOUT local MENU TITLE Main Menu LABEL local MENU LABEL Boot local hard drive LOCALBOOT 0 LABEL x86 Servers MENU LABEL x86 Servers KERNEL menu.c32 APPEND pxelinux.cfg/x86_Servers LABEL x86_64 Servers MENU LABEL x86_64 Servers KERNEL menu.c32 APPEND pxelinux.cfg/x86_64_Servers LABEL Tools MENU LABEL Tools KERNEL menu.c32 APPEND pxelinux.cfg/tools
/tftpboot/pxelinux.cfg/tools
MENU TITLE Tools Menu LABEL Main Menu MENU LABEL Main Menu KERNEL menu.c32 APPEND pxelinux.cfg/default LABEL Clonezilla MENU LABEL Clonezilla KERNEL menu.c32 APPEND pxelinux.cfg/clonezilla LABEL Pmajic MENU LABEL Pmajic kernel images/pmagic/bzImage append noapic initrd=images/pmagic/initrd.gz root=/dev/ram0 init=/linuxrc ramdisk_size=100000 label Dos Bootdisk MENU LABEL ^Dos bootdisk kernel memdisk append initrd=images/622c.img
/tftpboot/pxelinux.cfg/x86_Servers
MENU TITLE x86 Server Menu LABEL Main Menu MENU LABEL Main Menu KERNEL menu.c32 APPEND pxelinux.cfg/default LABEL CentOS 5 x86 NO KS eth0 MENU LABEL CentOS 5 x86 NO KS eth0 KERNEL images/centos/5/x86/vmlinuz APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-i386/ LABEL CentOS 5 x86 NO KS eth1 MENU LABEL CentOS 5 x86 NO KS eth1 KERNEL images/centos/5/x86/vmlinuz APPEND ks initrd=images/centos/5/x86/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-i386/
/tftpboot/pxelinux.cfg/x86_64_Servers
MENU TITLE x86_64 Server Menu LABEL Main Menu MENU LABEL Main Menu KERNEL menu.c32 APPEND pxelinux.cfg/default LABEL CentOS 5 x86_64 NO KS eth0 MENU LABEL CentOS 5 x86_64 NO KS eth0 KERNEL images/centos/5/x86_64/vmlinuz APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-x86_64/ LABEL CentOS 5 x86_64 NO KS eth1 MENU LABEL CentOS 5 x86_64 NO KS eth1 KERNEL images/centos/5/x86_64/vmlinuz APPEND ks initrd=images/centos/5/x86_64/initrd.img ramdisk_size=100000 ksdevice=eth1 ip=dhcp url --url http://xxx.xxx.xxx.xxx/mirrors/CentOS-5-x86_64/
Translation of revision 11