|
RedHat 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
RPCNFSDARGS="-N 2 -N 3"
RPCNFSDARGS="-N 4"
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
system-config-kickstart
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 640x800
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
PXE-Boot
yum install system-config-netboot
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 193.168.100.0 netmask 255.255.255.0 {
range 193.168.100.200 193.168.100.250;
default-lease-time 3600;
max-lease-time 4800;
option routers 193.168.100.3;
option domain-name-servers 193.168.100.203;
option subnet-mask 255.255.255.0;
option domain-name “systemadministrator.in”;
option time-offset -8;
}
allow booting;
allow bootp;
next-server 193.168.100.212;
filename "pxelinux.0";
As per my setup, pxeserver ip address is 193.168.100.212
|