You are here
Home > Redhat > Red Hat kickstart installation

Red Hat kickstart installation

configure yum server

copy dvd contents to /var/ftp/pub

create yum repostory [yum server]

cd /var/ftp/pub/Server

cd repodata

copy comps-rhel5-server-core.xml to /var/ftp/pub/Server

copy comps-rhel5-server-core.xml to /root

createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server

Create nfs

vi /etc/exports

/var/ftp/pub/ *(rw,sync,no_root_squash)

Execute the following command to export share folder

exportfs -avr

open /etc/sysconfig/nfs file and uncomment the following two lines



start nfs service and portmap

configure chkconfig for both service

Create Kickstart File

yum install system-config-kickstart -y

create new ks.cfg file or by open the anaconda.ks.cfg file and modify according to your wish by using following command


Installation Method

select nfs

nfs server (server ip)

nfs dir /var/ftp/pub
partition information

clear mbr

remove all existing partition

initial disk label

custom partition

select the partition and size and make the partition on specific drive and enter like hda or sda

Display config

32 bit 640×800

select file menu and save and ok
Edit ks.cfg

add a first line as

key –skip

save file

edit ananconda-ks.cfg

select packages and copy it to ks.cfg as a final entry

save file

ks.cfg will be created and copy that file to /var/ftp/pub


yum install system-config-netboot


select network install

operating system identifier : rhel5.4

select protocol : nfs

kickstart : nfs:nfs server ip:/var/ftp/pub/ks.cfg

ip : nfs server ip

location : /var/ftp/pub

select ok

new window will open

select file click new

hostname : nfs server ip

operating system : taken default by itself

generate kickstart file : nfs:nfs server ip:/var/ftp/pub/ks.cfg

and press ok and close

yum install tftp

cd /tftpboot/linux-install

edit /etc/xinetd.d / tftp

change disable=yes to disable=no

save file and restart service by /etc/init.d /xinetd restart

cd /tftpboot/linux-install/pxelinux.0

edit dhcpd.conf and modify as

filename “linux-install/pxelinux.0”;

next-server nfs server ip;

save file and restart all the service

Dhcp configuration file example

#vim /etc/dhcpd.conf

ddns-update-style interim;

subnet netmask {


default-lease-time 3600;

max-lease-time 4800;

option routers;

option domain-name-servers;

option subnet-mask;

option domain-name “”;

option time-offset -8;


allow booting;

allow bootp;


filename “pxelinux.0”;

As per my setup, pxeserver ip address is

Leave a Reply

eighteen + 5 =