Red Hat: Set a Subscription Number Using a Kickstart File

in Categories , last updated August 15, 2010

How can I set a subscription number in a Kickstart file in Red Hat Enterprise Linux 5?

Kickstart is a network installation system for some Linux distributions including RHEL 5.

Kickstart is normally used at sites with many Linux systems, to allow easy installation and consistent configuration of new computers being set up.

Configurations can be built by hand, but the standard Red Hat installation program Anaconda will produce a kickstart configuration file at the end of any manual installation process. That can then be taken and used as a network kickstart installation template for other systems.

The kickstart file is a simple text file, containing a list of items, each identified by a keyword. You can create it by editing a copy of the sample.ks file found in the RH-DOCS directory of the Fedora or Red Hat Enterprise Linux Documentation CD, using the Kickstart Configurator application, or writing it from scratch. The Fedora or Red Hat Enterprise Linux installation program also creates a sample kickstart file based on the options that you selected during installation. It is written to the file /root/anaconda-ks.cfg. You should be able to edit it with any text editor or word processor that can save files as ASCII text.

The syntax is as follows in the Kickstart configuration file:

key (subscription number)

To skip the subscription number:

key --skip

With above two option it is possible to either specify a subscription number during Kickstart with Red Hat Enterprise Linux 5, or to force the installer to skip the subscription number.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 3 comments/add one below):

3 comment

    Have a question? Post it on our forum!