Changes between Version 9 and Version 10 of KickStart


Ignore:
Timestamp:
06/23/11 17:03:13 (7 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • KickStart

    v9 v10  
    1 We keep the installation tree for the latest version of Red Hat Enterprise Linux for network installs with a generic kickstart file that sets keyboard language, network install URL, basic server packages, and other local settings. Kickstart installs are usually much faster than CD installs since you can specify settings beforehand.  You can find more info by [http://staff.washington.edu/joshuadf/rhel/ Searching RHEL Manuals and mailing lists]. Ubuntu Linux also supports kickstart installation (via a `kickseed` package that translates into the native Debian preseed format). 
     1We keep the installation tree for [https://www.washington.edu/uware/rhel/ the latest version of Red Hat Enterprise Linux] for network installs with a generic kickstart file that sets keyboard language, network install URL, basic server packages, and other local settings. Kickstart installs are usually much faster than CD installs since you can specify settings beforehand.  You can find more info by [http://staff.washington.edu/joshuadf/rhel/ Searching RHEL Manuals and mailing lists]. Ubuntu Linux also supports kickstart installation (via a `kickseed` package that translates into the native Debian preseed format). 
    22 
    33== Making the install tree from ISO files == 
     
    2828To perform a kickstart install from CD, boot from the installation CD. At the `boot:` prompt, type "linux http://staff.washington.edu/joshuadf/ks/dhcp.cfg" to use the generic kickstart file.  
    2929 
    30 Alternatively, before installing you may copy the generic file to something like servername.cfg, add in your specific preferences, and point the installer to that file. For more information about the kickstart files, see [http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-file.html the Red Hat manual section about Kickstart Installations]. Some kickstart features are also available for [https://help.ubuntu.com/10.04/installation-guide/i386/automatic-install.html Ubuntu Automatic Installation]. 
     30Alternatively, before installing you may copy the generic file to something like servername.cfg, add in your specific preferences, and point the installer to that file. For more information about the kickstart files, see [http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-file.html the Red Hat manual section about Kickstart Installations]. And you can [http://www.dark.ca/2009/08/03/complex-partitioning-in-kickstart/ get really fancy using pre sections].  
    3131 
    32 With Grub2 (used in Ubuntu), you need to create a file such as /etc/grub.d/06-pxeboot with contents like the below and then run `update-grub`:  
     32Some kickstart features are also available for [https://help.ubuntu.com/10.04/installation-guide/i386/automatic-install.html Ubuntu Automatic Installation]. With Grub2 (used in Ubuntu), you need to create a file such as /etc/grub.d/06-pxeboot with contents like the below and then run `update-grub`:  
    3333{{{ 
    3434echo "Adding pxeboot" >&2 
     
    4242EOF 
    4343}}} 
     44 
     45== GPT == 
     46It is fairly easy to boot off of 2Tb+ drives in Red Hat EL6, though getting it to work is not obvious. For example, newer servers support UEFI but if you do a default Red Hat EL6 install on an 10G 64-bit Dell Power``Edge server you will get an MSDOS disk label. 
     47 
     48The secret is that the disk label must be GPT (GUID Partition Table) which is not the default for BIOS-based x86 machines (Macs and Itanium use EFI/GPT). Once a GPT disk label exists the installer will use it. I'm not clear on precisely what's going on with grub, the MBR, etc but it works. I did find a utility "gdisk" aka "GPT fdisk" http://www.rodsbooks.com/gdisk/ which has lots of details about GPT. 
     49 
     50Here are two ways to install with GPT as disk label on Red Hat EL6 on a BIOS-based server: 
     51 
     521. In the graphical installer, before partitioning switch to a shell (Ctrl-Alt-F2) and run "parted /dev/sda" and "mklabel gpt". You can now proceed as normal in the install, including automated or customized partitioning, LVM, etc. 
     53 
     542. Using kickstart, make sure you do NOT use "zerombr" or "clearpart --all" which recreate an MSDOS disk label ("clearpart --linux" is fine) and add something like this (the "dd" is only really necessary if you need to destroy an old disk label first): 
     55 
     56{{{ 
     57%pre 
     58dd if=/dev/urandom of=/dev/sda bs=512 count=64 
     59parted -s /dev/sda mklabel gpt 
     60}}} 
     61 
     62Unfortunately I did not have any luck getting GPT booting to work with Ubuntu 10.04, but I didn't try very hard. The installer seemed to always create a MSDOS label, and  "parted" is not available on the Ubuntu 10.04 installer's shell, only "fdisk". Surely that will change soon with single 3Tb disks already on newegg, though perhaps EFI will become mainstream first. 2Tb disk limits are just one of many things like 32-bit Windows that I thought would be long gone by 2011. 
    4463 
    4564 
     
    81100== USB Boot ISO == 
    82101 
    83 For whatever reason Red Hat no longer provides a `diskboot.img` that can easily create a USB version of boot.iso, so we have to create it ourselves: 
     102'''UPDATE''': you can actually dd the boot.iso to a USB key thanks to `isohybrid`. However you can still do the below if you want a smaller one. 
     103 
     104For whatever reason Red Hat no longer provides a `diskboot.img` that can easily create a USB version of boot.iso, but we can create one ourselves: 
    84105{{{ 
    85106# must be done on EL6 or Fedora equivalent to get latest syslinux