
#Get configuration files
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/sesame.conf -O /etc/sesame/sesame.conf
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/condor_config.local.mrgexec -O
/var/lib/condor/condor_config.local
/usr/bin/yum -y update
chkconfig condor on
chkconfig qpidd on
condor_status -any
chkconfig sesame on
chkconfig ntpd on
) >> /root/ks-post.log 2>&1
The kickstart installs a simple RHEL VM including the software and configuration as a MRG
Grid Execute node. The following example creates the node, creates a template from it,
instantiates several nodes from the template, and executes a MRG Grid job that searches for
perfect numbers.
1. Following the procedure outlined in Section 8 above, create a VM using the
rhel55_mrg_exec:3:tenant profile. Specify 1 CPU, 1 GB of memory, and 5 GB for a
local disk size.
2. After the VM installation completes, log in and make the following customizations.
a) Setup the host to register with RHN Satellite on the next boot
• Determine the command that was used to register this VM
grep rhnreg /root/cobbler.ks
rhnreg_ks --serverUrl=https://sat-
vm.cloud.lab.eng.bos.redhat.com/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=3-d18b20de1c22dcdcbe845577b068ed76,3-
tenantMRGGridExec
• Save a copy of rc.local
cp /etc/rc.d/rc.local /etc/rc.d/rc.localpre
• Add commands to rc.local to register the system with satellite using the '--force '
option and move the copy back into place.
echo “rhnreg_ks--force \
--serverUrl= https://sat-vm.cloud.lab.eng.bos.redhat.com/XMLRPC\
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT \
--activationkey=3-d18b20de1c22dcdcbe845577b068ed76, \
3-tenantMRGGridExec” >> /etc/rc.d/rc.local
echo “mv /etc/rc.d/rc.local.pre /etc/rc.d/rc.local” >> \
/etc/rc.d/rc.local
b) Remove the line that defines the hostname in /etc/sysconfig/network
cp /etc/sysconfig/network /tmp
grep -v “HOSTNAME=” /tmp/network > /etc/sysconfig/network
www.redhat.com 142
Kommentare zu diesen Handbüchern