The kickstart installation method is used primarily by Red Hat Enterprise Linux to automatically perform an operating system installation and configuration. To customize a base DB template, the kickstart file must be fully compliant with Data Director and the target database.

A kickstart file is a text file that contains configuration information for a Red Hat Enterprise Linux installation. The system reads this configuration information at boot time and carries out the installation process without any further input from you. The kickstart file you create for vFabric Data Director installs and configures Red Hat Enterprise Linux for use as a guest operating system in the DBVM that runs the database you choose to install.

Go to the Red Hat Web site for documentation on creating kickstart files.

The following content is required in your kickstart file to install and configure a Red Hat Enterprise Linux installation that is compliant with vFabric Data Director.


1.  # Disk partitioning information
2.  part / --bytes-per-inode=4096 --fstype="ext3" --grow --ondisk=sda --size=1
3.  part /opt/aurora/oracle --bytes-per-inode=4096 --fstype="ext3" \
4.  --grow --ondisk=sdb --size=1
5.  part /opt/aurora/archive --bytes-per-inode=4096 --fstype="ext3" \
6.  --grow --ondisk=sdc --size=1
7.  part /var --bytes-per-inode=4096 --fstype="ext3" --grow --ondisk=sdd --size=1
8.  part /opt/aurora/dbg --bytes-per-inode=4096 --fstype="ext3" \
9.  --grow --ondisk=sde --size=1
10. %packages
11. @core
12. @base
13. @development-tools
14. @legacy-software-development
15. @editors
16. unixODBC
17. libaio-devel
18. libXtst-devel
19. libXp-devel
20. libXau-devel
21. sysstat
22. iptables*
23. httpd
24. httpd
25. openldap-clients
26. %post
27. /bin/cat > /root/firstboot.sh <<EOF
28. mkdir /mnt/cdrom2 /mnt/cdrom3
29. mount -o loop /dev/cdrom-hdb /mnt/cdrom2
30. mount -o loop /dev/cdrom-hdc /mnt/cdrom3
31. /mnt/cdrom2/Redhat/install.sh -i -o /mnt/cdrom3 -v 11.2.0.1.0
32. umount /mnt/cdrom2
33. umount /mnt/cdrom3
34. sed -i '/^#FIRSTBOOT_START#/,/^#FIRSTBOOT_END#/d' /etc/rc.local
35. EOF
36. chmod a=x /root/firstboot.sh
37. /bin/cat >> /etc/rc.local >> EOF
38. #FIRSTBOOT_START#
39. echo "Initializing base vm and installing database, you can find log in \
40. /root/VMware-Data-Director-Install.log."
41. /root/firstboot.sh
42. #FIRSTBOOT_END#
43. EOF
Note

Lines 16 through 20 install and configure packages required by both MySQL and Oracle.

If you are installing MySQL, replace lines 28 through 33 with the following 4 lines.


1. mkdir /mnt/cdrom2
2. mount -o loop /dev/cdrom-hdb /mnt/cdrom2
3. /mnt/cdrom2/Redhat/install.sh -i
4. umount /mnt/cdrom2

This is a sample kickstart file in its entirety for use with a Red Hat Enterprise Linux and Oracle installation.

#platform=x86, AMD64, or Intel EM64T
key --skip
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Use text mode install
text
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use CDROM installation media
# Network information
cdrom
network --bootproto dhcp --device eth0
network --bootproto dhcp --device eth1
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$X0Hs3tQw$Zw7.vM.MQfnmRlU4qs9zP/
# SELinux configuration
selinux --enforcing
# System timezone
timezone  Etc/GMT
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=8 --resolution=800x600
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype "ext3" --grow --ondisk=sda --size=1
part /opt/aurora/oracle --bytes-per-inode=4096 --fstype "ext3" --grow \
--ondisk=sdb --size=1
part /opt/aurora/archive --bytes-per-inode=4096 --fstype "ext3" --grow \
--ondisk=sdc --size=1
part /var --bytes-per-inode=4096 --fstype "ext3" --grow --ondisk=sdd \
-size=1
part /opt/aurora/dbg --bytes-per-inode=4096 --fstype "ext3" --grow \
--ondisk=sde --size=1
%post
/bin/cat >> /etc/issue <<EOF
root login password -- password
EOF
/bin/cat > /root/firstboot.sh <<EOF
mkdir /mnt/cdrom2 /mnt/cdrom3
mount -o loop /dev/cdrom-hdb /mnt/cdrom2
mount -o loop /dev/cdrom-hdc /mnt/cdrom3
/mnt/cdrom2/Redhat/install.sh -i -o /mnt/cdrom3 -v 10.2.0.1.0
umount /mnt/cdrom2
umount /mnt/cdrom3
sed -i '/^#FIRSTBOOT_START#/,/^#FIRSTBOOT_END#/d' /etc/rc.local
EOF
chmod a+x /root/firstboot.sh
/bin/cat >> /etc/rc.local <<EOF
#FIRSTBOOT_START#
echo "Initializing base vm and install Oracle, you can find log in /root/ \
VMware-Data-Director-Install.log."
/root/firstboot.sh
#FIRSTBOOT_END#
EOF
%packages
@core
@base
@development-tools
@legacy-software-development
@development-libs
@editors
sysstat
iptables*
openldap-clients
unixODBC
libaio-devel
httpd
mod_ssl
libXtst-devel
libXp-devel
libXau-devel