Sun N1 System Manager 1.2 Site Preparation Guide

Installing the RedHat Linux OS Using Kickstart

This section provides example Kickstart files and the procedures to configure a Kickstart file and then use the Kickstart file to install Linux.

Sample Kickstart Files

This section provides two example Kickstart files. The first Kickstart file shown in Example 3–2 is configured for a full distribution installation of Linux. The second Kickstart file shown in Example 3–3 is configured to install only the RPM groups required by the N1 System Manager.


Example 3–2 Entire Distribution Kickstart File

install
 lang en_US.UTF-8
 langsupport --default en_US.UTF-8 en_US.UTF-8
 keyboard us
 mouse genericwheelps/2 --device psaux
 nfs --server 10.0.0.50 --dir /export/images/RHEL3U2
 skipx
 timezone America/Denver
 rootpw --iscrypted $1$Rig3dbXb$OWcv00J/V2WsBGcgx0bmp1
 network --device eth0 --bootproto static --ip 10.0.0.100
 --netmask 255.255.255.0 --gateway 10.0.0.254 --nameserver 10.0.0.200
 --hostname sun-ms
 network --device eth1 --bootproto static --ip 192.168.200.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-prov
 network --device eth2 --bootproto static --ip 192.168.100.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-admin
 firewall -disabled
 authconfig -enablemd5 -enableshadow
 bootloader -location=mbr
 clearpart --all -drives=hda
 part /boot --fstype ext3 --size=102 -ondisk=sda
 part / --fstype ext3 --size=1024 --grow -ondisk=sda
 part swap --size=4096 --grow --maxsize=1024 -ondisk=sda
 reboot 
 %packages 
 @ everything
 grub
 kernel
 kernel-smp
 %post
 echo "RHEL3U2 installed `/bin/date`" > /etc/motd
    cat << EOF > /etc/resolv.conf
    nameserver 10.0.0.200
    search Customer.Com
    EOF
    cat << EOF > /etc/hosts
    127.0.0.1         localhost.localdomain  localhost
    10.0.0.100        sun-ms
    192.168.200.254   sun-ms-prov
    192.168.100.254   sun-ms-admin 
    EOF


Example 3–3 Required RPMs Only Kickstart File

install
 lang en_US.UTF-8
 langsupport --default en_US.UTF-8 en_US.UTF-8
 keyboard us
 mouse genericwheelps/2 --device psaux
 nfs --server 10.0.0.50 --dir /export/images/RHEL3U2
 skipx
 timezone America/Denver
 rootpw --iscrypted $1$Rig3dbXb$OWcv00J/V2WsBGcgx0bmp1
 network --device eth0 --bootproto static --ip 10.0.0.100
 --netmask 255.255.255.0 --gateway 10.0.0.254 --nameserver 10.0.0.200
 --hostname sun-ms
 network --device eth1 --bootproto static --ip 192.168.200.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-prov
 network --device eth2 --bootproto static --ip 192.168.100.254
 --netmask 255.255.255.0 --gateway --nameserver 10.0.0.200
 --hostname sun-ms-admin
 firewall -disabled
 authconfig -enablemd5 -enableshadow
 bootloader -location=mbr
 clearpart --all -drives=hda
 part /boot --fstype ext3 --size=102 -ondisk=sda
 part / --fstype ext3 --size=1024 --grow -ondisk=sda
 part swap --size=4096 --grow --maxsize=1024 -ondisk=sda
 reboot 
 %packages -resolvedeps
 @ office
 @ engineering-and-scientific
 @ editors
 @ system-tools
 @ base-x
 @ web-server
 @ development-tools
 @ printing
 @ text-internet
 @ legacy-network-server
 @ gnome-desktop
 @ admin-tools
 @ server-cfg
 @ mail-server
 @ ftp-server
 @ network-server
 @ graphical-internet
 @ compat-arch-support
 grub
 kernel
 kernel-smp
 %post
 echo "RHEL3U2 installed `/bin/date`" > /etc/motd
    cat << EOF > /etc/resolv.conf
    nameserver 10.0.0.200
    search Customer.Com
    EOF
    cat << EOF > /etc/hosts
    127.0.0.1         localhost.localdomain  localhost
    10.0.0.100        sun-ms
    192.168.200.254   sun-ms-prov
    192.168.100.254   sun-ms-admin 
    EOF

ProcedureTo Configure the Kickstart File

Steps
  1. Log in to a machine that is accessible to the management server using NFS or HTTP.

  2. Create the Linux Kickstart configuration file.

    Choose whether to use the entire distribution Kickstart file shown in Example 3–2, or the required-RPMs-only Kickstart file shown in Example 3–3. Copy the chosen configuration data into a file, for example, n1gc-ks.cfg.


    Note –

    If you chose the required-RPMs-Kickstart file, you must also manually install additional RPMs as described in To Install RPMs Required by the N1 System Manager From the CD-ROMs.


  3. Configure the Kickstart installation file for your environment.

    • If you plan to use dynamic IP addressing, replace each network statement in the Kickstart file using the following syntax:

      network --device ethx --bootproto dhcp

      where ethx is the port, for example, eth0.

    • If you plan to use static IP addressing, make the following changes in each of the network statements.

      • Replace ip with the Ethernet port IP address.

      • Replace nameserver with the IP address of the corporate name server. If you want to use more than one name server, separate each name server IP address with a comma. For example: --nameserver 110.112.113.11,110.112.113.22.

      • Replace hostname with the name of your management server.

      If desired, you can combine static and dynamic IP addressing for the ETH ports. Modify the network settings according to your chosen reference architecture.

  4. Save the Kickstart file to an NFS or HTTP directory on the Kickstart server.

Next Steps