2.7

Table Of Contents
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
Sample Kickstart file
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
Chapter 4 Building DBVMs and Base DB Templates
VMware, Inc. 61