Questo contenuto non è disponibile nella lingua selezionata.
6.4.9. Kickstart —
Important
/var/www/html/pub/
on the Proxy. RHN Satellite Servers already have a tree for each Red Hat distribution and therefore do not require separate trees. Even if the system connects through an RHN Proxy Server to get to the Satellite, these trees will be available for kickstart. Refer to Section 6.4.9.6, “Kickstart ⇒ Distributions —

Figure 6.7. Kickstart Overview
6.4.9.1. Introduction to Kickstart Copia collegamentoCollegamento copiato negli appunti!
6.4.9.1.1. Kickstart Explained Copia collegamentoCollegamento copiato negli appunti!
- After being placed on the network and turned on, the machine's PXE logic broadcasts its MAC address and a request to be discovered.
- If a static IP address is not being used, the DHCP server recognizes the discovery request and extends an offer of network information needed for the new machine to boot. This includes an IP address, the default gateway to be used, the netmask of the network, the IP address of the TFTP or HTTP server holding the bootloader program, and the full path and file name of that program (relative to the server's root).
- The machine applies the networking information and initiates a session with the server to request the bootloader program.
- The bootloader, once loaded, searches for its configuration file on the server from which it was itself loaded. This file dictates which kernel and kernel options, such as the initial RAM disk (initrd) image, should be executed on the booting machine. Assuming the bootloader program is SYSLINUX, this file is located in the
pxelinux.cfg
directory on the server and named the hexadecimal equivalent of the new machine's IP address. For example, a bootloader configuration file for Red Hat Enterprise Linux AS 2.1 should contain:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The machine accepts and uncompresses the init image and kernel, boots the kernel, and initiates a kickstart installation with the options supplied in the bootloader configuration file, including the server containing the kickstart configuration file.
- This kickstart configuration file in turn directs the machine to the location of the installation files.
- The new machine is built based upon the parameters established within the kickstart configuration file.
6.4.9.1.2. Kickstart Prerequisites Copia collegamentoCollegamento copiato negli appunti!
- A DHCP server is not required for kickstarting, but it can make things easier. If you are using static IP addresses, you should select static IP while developing your kickstart profile.
- An FTP server can be used in place of hosting the kickstart distribution trees via HTTP.
- If conducting a bare metal kickstart, you should 1)Configure DHCP to assign required networking parameters and the bootloader program location. 2)Specify within the bootloader configuration file the kernel to be used and appropriate kernel options.
6.4.9.1.3. Building Bootable Kickstart ISOs Copia collegamentoCollegamento copiato negli appunti!
/isolinux
from the first CD-ROM of the target distribution. Then edit the isolinux.cfg
file to default to 'ks'. Change the 'ks' section to the following template:
label ks kernel vmlinuz append text ks={url} initrd=initrd.img lang= devfs=nomount ramdisk_size=16438 \ {ksdevice}
label ks
kernel vmlinuz
append text ks={url} initrd=initrd.img lang= devfs=nomount ramdisk_size=16438 \
{ksdevice}
http://my.sat.server/kickstart/ks/mode/ip_range
http://my.sat.server/kickstart/ks/mode/ip_range
ksdevice=eth0
ksdevice=eth0
isolinux.cfg
further for your needs, such as by adding multiple kickstart options, different boot messages, shorter timeout periods, etc.
mkisofs -o file.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 \ -boot-info-table -R -J -v -T isolinux/
mkisofs -o file.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -R -J -v -T isolinux/
isolinux/
is the relative path to the directory containing the isolinux files from the distribution CD, while file.iso
is the output ISO file, which is placed into the current directory.
6.4.9.1.4. Integrating Kickstart with PXE Copia collegamentoCollegamento copiato negli appunti!
Note
6.4.9.2. View a List of Kickstart Profiles Copia collegamentoCollegamento copiato negli appunti!
Figure 6.8. Kickstart Profiles
6.4.9.3. Create a New Kickstart Profile Copia collegamentoCollegamento copiato negli appunti!

