Skip to content

Instantly share code, notes, and snippets.

@gotnix
Created April 20, 2012 10:30
Show Gist options
  • Save gotnix/2427678 to your computer and use it in GitHub Desktop.
Save gotnix/2427678 to your computer and use it in GitHub Desktop.
KickStart script file for Web Server on Citrix XenServer VM.
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
#repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
key --skip
# Root password
rootpw --plaintext 525m,qwe
# System authorization information
auth --useshadow --passalgo=sha512
# Use text mode install
text
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
reboot --eject
# System timezone
timezone --isUtc Asia/Shanghai
# Network information
network --bootproto=static --device=eth0 --onboot=on --hostname=xenXY-xmXY --ip=172.16.16.254 --noipv6 --netmask=255.255.0.0 --gateway=172.16.0.254 --nameserver=202.96.209.133
# System bootloader configuration
bootloader --append="rhgb crashkernel=auto" --location=mbr --driveorder="sda"
# 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
# Partition clearing information
clearpart --all --initlabel
part /boot --fstype=ext2 --asprimary --size=200 --label=ROOT
part pv.01 --grow --size=200
volgroup VG0 --pesize=4096 pv.01
logvol /home --fstype=ext4 --name=lvHOME --vgname=VG0 --size=5120
logvol / --fstype=ext4 --name=lvROOT --vgname=VG0 --size=20000
logvol swap --name=lvSWAP --vgname=VG0 --size=2048
logvol /var --fstype=ext4 --name=lvVAR --vgname=VG0 --size=15000 --fsoptions=noatime
logvol /var/www --fstype=ext4 --name=lvWWW --vgname=VG0 --size=25000 --fsoptions=noatime
%pre
#Type your %per script below:
%end
%post
#Type your %post script below:
%end
%packages
@backup-client
@base
@chinese-support
@console-internet
@core
@fonts
@network-file-system-client
@network-tools
@performance
@perl-runtime
@scientific
@server-policy
@system-admin-tools
@system-management
@system-management-snmp
@web-server
OpenIPMI
PyPAM
arptables_jf
arpwatch
atlas
bacula-client
cpufrequtils
crypto-utils
dos2unix
dropwatch
expect
ipmitool
iptraf
iptstate
lftp
mutt
net-snmp-python
nmap
numpy
perl-DBD-SQLite
python-dmidecode
sgpio
tree
unix2dos
watchdog
x86info
yum-plugin-downloadonly
yum-plugin-fastestmirror
yum-plugin-verify
-abrt-addon-ccpp
-abrt-addon-kerneloops
-abrt-addon-python
-abrt-cli
-cifs-utils
-ibus-table-cangjie
-ibus-table-erbi
-ibus-table-wubi
-nano
-samba-client
-tcsh
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment