<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body id="" tabindex="0" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
I have been working since Monday to get a Centos 6.5 host node added to ovirt. Since 6.5 is just out, I figured I might as well use the latest and greatest to build my host. Today I succeeded (I think). I have not actually added a VM to the host, but at
least ovirt is willing to accept that the host is part of the default cluster. My next task will be bringing up gluster on that same node.<br>
<br>
Since I will be doing at least three more hosts, I wrote a shell script to do a the setup that is needed to make the ovirt process succeed.<br>
<br>
No, I do not have a similar script for the engine. I got that running under Centos 6.4 in a VM, without too much problem. That VM is temporarily running on a KVM host (but that host is not under ovirt).<br>
<br>
Feel welcome to stare at or run my script and make any comments or observations.<br>
<ul style="font-family: serif; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<li>The script is run after a clean install of Centos 6.5 from the "minimal" ISO.<br>
</li><li>I will try to remember what each element was there for, if anything is not clear.</li><li>There are probably a few (not many) things there that are not needed
<ul>
<li>Mostly they result in doing something ahead of time that ovirt was going to do later anyway.<br>
</li></ul>
</li><li>Feel free to point out a better way to do whatever needs to be done.</li><li>Bits and pieces of the script were stolen from googleing here and there.</li><li>Parts of the script were cooked up by stewing logs over low heat until something useful bubbled to the top.</li><li>The number of clean reinstalls to test the script is beyond count.
<ul>
<li>I almost broke down and learned how to write a kickstart file (but didn't).<br>
</li></ul>
</li><li>No guarantees or representations.
<ul>
<li>So far this script has been tested on <b>exactly one</b> set of bare-metal hardware
<ul>
<li>That hardware is not server-grade. (ovirt keeps complaining because I have not configured Power Management :)</li></ul>
</li></ul>
</li><li>There are a few things that are personal preferences (things I install on all my Linux machines)
<ul>
<li>I believe those preferences are clearly marked.</li><li>I am leaving them in because they may (incidentally) be installing some dependencies that influence the outcome of the process.<br>
</li></ul>
</li></ul>
<br>
I hope to see a day when a similar script is either not needed, or is available and maintained as part of the Centos distro, or as part of ovirt. Meanwhile we try to muddle through.<br>
<br>
I will copy my script into this webmail interface (OWA) (since I am writing at home and this is all I have to work with) and see how bad it mangles it. You'll probably need a wide window so that lines don't wrap, as Microsoft thinks this OWA interface doesn't
ever need to let me specify text as "preformat". I called my script ov_host-start.sh<br>
<br>
<br>
<font face="'Courier New',monospace"># script to prepare Centos 6.5 for ovirt host install process<br>
<br>
echo "================= Ted's personal preferences--early ========================"<br>
<br>
yum -y install nano deltarpm yum-plugin-priorities yum-presto mlocate<br>
<br>
echo "=================== end of Ted's personal preferences--early ================"<br>
<br>
yum -y upgrade<br>
<br>
echo "....................install some repos (if not already done).................."<br>
cd /etc/yum.repos.d<br>
if [ ! -f glusterfs-epel.repo ] ; then<br>
echo "..............installing gluster repo......................."<br>
yum -y install wget<br>
wget http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/glusterfs-epel.repo<br>
echo "..............done installing gluster repo.................."<br>
fi<br>
<br>
if [ ! -f el6-ovirt.repo ] ; then<br>
echo "..............installing ovirt repo......................."<br>
yum -y localinstall http://ovirt.org/releases/ovirt-release-el.noarch.rpm<br>
echo "..............done installing ovirt repo.................."<br>
fi<br>
<br>
if [ ! -f epel.repo ] ; then<br>
echo "..............installing epel repo......................."<br>
yum -y localinstall http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-8.noarch.rpm<br>
echo "..............done installing epel repo.................."<br>
fi<br>
<br>
<br>
echo "........install libvirt............................"<br>
yum -y install libvirt qemu-kvm tuned<br>
echo "........install virt-manager" # with unlisted dependencies<br>
yum -y install virt-manager xorg-x11-xauth dejavu-lgc-sans-mono-fonts<br>
<br>
# create the ovirtmgmt bridge<br>
if [ ! -f /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt ]; then<br>
echo "........................creating ovirtmgmt bridge......................"<br>
service libvirtd start<br>
service libvirtd status<br>
virsh net-destroy default<br>
virsh net-undefine default<br>
virsh iface-bridge eth0 ovirtmgmt<br>
service network restart<br>
service libvirtd stop<br>
service libvirtd status<br>
fi<br>
<br>
echo ".........copy tuned profile..............."<br>
# copy virtual-host --> rhs-virtualization so ovirt is happy<br>
cp -r /etc/tune-profiles/virtual-host /etc/tune-profiles/rhs-virtualization<br>
<br>
yum -y install vdsm<br>
<br>
echo "================= Ted's personal preferences--late ================================="<br>
<br>
#add lines to send messages to TTY12<br>
cat /etc/rsyslog.conf | grep tty12<br>
if [ ! $? -eq 0 ] ; then<br>
echo ".......................Adding for tty12...................."<br>
echo " " >> /etc/rsyslog.conf<br>
echo "# Log everything to tty12" >> /etc/rsyslog.conf<br>
echo "*.* /dev/tty12" >> /etc/rsyslog.conf<br>
service rsyslog restart<br>
fi<br>
<br>
echo "...........install gkrellm.............."<br>
yum -y install gkrellm<br>
<br>
#add poll=0 to kill noveau messages<br>
cat /boot/grub/grub.conf | grep poll=0<br>
if [ ! $? -eq 0 ] ; then<br>
echo "............................Adding poll=0.........................."<br>
sed -i '/^[ \t]kernel*/ s/$/ drm-kms-helper.poll=0/g' /boot/grub/grub.conf<br>
fi<br>
</font><br>
</div>
</body>
</html>