- On the first page, enter a kickstart profile label and select a kickstartable tree for this profile. The kickstartable tree drop-down menu is only populated if one or more distributions have been created for the selected base channel.
- On the second page, select (or enter) the URL of the kickstart tree.
- On the third page, select a root password for the system. Be sure to follow the password recommendations from the Password Security section of the Red Hat Enterprise Linux Security Guide, available at http://www.redhat.com/docs/manuals/enterprise/.
6.4.9.3.1. Kickstart Details ⇒ Details —
Copia collegamentoCollegamento copiato negli appunti!
Figure 6.9. Kickstart Details
- Rename the profile
- Change the operating system it installs by clicking (Change)
- Deactivate the profile so that it cannot be used to schedule a kickstart by removing the Active checkmark
- Select whether this profile is the default for all of your organization's kickstarts by checking or unchecking the box.
- Enter comments that are useful to you in distinguishing this profile from others
6.4.9.3.2. Kickstart Details ⇒ Operating System —
Copia collegamentoCollegamento copiato negli appunti!
- Change the base channel
- Select from the available base channels, such as Red Hat Enterprise Linux AS version 4. Satellite customers see a list of all base channels that are currently synced to their Satellite.
- File Location
- The exact location from which the kickstart tree is mounted. This value is determined when the profile is created. You can view it on this page but you cannot change it.
6.4.9.3.3. Kickstart Details ⇒ Advanced Options —
Copia collegamentoCollegamento copiato negli appunti!
6.4.9.3.4. Kickstart Details ⇒ Bare Metal Kickstart —
Copia collegamentoCollegamento copiato negli appunti!
6.4.9.3.5. System Details ⇒ Details —
Copia collegamentoCollegamento copiato negli appunti!
Figure 6.10. System Details
- Select from DHCP and static IP, depending on your network
- Choose the level of SELinux that is configured on kickstarted systems
- Enable configuration management or remote command execution on kickstarted systems
- Change the root password associated with this profile
6.4.9.3.6. System Details ⇒ Locale —
Copia collegamentoCollegamento copiato negli appunti!
6.4.9.3.7. System Details ⇒ Partitioning —
Copia collegamentoCollegamento copiato negli appunti!
partition /boot --fstype=ext3 --size=200 partition swap --size=2000 partition pv.01 --size=1000 --grow volgroup myvg pv.01 logvol / --vgname=myvg --name=rootvol --size=1000 --grow
partition /boot --fstype=ext3 --size=200
partition swap --size=2000
partition pv.01 --size=1000 --grow
volgroup myvg pv.01 logvol / --vgname=myvg --name=rootvol --size=1000 --grow
6.4.9.3.8. System Details ⇒ File Preservation —
Copia collegamentoCollegamento copiato negli appunti!

6.4.9.3.9. System Details ⇒ GPG and SSL —
Copia collegamentoCollegamento copiato negli appunti!
Note
6.4.9.3.10. System Details ⇒ Troubleshooting —
Copia collegamentoCollegamento copiato negli appunti!
- Bootloader
- For some headless systems, it is better to select the non-graphic LILO bootloader.
- Kernel Parameters
- Enter kernel parameters here that may help to narrow down the source of hardware issues.
6.4.9.3.11. Software ⇒ Package Groups —
Copia collegamentoCollegamento copiato negli appunti!
Figure 6.11. Software
@office
or @admin-tools
you would like to install on the kickstarted system in the large text box on this page. If you would like to know what package groups are available, and what packages they contain, refer to the RedHat/base/
file of your kickstart tree. Satellite customers will most likely locate this file here: /var/www/satellite/rhn/kickstart/<kickstart label>/RedHat/base/comps.xml
.
6.4.9.3.12. Software ⇒ Package Profiles —
Copia collegamentoCollegamento copiato negli appunti!
6.4.9.3.13. Activation Keys —
Copia collegamentoCollegamento copiato negli appunti!
Figure 6.12. Activation Keys
6.4.9.3.14. Scripts —
Copia collegamentoCollegamento copiato negli appunti!
Figure 6.13. Scripts
- Click the add new kickstart script link in the upper right
- Enter the path to the scripting language used to create the script, such as /usr/bin/perl
- Enter the full script in the large text box
- Indicate whether this script is to be executed in the %pre or %post section of the kickstart process
- Indicate whether this script is to run outside of the chroot environment. Refer to the Post-installation Script section of the Red Hat Enterprise LinuxSystem Admin Guide for further explanation of the
nochroot
option
Note
/tmp/part-include
. Then you can call for that file by including the following line within the Partition Details field of the System Details ⇒ Partitioning tab:
%include /tmp/part-include
%include /tmp/part-include
6.4.9.3.15. Kickstart File —
Copia collegamentoCollegamento copiato negli appunti!
Figure 6.14. Kickstart File
6.4.9.4. Kickstart ⇒ Bare Metal —
Copia collegamentoCollegamento copiato negli appunti!
6.4.9.5. Kickstart ⇒ GPG and SSL Keys —
Copia collegamentoCollegamento copiato negli appunti!
Important
6.4.9.6. Kickstart ⇒ Distributions —
Copia collegamentoCollegamento copiato negli appunti!
Important
satellite-sync
are made available automatically and do not require the creation of a separate installation tree. These trees are available to client systems that kickstart through the Satellite. While you may be able to access the files from a non-kickstarting client, this functionality is not supported and may be removed at any time in the future.
my-orgs-rhel-as-4
. In the External Location field, paste the URL to the base of the installation tree. (You can test this by appending "README" to the URL in a Web browser, pressing Enter, and ensuring that the distribution's readme file appears.)
Red Hat Enterprise Linux AS (v.4 for x86)
and Red Hat Enterprise Linux 4
, respectively. When finished, click the button.
6.4.9.7. Kickstart ⇒ File Preservation —
Copia collegamentoCollegamento copiato negli appunti!
Important
/dev/hda1
and /dev/sda1
are not supported. Finally, only file and directory names may be entered. No regular expression wildcards can be included.