Home Tech support

Kickstart for Fedora and RedHat

/techsup/ris/

Text with a grey background will vary between users and systems.

Text in a Courier/Serif-type font is to be typed at a terminal/command prompt.

Text inside [square brackets] is optional to the command and can be ignored or changed.

"example.net" is a fictitious domain.



Introduction

The aim of this document is to enable you to build RedHat and Fedora client PCs with the minimum of time and effort.

The example in this document uses Fedora Core 4 for the client and Apache running on Linux for the server.

Distributions prepared so far are:

Installation typically takes less than 30 minutes depending on the distribution, the speed of the client and network conditions.


Quick start guide


Kickstart server

Set up an http server, e.g. Apache, with name kickstart.example.net. If this name is changed then the boot CDs will have to be recompiled (see below).
Make a directory at the document root level for each distribution, e.g. http://kickstart/kickstart/fc4
Copy the RedHat or Fedora directory from each CD to the distribution directory, e.g. http://kickstart/kickstart/fc4/Fedora/...
cp -r /media/cdrom/Fedora /public/kickstart/fc4/

Set up a kickstart file. You can copy this from /root/anaconda-ks.cfg on an existing installation or use this example (Fedora Core 4).
The kickstart file should be copied to the distribution directory, e.g. http://kickstart/kickstart/fc4/ks.cfg.
The kickstart file can also run a script at the end. Write your own or use this example (all versions).
Copy this to a common directory, e.g. http://kickstart/kickstart/common/.


Boot CD

Copy the isolinux directory from the distribution's boot CD to a Linux computer:

mkdir /tmp/cdroot
cp -rv /mnt/cdrom/isolinux /tmp/cdroot/

Make the files writeable:

chmod -R u+w /tmp/cdroot/isolinux

Edit the isolinux.cfg file:

vi /tmp/cdroot/isolinux/isolinux.cfg

default hdd
prompt 1
timeout 300
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label linux
 kernel vmlinuz
 append initrd=initrd.img ramdisk_size=8192
label text
 kernel vmlinuz
 append initrd=initrd.img text ramdisk_size=8192
label memtest86
 kernel memtest
 append -
label kickstart
 kernel vmlinuz
 append initrd=initrd.img ramdisk_size=8192 ks=http://kickstart.example.net/kickstart/fc4/ks.cfg
label hdd
 localboot 0x80

Edit the boot.msg file:

vi /tmp/cdroot/isolinux/boot.msg

splash.lss

- To start a kickstart install type: kickstart <ENTER>.
WARNING: THIS WILL REMOVE ANY DATA CURRENTLY ON THE HARD DISK

- To start an http install type: linux askmethod <ENTER>.
For the source use http://kickstart/kickstart/fc4/

- The computer will boot from the hard disk after 30 seconds.

[F1-Main] [F2-Options] [F3-General] [F4-Kernel] [F5-Rescue]

Make a new bootable iso image from the isolinux directory:

mkisofs -o /tmp/boot-ks.iso -r -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T /tmp/cdroot/isolinux/


Kickstart client

Use your favourite CD writing software to write the CD, or if using VMWare point the CD-ROM at the iso image.

Set the PC to boot from CD.

When you reach the boot: prompt type kickstart

The computer will boot from the hard disk after 30 seconds if there is no input.


Notes

To encrypt a password

htpasswd -n password
New password:Amcs1n!7j
Re-type new password:Amcs1n!7j
password:0Z4T6RibGGq1o

VMWare configuration

Certain RedHat and Fedora distributions need the following configuration added to the end of /etc/sysconfig/network-scripts/ifcfg-eth0:

check_link_down () {
return 1;
}

References


Creative Commons License

m0j0.net ©2012

Disclaimer
The views expressed on this site are solely those of the author. Quotations are attributed as far as possible to their authors. The author of this site is not responsible for the content of external internet sites.
m0j0.net is a participant in the Amazon Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.co.uk.