When installing linux we have to sit if front of the system and answer the questions whenever it asks. This process is time consuming and needs one to attend while installation take process.Kickstart helps to install system unattended. We can create an answer file and notify the system to take the answers from the file. The file is known as kickstart file. We can configure dhcp such a way that it will automatically provide the system the path and details of the kickstart file in the network .In windows systems kickstart file is known as answer file. In this post we will see howto configure kickstart server linux step step and doing the remote installation using kickstart.
it is advised to read the remote installation post if you dont have much idea about remote installation.
These are the steps happening.
1. asks IP and location of kickstart file
2.gives the info
3. Takes the ks.cfg file and mounts share of OS
dhcp [nfs / ftp / http] + ks.cfg [nfs]
The dhcp is using for getting IP for the client machine at first for instation and to get the location of Ks.cfg file. The remote installation image can be of NFS, HTTP or FTP. The kickstar file will be shared using NFS.
package = system-config-kickstart
#yum -y install system-config-kickstart
Default Language = English USA
Keyboard = U S English
Time Zone = Asia/Culcutta
Root Password = redhat
Confirm Password = redhat
check the encryption box
Target Architecture = x86,AMD64 or Intel EM64T
Check the reboot checkbox
Installaton method = Perform new installation
Choose the Installation Method = NFS //You can use HTTP or FTP if you want
NFS server = IP of the machine which contains NFS image of DVD
NFS directory = Path of NFS share
Boot Loader options
Install New Boot Loader
Use GRUB password if required
Install boot loader on MBR
Do not clear MBR
Remove all exisiting partitions //Removing linux partitions only wont work all time. Windows partitions will be deleted.
click add button and configure as required
Click Add Network Devices button
Select the network device which is connected to ur machine
network type = DHCP or STATIC [manual]
check use shadow passwords
check use MD5
Security level = Disable firewall
SELinux = Disabled
Check Configure the x-window system
In General Tab
Color Depth Resolution
8 1024*768 //Default 640*480 will give a blurred image
Check Start X window system on Boot
Nothing to do //We will add package lines
Add if wanted
Add if wanted
Configuration over. Save the file. Open the file for further editing.
Add these lines - Otherwise it wont work.
And these lines for Graphics
###Make it as NFS share###
copy the ks.cfg file to some dir and share it via NFS
#cp ks.cfg /kick/
Add these lines to DHCP Configuration file
next-server 192.168.1.101; // [ip of the machine which contains kickstart file(ks.cfg)]
#service dhcpd restart
#service nfs restart
#Boot: linux ks
Have a break. The system will be ready when you get back!
If you are not using dhcp, you can use following format at boot
#Boot: linux ks=nfs:IP_ADDR_NFS_SVR:/location/of/ks.cfg ksdevice=eth0 IP:IP_ADDR_CLIENT netmask=255.255.255.0 gateway=IP_ADDR_gateway
Recommended Reading1. Practical Guide to Linux Commands, Editors, and Shell Programming, A (2nd Edition)
2. UNIX and Linux System Administration Handbook (4th Edition)
3. Linux All-in-One For Dummies
4. Introduction to the Command Line (Second Edition): The Fat Free Guide to Unix and Linux Commands