Linux Interview Questions & Answers How do you configure Kickstart?

Kickstart installation is a method of installing Red Hat (or any other distribution) automatically. It needs a simple text file containing all the information which anaconda installer needs while installing the machine. This kickstart file is a simple text file containing all the information in a special syntactical manner so that anaconda can read it and move on further for installation. To write a kickstart file, there are so many tools. Red Hat too provide a graphical tool which is system-config-kickstart The tool system-config-kickstart is so simple and has very limited functionality, so one can write an extensive kickstart file using the same. But one can refer the following documentation for writing the one. https://access.redhat.com/site/documentation/enUS/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html This is one of the best documentation available for writing a kickstart file. After writing a kickstart file , following is a sample. ###########sample########### install text cdrom lang en_US keyboard us network --bootproto dhcp onboot=yes zerombr bootloader --location mbr timezone America/Denver auth --enablemd5 --enableshadow rootpw redhat selinux --disabled firewall --disabled skipx clearpart --all --initlabel reboot

part /boot --fstype=ext3 --size=200 part pv.01 --size=1000 --grow part swap --size=1000 --fstype=swap volgroup myvg pv.01 logvol /home --vgname=myvg --name=homevol --size=500 logvol / --vgname=myvg --name=rootvol --size=1000 --grow %packages @base
################################ One can host this file to some network like http://<some_ip>/ks.cfg and when booted with the bootable dvd media, provide the following boot parameters. Boot: linux ks=http://<some_ip>/ks.cfg This will first fetch the kickstart file and will install using it.

Sign up to vote on this title
UsefulNot useful