Appendix a: sample kickstart installation script, Table 1, Sample kickstart file – Dell PowerEdge C1100 User Manual
Page 9

Cloud Training in a Box: Inexpensive and Reproducible Training Environments for Cloud Solutions
9
Appendix A: Sample kickstart installation script
The kickstart file below illustrates some of the configuration tasks that were automated for easy
redeployment. Some other tasks that were specific to our environment and would be neither generally
applicable, nor generally needed, were removed. This is offered as an example only and would need
to be modified by a knowledgeable administrator before use in another environment.
Table 1. Sample kickstart file
############################################################
# Kickstart Deployment file for Cloud Training Lab Stations
############################################################
# General Installation Options #
install
url --url=http://10.10.10.1/cobbler/ks_mirror/RHEL6Server_64
vnc
xconfig --startxonboot
lang en_US.UTF-8
keyboard us
timezone --utc America/Chicago
network --bootproto static --ip $ip_address_eth0 --netmask 255.255.240.0 --gateway 10.10.10.254 \
--hostname $hostname --nameserver $name_servers
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
rootpw --iscrypted $1$MCuMJ0$yn5m0QKtVeBdZeQrKqnQx.
firewall --disabled
selinux --permissive
bootloader --location=mbr --driveorder=sdb --append="crashkernel=auto rhgb quiet"
clearpart --drives=sdb --initlabel
part /boot --fstype=ext4 --size=500
part pv.syspv --grow --size=1
volgroup sysvg --pesize=4096 pv.syspv
logvol / --fstype=ext4 --name=lv_root --vgname=sysvg --size=16440
logvol swap --name=lv_swap --vgname=sysvg --size=16436
firstboot --disabled
reboot
repo --name="Red Hat Enterprise Linux" --
baseurl=http://10.10.10.1/cobbler/ks_mirror/RHEL6Server_64/ --cost=100
repo --name="High Availability" --
baseurl=http://10.10.10.1/cobbler/ks_mirror/RHEL6Server_64/HighAvailability/ --cost=1000
repo --name="Resilient Storage" --
baseurl=http://10.10.10.1/cobbler/ks_mirror/RHEL6Server_64/ResilientStorage/ --cost=1000
repo --name="Scalable Filesystem Support" --
baseurl=http://10.10.10.1/cobbler/ks_mirror/RHEL6Server_64/ScalableFileSystem/ --cost=1000
key --skip
# Package Selection #
%packages
@base
@console-internet
@core
@debugging
@basic-desktop
@desktop-platform
@directory-client
@general-desktop
@hardware-monitoring
@ha
@ha-management
@java-platform
@large-systems
@network-file-system-client
@performance
@perl-runtime
@resilient-storage