Scientific Linux Fermi.3.0.x Kickstart


First thing to know is that Fermi Linux Kickstarting is the same as RedHat's kickstart. So anything you see here works with RedHat, at the appropriate levels.

Documentation

The kickstart documentation is found in the rhel-sag-en rpm.
(sag stands for System Administrators Guide)
  • yum install rhel-sag-en
The kickstart section of the administrators guide will be at
/usr/share/doc/rhel-sag-en-3/ch-kickstart2.html
And the often used options section is at
/usr/share/doc/rhel-sag-en-3/s1-kickstart2-options.html

Sample Files

Sample Kickstart with most everything included

Misc stuff

This is just some miscellaneous stuff that is good to know.

Creating a Kickstart File

Since Fermi Linux 7.3.1 the installer has automatically generated a kickstart file, and placed it in your /root/ directory. The file is called anaconda-ks.cfg
This file has everything that you did during the install, from your video mode, your root password (encrypted), your disk partitioning (commented out), to all the packages that you installed.
But, there is two things that the automatically generated kickstart file does not have. That is where to install from, and the post install scripts. So even if you don't do anything else with your kickstart file, you should add the following two sections.
Put the install from line at the top, though it can really go anywhere in the top section of the file.


And then put the post install script line at the bottom, before the regular %post section. The other two places people usually edit is the drive partition lines (They start with part), as well as the packages(everything below %packages).
Note: If you change monitors and/or video cards, you will want to double check the xconfig line in your kickstart

Using a Kickstart file

After you've gotten your kickstart file written, you've got to get the installer to use it. There is a wide variety of places you can put your kickstart, you just have to be able to tell the installer how to get at it.
The best page that tells how to use it is at /usr/share/doc/rhel-sag-en-3/s1-kickstart2-startinginstall.html
All of our following examples assume that you are sitting at the machine and are able to type at the keyboard.

Kickstart file on a floppy disk

This is one of the most common ways of doing a kickstart, so we'll put it here.

  1. Start with a dos formated floppy
  2. Copy your kickstart file onto the floppy, with the name of ks.cfg
  3. Reboot your machine with the installation CD-Rom in the cd-rom tray. You should put the floppy disk in the floppy drive. If your machine keeps trying to boot from the floppy drive, take out the floppy drive until it has booted off the cd-rom, but put the floppy back in before you do the next step.
  4. At the boot prompt type in

Kickstart file on the network

Getting your kickstart file from the network is often alot easier than having to carry a seperate floppy disk around for all of your machines. It also makes things alot easier when your machine doesn't even have a floppy disk.

Using dhcp
Note:This does not mean that your machine will be setup to use dhcp, but that your machine must be able to ask for a dhcp address and get one. So if you are at fermilab, then you have to have your machine registered.
  1. get or make a network install CD
    or get or make network install floppies.
  2. boot the network install CD or floppies.
  3. At the boot: prompt type in
    linux ks=(full address to you kickstart config file)
    and example
    linux ks=http://home.fnal.gov/~dawson/kickstart/cob.90.ks.cfg
  4. away you go with your install, using kickstart

Using a static IP address
Before doing this, make sure you have your machines IP adress, Netmask, Gateway and name server ip address.
Note: For a complete list of all the command line entries that you can do, you can look at command-line.txt from the anaconda rpm.
  1. get or make a network install CD
    or get or make network install floppies.
  2. boot the network install CD or floppies.
  3. At the boot: prompt type in
    linux ks=(full address to you kickstart config file) ip=(IP address) netmask=(netmask) gateway=(gateway) dns=(name server)
    and example
    linux ks=http://home.fnal.gov/~dawson/kickstart/cob.90.ks.cfg ip=131.225.80.194 netmask=255.255.248.0 gateway=131.225.87.200 dns=131.225.8.120
  4. away you go with your install, using kickstart

MISC

Serial Console

If you want your install to go through the serial console, you can do a


If you have any comments or questions please write to Troy Dawson who is the maintainer of this page.

December 3, 2005