Monday, May 16, 2011

OEL/RHEL/CentOS with Kickstart

Stick the kickstart file into a USB thumb drive, stick the OEL 5.6 DVD in and at the boot prompt, type the following.
linux install ks=hd:sdc1:/anaconda-ks.cfg

# Kickstart file automatically generated by anaconda.

install
cdrom
lang en_US.UTF-8
keyboard uk
xconfig --startxonboot
network --device eth0 --bootproto static --ip ww.xx.yy.zz --netmask 255.255.255.0 --gateway ww.xx.yy.1 --nameserver ww.xx.qq.100,ww.xx.qq.200 --hostname server-hostname
network --device eth1 --onboot no --bootproto dhcp --hostname server-hostname
network --device eth2 --onboot no --bootproto dhcp --hostname server-hostname
network --device eth3 --onboot no --bootproto dhcp --hostname server-hostname
rootpw --iscrypted $1$sh0s0soK$WjLkNUPP9YN2oosj4LRDQ0
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Europe/London
bootloader --location=mbr --driveorder=sda,sdb --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux --drives=sda,sdb
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.3 --size=0 --grow --ondisk=sda
part pv.8 --size=100 --grow --ondisk=sdb
volgroup VolGroup00 --pesize=32768 pv.3
volgroup StageVG --pesize=32768 pv.8
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1000 --grow --maxsize=34176
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol /opt/stage --fstype ext3 --name=StageLV --vgname=StageVG --size=139360

%packages
@admin-tools
@base
@core
@development-libs
@development-tools
@dialup
@editors
@ftp-server
@gnome-desktop
@graphical-internet
@legacy-network-server
@legacy-software-development
@legacy-software-support
@network-server
@office
@printing
@server-cfg
@system-tools
@smb-server
@x-software-development
@base-x
system-config-kickstart
kexec-tools
iscsi-initiator-utils
fipscheck
squashfs-tools
device-mapper-multipath
sgpio
perl-Convert-ASN1
imake
emacs
gftp
telnet-server
tftp-server
gtk+
compat-db
openmotif22
vnc-server
dnsmasq
system-config-boot
ocfs2-2.6.18-238.el5
rdesktop
ocfs2console
tsclient
e4fsprogs
lslk
createrepo
nmap-frontend
oracle-validated
audit
net-snmp-utils
mc
ocfs2-tools
sysstat
mesa-libGLU-devel
xorg-x11-utils
xorg-x11-server-Xnest
-diffstat
-splint
-texinfo
-automake15
-subversion
-gcc-gfortran
-rcs
-automake16
-automake17
-automake14
-ctags
-dogtail
-swig
-dev86
-doxygen
-cvs
-cscope
-rwho
-rusers
-zisofs-tools
-xdelta
-OpenIPMI-tools
-bluez-hcidump
-zsh