Sample Kickstart file for Redhat / Centos

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --location=mbr --password=grub
# Clear the Master Boot Record
# Partition clearing information
clearpart --all --initlabel
# Use text mode install
# Firewall configuration
firewall --enabled --http --ftp --ssh --telnet --smtp
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --dir=/var/exports
# Network information
network --bootproto=static --device=eth0 --gateway= 
--ip= --nameserver= --netmask= --onboot=on
network --bootproto=dhcp --device=eth1 --onboot=on
# Reboot after installation
#Root password
rootpw --iscrypted $1$vn4w0Yca$EReWuBqfWHkC7nrwoor8J0

# SELinux configuration
selinux --disabled
# System timezone
timezone  Etc/GMT
# Install OS instead of upgrade
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=32 --resolution=1024x768
# Disk partitioning information
part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100
part /home --bytes-per-inode=4096 --fstype="ext3" --size=500
part /var --bytes-per-inode=4096 --fstype="ext3" --size=40096
part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1
%pre  --interpreter=/bin/bash
echo "This is Before Installation"
%post  --interpreter=/bin/bash
echo "This is after Install


You may also like...