
then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]]
then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
# Install RHEV-H
# find the rpm file names
RPMFILE=`ls /root/resources/rhev-hypervisor-*.noarch.rpm`
# calculate the number of RPMs for each tool
RPMNUM=`echo $RPMFILE | wc -w`
if [[ ${RPMNUM} -eq 0 ]]
then
echo "No rhev hypervisor RPM file!"
elif [[ ${RPMNUM} -gt 1 ]]
then
echo "More than one hypervisor RPM file!"
else
yum -y --nogpgcheck localinstall ${RPMFILE}
fi
# Generate files required for PXE boot
echo -e "-\nGenerating files required for PXE boot ...\n-"
cd /usr/share/rhev-hypervisor
# Set root passwd
passwd='$1$XpieUBDF$NTX/4tcT/A5P7iZ.voQl01'
# temporary resolution to issues (bnx2x panic dumps, cciss disks, etc.)
#/bin/mv rhev-hypervisor.iso rhev-hypervisor.iso.hold
#/bin/cp /root/resources/rhev-hypervisor-5.5-2.2.5cciss.el5_5rhev2_2.iso rhev-hypervisor.iso
livecd-iso-to-pxeboot /usr/share/rhev-hypervisor/rhev-hypervisor.iso
# Create cobbler distribution entry
echo -e "-\nCreating cobbler distribution entry ...\n-"
cobbler distro add --name=${RHEVH_PROFILE} --kernel=/usr/share/rhev-
hypervisor/tftpboot/vmlinuz0 --initrd=/usr/share/rhev-hypervisor/tftpboot/initrd0.img
--kopts="rootflags=loop root=/rhev-hypervisor.iso rootfstype=auto liveimg rhn_url=https://$
{SAT_IP}/ rhn_activationkey=2-RHELH"
# Create cobbler profile entry to use the distro
echo -e "-\nCreating cobbler profile entry ...\n-"
cobbler profile add --name=${RHEVH_PROFILE} --distro=${RHEVH_PROFILE}
--kopts="storage_init=/dev/cciss/c0d0 storage_vol=::::: BOOTIF=eth0 management_server=$
69 www.redhat.com
Comentários a estes Manuais