for CentOS net install
default linux
label linux
kernel vmlinuz
append initrd=initrd.img ks=http://192.168.0.11:8000/ks.cfg
EOF
# or
default vesamenu.c32
timeout 600
label centos eth0
kernel vmlinuz
append initrd=initrd.img ks=http://192.168.0.6/ks.cfg ksdevice=eth0
label centos em1
kernel vmlinuz
append initrd=initrd.img ks=http://192.168.0.6/ks.cfg ksdevice=em1
label cloud times em1
kernel vmlinuz
append initrd=initrd.img ks=http://192.168.0.6/cloud-times/ks/ks.cfg ksdevice=em1
# vesamenu.c32 is from CentOS.iso/isolinux/, and see CentOS.iso/isolinux/isolinux.cfg
# or END
timeout 3
default 0
title Linux
find --set-root /grldr
kernel /linux/vmlinuz ks=http://192.168.0.6/ks.cfg
initrd /linux/initrd.img
install
text
url --url=http://192.168.0.6
lang en_US.UTF-8
keyboard us
network --onboot yes --bootproto dhcp
authconfig --enableshadow --passalgo=sha512
rootpw q
selinux --disabled
firewall --disabled
timezone --utc Asia/Shanghai
clearpart --all
autopart
bootloader --location=mbr
%packages
%end
EOF
ping-check false;
default-lease-time 60000;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.250;
# option routers 192.168.0.1; # optional
next-server 192.168.0.11;
filename "pxelinux.0";
allow bootp;
}