Changes between Version 2 and Version 3 of KickstartInstallation

Show
Ignore:
Author:
pavgi@uab.edu (IP: 138.26.125.8)
Timestamp:
10/06/09 13:15:39 (2 months ago)
Comment:

started: list of kickstart files, conf options

Legend:

Unmodified
Added
Removed
Modified
  • KickstartInstallation

    v2 v3  
    1  * Kickstart is a method for automated installation of Red Hat, Fedora, CentOS linux. It contains installation steps that would normally be performed during a typical installation. Following is an example of a kickstart file for CentOS minimum install based on a discussion on uabgrid-dev list.  
    2 {{{ 
    3 #platform=x86, AMD64, or Intel EM64T                                                                                                
    4 # System authorization information                                                                                                  
    5 # Install OS instead of upgrade                                                                                                     
    6 install                                                                                                                             
    7 text                                                                                                                                
    8 # Installation logging level                                                                                                        
    9 logging --level=info                                                                                                                
    10 # Use CDROM installation media                                                                                                      
    11 cdrom                                                                                                                               
    12 # Reboot after installation                                                                                                         
    13 reboot                                                                                                                              
    14 auth  --useshadow  --enablemd5                                                                                                      
    15 # System bootloader configuration                                                                                                   
    16 # For EL5 virtual machines, Append the following in Grub to help keep the clock from drifting                                       
    17 # and to reduce the interupt requests                                                                                               
    18 #   32bit: --append="rhgb quiet divider=10 clocksource=acpi_pm"                                                                     
    19 #   64bit: --append="rhgb quiet notsc divider=10"                                                                                   
    20 bootloader --location=mbr --md5pass=$1$mXSD1l6mO$BBCk1gYArAATS7dlCQGthN. --append="rhgb quiet divider=10 clocksource=acpi_pm"       
    21 # Run the Setup Agent on first boot                                                                                                 
    22 firstboot --disable                                                                                                                 
    23 # System keyboard                                                                                                                   
    24 keyboard us                                                                                                                         
    25 # System language                                                                                                                   
    26 lang en_US.UTF-8                                                                                                                    
    27 #Root password                                                                                                                      
    28 rootpw --iscrypted $1$SWhuHTeF$zQ2rNyyyVgrQavWqrGJIX.                                                                               
    29 # Network settings                                                                                                                  
    30 network --device eth0 --bootproto dhcp                                                                                              
    31 # Firewall configuration                                                                                                            
    32 firewall --enabled --http --ftp --ssh --telnet --smtp                                                                               
    33 # SELinux configuration                                                                                                             
    34 selinux --permissive                                                                                                                
    35 # Do not configure the X Window System                                                                                              
    36 skipx                                                                                                                               
    37 # System timezone                                                                                                                   
    38 timezone  America/Chicago                                                                                                           
    39 # Partition clearing information                                                                                                    
    40 clearpart --all --initlabel                                                                                                         
    41 # Disk partitioning information                                                                                                     
    42 # Disk partitioning information                                                                                                     
    43 part /boot --bytes-per-inode=4096 --fstype="ext3" --grow --maxsize=64 --size=10                                                     
    44 part pv.1 --size=0 --grow --maxsize=8032                                                                                            
    45 volgroup VolGroup00 pv.1                                                                                                            
    46 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --maxsize=7520 --grow                                        
    47 logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512                                                            
     1== Introduction ==  
     2Kickstart is a method for automated installation of Red Hat and Fedora like linux distros. It contains installation steps that would normally be performed manually during a typical installation.   
    483 
    49 %packages --nobase 
    50 yum                
    51 rpm                
    52 lvm2               
    53 grub               
    54 sysstat            
    55 ntp                
    56 openssh-server     
    57 openssh-clients    
     4== Commonly used kickstart files ==  
     5The kickstart files are currently available thru atlab's internal network. Following is a list of kickstart files commonly used in atlab installs. I am following a naming convention as ks-<number>*.cfg. The <number> indicates disk size in GB.    
     6 * Minimal installs    
     7  * ks8.cfg: Minimal install   
     8  * ks8-x.cfg: Minimal install with X windows   
     9  * ks8-x-gnome.cfg: Minimal install with X windows and GNOME desktop environment  
    5810 
    59 %post 
    60 ########################################################### 
    61 ### Create script to configure the server at first boot ### 
    62 ########################################################### 
    63 cat > /root/postinstall-config.sh <<\EOF3 
    64 #!/bin/sh 
    65 # Configure The Server 
     11 * SG-OSG  
     12  * ks8-voms.cfg: VOMS install    
     13  * ks8-ce.cfg: Compute element install  
    6614 
    67 ######################################## 
    68 # Get the clock in sync 
    69 /usr/sbin/ntpdate tick.dpo.uab.edu 
     15 * Lustre  
     16  * ks8-lustre-client.cfg: Lustre client install 
    7017 
    71 ######################################## 
    72 # Disable cpuspeed on VM guests, this service will cause time drift 
    73 /sbin/chkconfig cpuspeed off 
     18== Kickstart configuration == 
     19=== Security ===  
     20 * SELinux is disabled by default.  
     21 * Firewall is disabled by default, but HTTP, SSH, telnet, and SMTP ports are opened in the configuration.  
    7422 
    75 #Return rc.local back to the original copy so we don't rerun this each reboot 
    76 mv /etc/rc.d/rc.local /etc/rc.d/rc.local.firstboot 
    77 mv /etc/rc.d/rc.local.secondboot /etc/rc.d/rc.local 
     23=== User accounts ===  
     24Three non-root user accounts jpr, ppr, and ssp are created in post-install step. A user will be forced to change password after first login.   
    7825 
    79 # Reboot the system to pick up all the updates 
    80 /sbin/shutdown -r now 
     26=== NTP ===  
    8127 
    82 EOF3 
    83  
    84 # make configuration script executable 
    85 chmod +x /root/postinstall-config.sh 
    86 }}} 
    87  
    88  * Save this file on a HTTP server accessible by new machine. To begin installation using this kickstart file enter following command on installation method screen. 
     28== How to start kickstart install == 
     29For a HTTP based method, save your kickstart file in a web accessible location. The kickstart installation can be started using following command:  
    8930{{{ 
    9031linux ks=<kiskstart-file-location> 
    9132}}} 
    9233 
    93  * Reference: http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-kickstart2.html  
     34 
     35== References == 
     36 * http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-kickstart2.html