STEP 10 – Create a PXE BOOT MENU:
This version of the PXE BOOT MENU provides:
- 2 kickstart configs for CentOS 7 64-bit (c7x64).
- 1 kickstart config for CentOS 7 32-bit (c7x32).
- non-kickstart netinstall of c7x64 or c7x32, using local repos.
- non-kickstart netinstall of c7x64 or c7x32, using online internet mirror repos.
- menu DEFAULT is set to boot from local hard drive (to avoid accidentally overwriting an existing system).
*separate vmlinuz + initrd.img are provided to different Distro/Release/Arch options,
how/where to get those is documented in another step.
default vesamenu.c32
timeout 200
menu resolution 1024 768 # Without this, the menu was truncating the displayed lines and wasn’t very readable.
menu background splash.png
ontimeout local
label ks1
menu label ^Install CentOS7x64 from c7pxe, lab1 kickstart, mimized config (~550MB).
kernel CentOS7x64/vmlinuz
append initrd=CentOS7x64/initrd.img ip=dhcp ks=http://10.0.0.11/repos/lab1x64.ks
label ks2
menu label ^Install CentOS7x64 from c7pxe, lab2 kickstart, aggressively mimized config ( < 550MB TBD ).
kernel CentOS7x64/vmlinuz
append initrd=CentOS7x64/initrd.img ip=dhcp ks=http://10.0.0.11/repos/lab2x64.ks
label ks3
menu label ^Install CentOS7x32 from c7pxe, c7x32lab1 kickstart, mimimized config (~600MB).
kernel CentOS7x32/vmlinuz
append initrd=CentOS7x32/initrd.img ip=dhcp ks=http://10.0.0.11/repos/lab1x32.ks
label x64rs2
menu label ^Install CentOS7x64 from c7pxe, NO kickstart
kernel CentOS7x64/vmlinuz
append initrd=CentOS7x64/initrd.img ip=dhcp repo=http://10.0.0.11/repos/c7x64/base/
label x32rs2
menu label ^Install CentOS7x32 from c7pxe, NO kickstart
kernel CentOS7x32/vmlinuz
append initrd=CentOS7x32/initrd.img ip=dhcp repo=http://10.0.0.11/repos/c7x32/base/
label x64mirror
menu label ^Install CentOS7x64 from http://mirror.centos.org, no kickstart
kernel CentOS7x64/vmlinuz
append initrd=CentOS7x64/initrd.img ip=dhcp method=http://mirror.centos.org/centos/7/os/x86_64/ devfs=nomount
label x32mirror
menu label ^Install CentOS7x32 from http://mirror.centos.org, no kickstart
kernel CentOS7x32/vmlinuz
append initrd=CentOS7x32/initrd.img ip=dhcp method=http://mirror.centos.org/centos/altarch/7/os/i386/ devfs=nomount
label local
menu label Boot from Hard Drive
menu default
localboot 0xffff
One thought on “Build a CentOS7 server for: pxe boot, kickstart, reposync, repotrack, nfs, https (STEP 10)”