# # Kickstart file for xvpappliance CentOS 5 x86_64 XenServer VM # # Copyright (C) 2010-2013, Colin Dean # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # This is just to install a minimal operating system, with sufficient # prerequisite packages, prior to installing xvp-specific packages. # # Note: using a %pre block to align partitions on 64KB boundaries to # avoid potential SAN/NAS block misalignment. For example, NetApp # requires 4K alignment but other storage systems can require up to 64K, # so be general/cautious. Subject to this, allocate approx 100MB for # /boot, remainder for LVM. # install url --url http://192.168.10.1/dvd/ text skipx lang en_US.UTF-8 network --device eth0 --bootproto static --ip 192.168.12.29 --netmask 255.255.255.0 --gateway 192.168.12.1 --nameserver 192.168.10.1 --hostname xvpappliance rootpw xvpappliance firewall --enabled --port=22:tcp,80:tcp,443:tcp,5900:tcp authconfig --enableshadow --enablemd5 selinux --enforcing timezone --utc Europe/London bootloader --location=mbr --driveorder=xvda --append="console=xvc0" clearpart --none part /boot --fstype ext3 --onpart=xvda1 --grow part pv.2 --onpart=xvda2 --grow volgroup VolGroup00 --pesize=32768 pv.2 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512 poweroff repo --name="CentOS-5 - Updates" --mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates repo --name="CentOS-5 - Extras" --mirrorlist=http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=extras %packages @admin-tools @base @core @editors @legacy-software-support @mail-server @network-server @system-tools @web-server keyutils fipscheck hardlink device-mapper-multipath php-mysql php-mcrypt php-pdo logrotate -sabayon -authconfig-gtk -system-config-lvm -system-config-soundcard -system-config-network -pirut -setroubleshoot -system-config-keyboard -system-config-users -system-config-language -system-config-date -system-config-kdump -system-config-rootpassword -nss_db -nss_ldap -pam_pkcs11 -krb5-workstation -ksh -mcelog -lftp -crash -stunnel -words -coolkey -numactl -mgetty -vconfig -dump -dosfstools -mdadm -rsync -finger -irqbalance -autofs -rdate -conman -symlinks -pcmciautils -pam_ccreds -mlocate -pam_smb -sos -mtools -pkinit-nss -dos2unix -firstboot-tui -iptstate -NetworkManager -tcpdump -rsh -setuptool -nfs-utils -pinfo -ipsec-tools -rp-pppoe -unix2dos -mtr -mkbootdisk -tree -pam_krb5 -irda-utils -pam_passwdqc -amtu -ypbind -jwhois -rdist -system-config-network-tui -nc -oddjob -smartmontools -ccid -telnet -bluez-utils -logwatch -usbutils -gnupg -talk -dovecot -spamassassin -zsh -vnc -zisofs-tools -hwbrowser -nmap -screen -xdelta -openldap-clients -net-snmp-libs -samba-client -bluez-hcidump -OpenIPMI -bluez-gnome -tux -mod_python -webalizer -php-ldap -squid -mod_perl -httpd-manual -ecryptfs-utils -trousers -microcode_ctl %pre dd if=/dev/zero of=/dev/xvda bs=512 count=1 parted -s /dev/xvda mklabel msdos parted -s /dev/xvda unit s mkpart primary ext3 128 204799 parted -s /dev/xvda unit s mkpart primary 204800 100% %end