I recently took delivery of 18 servers each of which required a basic operating system installed and not much else – except for a /oracle filesystem creating. I thought i’d share the kickstart file with you plus one or two other things I needed to do to get kickstart working properly.
- setup a webserver to serve the kickstart files. I used IIS: I created a folder to contain the kickstart files on my webserver (D:\kickstart) and create a virtual directory (within an existing site) which pointed at that directory. permissions on the folder and virtual directory were set to read only with no script access.
- create the kickstart file (server1.ks) as detailed at the end of this post and save it in d:\kickstart on my webserver
- make sure the webserver is started..
- boot my server with an install DVD in it (I used an IBM RSA/IMM and mounted an iso image which presented itself to my server as a cd/dvd-rom). Make sure the server boots from the DVD!
- At the boot: prompt type linux ip=172.24.1.3 gateway=172.24.1.1 dns=172.24.1.2 netmask=255.255.255.0 ksdevice=eth0 ks=http://your.serv.er/kickstart/server1.ks ksdevice=eth0 NB: your settings will reflect the network settings in your kickstart file!
- Sit back and wait.. and your server will build – though on occassion I would be asked to ‘okay’ the disk configuration. Ultimately the process took about 10-15 minutes for me. Joy. If your server can’t find the kickstart file make sure the web server is up and the ethernet port you connect to is eth0 – unfortunately connecting up the other ethernet ports in your server to your switch is the quickest way to determine eth0, especially if you have a load of ethernet ports in your server. Or you can set ksdevice= to eth1, eth2 etc if you are gifted with lots of ethernet interfaces and have the time for re-editing kickstart files and rebooting ad nauseum.
#BEGINNING OF FILE
#Step thru the phases of the installation automatically (without prompting you – though you may be asked to confirm disk partitioning…)
#Skip The installation code/key
# System authorization information
auth –useshadow –enablemd5
# System bootloader configuration
# Clear the Master Boot Record
# Partition clearing information
clearpart –all –initlabel
# Use graphical install
# Firewall configuration
# Run the Setup Agent on first boot
# System keyboard
# System language
# Installation logging level
# Use CDROM installation media
# Network information
# gateway is 172.24.1.1, server ip is 172.24.1.3, dns server is 172.24.1.2, netmask is 255.255.255.0, interface is active on boot and hostname is.. self explanatory..
network –bootproto=static –device=eth0 –gateway=172.24.1.1 –ip=172.24.1.3 –nameserver=172.24.1.2 –netmask=255.255.255.0 –onboot=on –hostname myserver.mydomain.com
network –device eth1 –onboot no –bootproto dhcp –hostname myserver.mydomain.com
# Reboot after installation
#Root password – Only set this if you know your password – use system-config-kickstart to create a root password and paste it below!
#rootpw –iscrypted $1$odxRDT6F$BHEEBLEPJJ43rvd3wKAQ4/
# SELinux configuration
# System timezone
# Install OS instead of upgrade
# X Window System configuration information
xconfig –defaultdesktop=GNOME –depth=32 –resolution=1024×768 –startxonboot
# Disk partitioning information
# Create a 100MB boot partition
part /boot –bytes-per-inode=4096 –fstype=”ext3″ –size=100
# Create a 32GB Swap Partition (My particular machine has a *lot* of memory)
part swap –bytes-per-inode=4096 –fstype=”swap” –size=34816
# Create a 10GB root ‘/’ partition
part / –bytes-per-inode=4096 –fstype=”ext3″ –size=10240
# LV creation
# Create the partition to house the Volume Group (NB: I have massively oversized the maxsize parameter for growth purposes! Beware!!)
# This saves having to specify the VG size if you’re going to use the kickstart file across servers with different hard disk sizes
part pv.17 –size=1 –maxsize=1000000000 –grow
# Create the volume group
volgroup oraclevg –pesize=32768 pv.17
# Create the LV within the volume group (percent parameter set at 100% so that the LV will use ALL available space on the device! Beware!)
# This saves having to specify the LV size if you’re going to use the kickstart file across servers with different hard disk sizes and
# want to use all of the remaining disk space for the LV.
logvol /oracle –fstype ext3 –name=oraclelv –vgname=oraclevg –percent=100
# Nothing sophisticted about the packages section. tailor to your needs..
#END OF FILE
Let me know how you get on. If you get on.