Monday, March 26, 2018

Automating Linux Installation using Kickstart

1. Install a webserver

yum -y install httpd
service httpd start
service httpd status
chkconfig –level 35 httpd on

2. Setting up Kickstart

mkdir -p  /var/www/html/pub/redhat/
touch /var/www/html/pub/redhat/ks-img.cfg

The Kickstart file holds what could be termed an "answers" file to questions that the installer needs to know in order to perform installation.
It is possible to manually create a kickstart file using a text editor but RHEL provides GUI Kickstart maker program.

3. Booting from the kickstart

Ensure that the VM is connected to the iso img

Press Tab

vmlinuz initrd=initrd.img asknetwork hostname=<system-hostname> ks=http://webserver-ip/pub/redhat/ks-img.cfg

you can change the windows using atl+f1

No comments:

Post a Comment