2.2. Kickstart Trees
There must be at least one kickstart tree installed on the Satellite in order to use kickstart provisioning. Kickstart trees can be installed either automatically or manually.
Procedure 2.1. Installing Kickstart Trees Automatically
For all distributions that have a base channel in RHN, kickstart trees can be installed automatically. This occurs as part of normal channel synchronization via
satellite-sync.
- Choose which distribution to base the kickstarts on and locate that distribution's base channel, as well as its corresponding RHN Tools channel.For example, to use Red Hat Enterprise Linux 5 with x86 architecture, the
rhel-i386-server-5channel and its corresponding RHN Tools channelrhn-tools-rhel-i386-server-5are required. - If it is a connected Satellite, synchronize the Satellite server with the Red Hat servers directly using the
satellite-sync. If the Satellite server is disconnected, it is necessary to obtain disconnected channel dumps from the Red Hat servers and synchronize with those. - Synchronizing the channel will automatically create a corresponding kickstart tree for that distribution.
Procedure 2.2. Installing Kickstart Trees Manually
To kickstart a custom distribution, which is usually a distribution not supported by Red Hat, or a beta version of Red Hat Enterprise Linux, create the corresponding kickstart tree manually. An installation ISO is required for the distribution used for the kickstart.
- Copy the installation ISO to the Satellite server and mount it to
/mnt/iso - Copy the contents of the ISO to a custom location. It is recommended to create a directory within
/var/satellitefor all custom distributions. For example, copying a RHEL beta distribution's contents to/var/satellite/custom-distro/rhel-i386-server-5.3-beta/ - Use the RHN Satellite web interface to create a custom software channel. Use
to create a parent channel with an appropriate name and label. For the example used above, use the label rhel-5.3-beta. - Push the software packages from the tree location to the newly created software channel using the
rhnpushcommand:rhnpush --server=http://localhost/APP -c 'rhel-5.3-beta' \ -d /var/satellite/custom-distro/rhel-i386-server-5.3-beta/Server/
rhnpush --server=http://localhost/APP -c 'rhel-5.3-beta' \ -d /var/satellite/custom-distro/rhel-i386-server-5.3-beta/Server/Copy to Clipboard Copied! Toggle word wrap Toggle overflow The sub-directory within the tree could be different depending on the distribution. - Once the software packages have been pushed, they can be deleted from within the tree path using the
rmcommand. The packages are still stored on the Satellite server within the channel, and are no longer required in the tree.rm /var/satellite/custom-distro/rhel-i386-server-5.3-beta/Server/*.rpm
rm /var/satellite/custom-distro/rhel-i386-server-5.3-beta/Server/*.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
You can choose to leave the software packages within the kickstart tree. This will allow them to be installed with theyumcommand at any time later on. - Use the RHN Satellite web interface to create the distribution. Use
to create the distribution, using an appropriate label and the full tree path (such as /var/satellite/custom-distro/rhel-i386-server-5.3-beta/. Select the base channel that was created earlier, and the correct Installer Generation (such as Red Hat Enterprise Linux 5). To complete the creation, select Create Kickstart Distribution. - To maintain the same software across multiple environments and systems, the RHN Tools child channel from an existing Red Hat Enterprise Linux base channel can be cloned as a child channel of the newly created base channel. Cloning a child channel can be done by:
- On the Satellite web interface, click on
- Choose the Child Channel you wish to clone from the drop down box Clone From: and choose the clone state.
- Click Create Channel.
- Fill in the necessary information and choose the parent channel that the cloned child channel needs to be under.
- Click Create Channel.
Figure 2.1. Creating a Kickstart Distribution