How to install Linux RedHat 5.x or 6.x using kickstart over HTTP or CD-ROM (or .iso)


The following procedure apply for RedHat version 5.x or 6.x using a Windows or Linux webserver.
This post will not cover basic windows or Linux command that you must know before following this procedure.

=> installing linux system using Kickstart method over HTTP, ks.cfg and rpms will be downloaded from the server to the client. It is possible to configure DHCP or Static address for installation.

=> installing linux system using Kickstart method with local CD-ROM, ks.cfg will be downloaded from the server to the client and rpms will be readed locally from the CD-ROM. It is possible to configure DHCP or Static address for installation.

Please follow those steps in order to install Linux using kickstart method:

1) install VirtualBox
2) create a Linux VM
3) install WAMP if your kickstart server is running Windows or httpd package for Linux
4) modify the file http.conf as follow:

For Windows

<Directory “c:/wamp/www/pub/”>
    Options +Indexes
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all 
</Directory>

For Linux

<Directory /var/www/html/pub>
    Options +Indexes
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

5) create the directory

For Windows

c:\wamp\www\pub

For Linux

/var/www/html/pub

6) create the following sub-directories

For Windows under c:\wamp\www\pub

disc1
disc2
disc3
disc4
disc5
kickstart

For Linux under /var/www/html/pub

disc1
disc2
disc3
disc4
disc5
kickstart

(INFO: discs 3,4,5 are not necessary for installation , but it will fail if they are not present while running anaconda script)

7) copy the file ks.cfg under

For Windows

c:\wamp\www\pub\kickstart

For Linux

/var/www/html/pub/kickstart

8) modidfy the file ks.cfg as follow:

=> If you plan to install over HTTP with DHCP address for the client, then use the following template (modify the text between <> with your data):

install
text
url –url http://<ip_address>/pub
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –bootproto=dhcp –device=eth0 –noipv6

=> If you plan to install over HTTP with static address for the client, then use the following template (modify the text between <> with your data):

install
text
url –url http://<ip_address>/pub
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto static –ip=<ip_address> –netmask=<netmask> –gateway=<gateway> –nameserver=<nameserver1,nameserver2> –hostname=<hostanme> –noipv6

=> If you plan to install using CD-ROM with DHCP address for the client, then use the following template (modify the text between <> with your data):

install
text
cdrom
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –bootproto=dhcp –device=eth0 –noipv6

=> If you plan to install using CD-ROM with static address for the client, then use the following template (modify the text between <> with your data):

install
text
cdrom
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto static –ip=<ip_address> –netmask=<netmask> –gateway=<gateway> –nameserver=<nameserver1,nameserver2> –hostname=<hostanme> –noipv6

9) modify the boot order of the Virtual Machine

CD-ROM -> HardDisk

10) copy the complete DVDs (disc1, disc2, …) in the following location on your kickstart server:

For windows

c:\wamp\www\pub\disc1
c:\wamp\www\pub\disc2
….
c:\wamp\www\pub\disc5

For Linux

/var/www/html/pub/disc1
/var/www/html/pub/disc2

/var/www/html/pub/disc5
11) mount the .iso linux image on your virtual machine
12) Power on your virtual machine
13) At boot menu (spalshscreen RedHat) type F2 if you install RedHat 5.x or esc if you install RedHat 6.x
14) At the boot prompt, type the following command:

=> If you plan to install over HTTP with DHCP address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg

=> If you plan to install over HTTP with Static address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg append ip=<ip_address> netmask=<netmask>

15) At the End of the installation, power off the virtual machine (kickstart configuration will only shutdown after full installation automatically) and change the boot order to :

HardDisk -> CD-ROM

16) power on your virtual machine
17) you are done!

Comments are closed.