The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
The first part of a kickstart file defines the installation options and their associated values, and it defines how to configure the system storage, for example:
#platform=x86, AMD64, or Intel EM64T #version=DEVEL # Firewall configuration firewall --enabled --service=ssh # Install OS instead of upgrade install # Use CDROM installation media cdrom repo --name="Oracle Linux Server" --baseurl=cdrom:sr0 --cost=100 # System authorization information auth --useshadow --passalgo=sha512 # Root password rootpw --iscryptedSHA512_password_hash
# Use graphical install graphical firstboot --disable # System keyboard keyboard us # System language lang en_US # SELinux configuration selinux --enforcing # Installation logging level logging --level=info # System timezone timezone America/Los_Angeles # Network information network --bootproto=dhcp --device=eth0 --onboot=on # System bootloader configuration bootloader --append="rhgb crashkernel=auto quiet" --location=mbr --driveorder="sda" # Non-administrative user user --name=user
--homedir=/home/user
--password=SHA512_password_hash
--iscrypted # Partition information clearpart --all --drives=sda part /boot --fstype=ext4 --size=500 part pv.008002 --grow --size=1 volgroup vg_hostname
--pesize=4096 pv.008002 logvol / --fstype=ext4 --name=lv_root --vgname=vg_hostname
--grow --size=1024 --maxsize=51200 logvol swap --name=lv_swap --vgname=vg_hostname
--grow --size=2016 --maxsize=4032
Comments in the kickstart file begin with a #
character.
The Unbreakable Enterprise Kernel supports the use of the
setting crashkernel=auto
for UEK release 3
quarterly update 1 and later.
PXE cannot bring up the network interface unless you include a line such as the following:
network --bootproto=dhcp --device=eth0 --onboot=on
You can include multiple repo
lines in the
file, For example, if you use an HTTP-based network installation
server, you might want to include both the
Server
and UEK2
repositories.
url --url http://192.168.1.100/OL6.4 repo --name="OL6.4 Server repo" --baseurl=http://192.168.1.100/OL6.4/Server repo --name="OL6.4 UEK R2 repo" --baseurl=http://192.168.1.100/OL6.4/UEK2
You can also include repo
lines that point to
the latest channels on the Oracle Linux yum server so that the system is
automatically up to date after the installation. For example:
repo --name="OL6.4 latest" \ --baseurl=https://yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/ repo --name="OL6.4 UEK R2 latest" \ --baseurl=https://yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/x86_64/
Do not use the \
line-continuation
character in a Kickstart file. This character is used in the
example to break long lines for printing.