3.2 Using a Kickstart File to Install a System

A Kickstart installation requires access to the Oracle Linux installation media on a local CD-ROM drive or hard drive, or over the network using HTTP or NFS.

To use a Kickstart file to install a system:

  1. Boot the system from a bootable medium or from a network installation server that supports PXE client installation. If you need to modify the boot command, press Esc to access the command line. Note, however, that the boot configuration might not allow you to modify the boot command.

    For PXE clients, it is usual to specify the Kickstart parameters in the boot loader configuration. For example, the following example configures a Kickstart installation for a PXE client that boots using pxelinux:

    prompt 0
    default ol6u6
    timeout 0
    
    label ol6u6
    kernel vmlinuz-OL6u6
    append initrd=initrd-OL6u6.img ksdevice=eth0 kssendmac ks=http://10.0.0.11/ksfiles/ol6u6_cfg.ks

    The ksdevice=eth0 parameter specifies the interface to be used for network installation. If a system has multiple network interfaces, this prevents the installation from prompting you to choose an interface. Alternatively, you could specify ksdevice=bootif and add an ipappend 2 entry after the append entry:

    prompt 0
    default ol6u6
    timeout 0
    
    label ol6u6
    kernel vmlinuz-OL6u6
    append initrd=initrd-OL6u6.img ksdevice=bootif kssendmac ks=http://10.0.0.11/ksfiles/ol6u6_cfg.ks
    ipappend 2

    This configuration also prevents you from being prompted to choose a network interface but it does not control which interface is selected.

    The next example configures a Kickstart installation for a PXE client that boots using GRUB:

    default=0
    hiddenmenu
    splashimage=(nd)/splash.xpm.gz
    timeout=0
    
    title Oracle Linux 6 Update 6 Installation
        root (nd)
        kernel /vmlinuz-OL6u6 ksdevice=eth0 kssendmac ks=http://10.0.0.11/ksfiles/ol6u6_cfg.ks
        initrd /initrd-OL6u6.img
  2. If you have not customized the boot configuration to use Kickstart, you can use the ks option to specify the location of the Kickstart file.

    The following boot command specifies that the Kickstart file is on the boot CD:

    boot: linux ks=cdrom:/ks.cfg

    If the Kickstart file is located on an NFS server, you might use a boot command such as the following:

    boot: linux ksdevice=eth0 ip=dhcp ks=nfs:10.0.0.11:/ksfiles/ks.cfg

    where ksdevice=eth0 specifies the network interface and ip=dhcp specifies that DHCP should be used to configure this interface.

    For more information, see Section 2.2, “Installation Boot Options”.

  3. If the Kickstart configuration does not specify the installation method, insert the installation DVD or make the installation image available to the system when prompted.