
--_000_22f073c8f28e423a8959bb2687b19cb9DM2PR05MB320namprd05pro_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have been working since Monday to get a Centos 6.5 host node added to ovi= rt. Since 6.5 is just out, I figured I might as well use the latest and gr= eatest 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 h= ost is part of the default cluster. My next task will be bringing up glust= er on that same node. 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. No, I do not have a similar script for the engine. I got that running unde= r Centos 6.4 in a VM, without too much problem. That VM is temporarily run= ning on a KVM host (but that host is not under ovirt). Feel welcome to stare at or run my script and make any comments or observat= ions. * The script is run after a clean install of Centos 6.5 from the "minim= al" ISO. * I will try to remember what each element was there for, if anything i= s not clear. * There are probably a few (not many) things there that are not needed * Mostly they result in doing something ahead of time that ovirt was= going to do later anyway. * Feel free to point out a better way to do whatever needs to be done. * Bits and pieces of the script were stolen from googleing here and the= re. * Parts of the script were cooked up by stewing logs over low heat unti= l something useful bubbled to the top. * The number of clean reinstalls to test the script is beyond count. * I almost broke down and learned how to write a kickstart file (but= didn't). * No guarantees or representations. * So far this script has been tested on exactly one set of bare-meta= l hardware * That hardware is not server-grade. (ovirt keeps complaining bec= ause I have not configured Power Management :) * There are a few things that are personal preferences (things I instal= l on all my Linux machines) * I believe those preferences are clearly marked. * I am leaving them in because they may (incidentally) be installing= some dependencies that influence the outcome of the process. I hope to see a day when a similar script is either not needed, or is avail= able and maintained as part of the Centos distro, or as part of ovirt. Mea= nwhile we try to muddle through. 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 Microsof= t thinks this OWA interface doesn't ever need to let me specify text as "pr= eformat". I called my script ov_host-start.sh # script to prepare Centos 6.5 for ovirt host install process echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ted's personal p= references--early =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D" yum -y install nano deltarpm yum-plugin-priorities yum-presto mlocate echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D end of Ted'= s personal preferences--early =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D" yum -y upgrade echo "....................install some repos (if not already done).........= ........." cd /etc/yum.repos.d if [ ! -f glusterfs-epel.repo ] ; then echo "..............installing gluster repo......................." yum -y install wget wget http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/g= lusterfs-epel.repo echo "..............done installing gluster repo.................." fi if [ ! -f el6-ovirt.repo ] ; then echo "..............installing ovirt repo......................." yum -y localinstall http://ovirt.org/releases/ovirt-release-el.noarch.rpm echo "..............done installing ovirt repo.................." fi if [ ! -f epel.repo ] ; then echo "..............installing epel repo......................." yum -y localinstall http://mirror.us.leaseweb.net/epel/6/i386/epel-releas= e-6-8.noarch.rpm echo "..............done installing epel repo.................." fi echo "........install libvirt............................" yum -y install libvirt qemu-kvm tuned echo "........install virt-manager" # with unlisted dependencies yum -y install virt-manager xorg-x11-xauth dejavu-lgc-sans-mono-fonts # create the ovirtmgmt bridge if [ ! -f /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt ]; then echo "........................creating ovirtmgmt bridge.................= ....." service libvirtd start service libvirtd status virsh net-destroy default virsh net-undefine default virsh iface-bridge eth0 ovirtmgmt service network restart service libvirtd stop service libvirtd status fi echo ".........copy tuned profile..............." # copy virtual-host --> rhs-virtualization so ovirt is happy cp -r /etc/tune-profiles/virtual-host /etc/tune-profiles/rhs-virtualization yum -y install vdsm echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ted's personal p= references--late =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" #add lines to send messages to TTY12 cat /etc/rsyslog.conf | grep tty12 if [ ! $? -eq 0 ] ; then echo ".......................Adding for tty12...................." echo " " >> /etc/rsyslog.conf echo "# Log everything to tty12" >> /etc/rsyslog.conf echo "*.* /dev/tty12" >> /etc/rsyslog.conf service rsyslog restart fi echo "...........install gkrellm.............." yum -y install gkrellm #add poll=3D0 to kill noveau messages cat /boot/grub/grub.conf | grep poll=3D0 if [ ! $? -eq 0 ] ; then echo "............................Adding poll=3D0.......................= ..." sed -i '/^[ \t]kernel*/ s/$/ drm-kms-helper.poll=3D0/g' /boot/grub/grub.= conf fi --_000_22f073c8f28e423a8959bb2687b19cb9DM2PR05MB320namprd05pro_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body id=3D"" tabindex=3D"0" dir=3D"ltr"> <div name=3D"divtagdefaultwrapper" id=3D"divtagdefaultwrapper" style=3D"fon= t-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #0000= 00; margin: 0"> I have been working since Monday to get a Centos 6.5 host node added to ovi= rt. Since 6.5 is just out, I figured I might as well use the latest a= nd greatest to build my host. Today I succeeded (I think). I ha= ve not actually added a VM to the host, but at least ovirt is willing to accept that the host is part of the default clus= ter. 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 tempo= rarily 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 observat= ions.<br> <ul style=3D"font-family: serif; font-size: 12pt; margin-top: 0px; margin-b= ottom: 0px;"> <li>The script is run after a clean install of Centos 6.5 from the "mi= nimal" ISO.<br> </li><li>I will try to remember what each element was there for, if anythin= g is not clear.</li><li>There are probably a few (not many) things there th= at are not needed <ul> <li>Mostly they result in doing something ahead of time that ovirt was goin= g to do later anyway.<br> </li></ul> </li><li>Feel free to point out a better way to do whatever needs to be don= e.</li><li>Bits and pieces of the script were stolen from googleing here an= d there.</li><li>Parts of the script were cooked up by stewing logs over lo= w heat until something useful bubbled to the top.</li><li>The number of cle= an 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-me= tal hardware <ul> <li>That hardware is not server-grade. (ovirt keeps complaining because I h= ave not configured Power Management :)</li></ul> </li></ul> </li><li>There are a few things that are personal preferences (things I ins= tall on all my Linux machines) <ul> <li>I believe those preferences are clearly marked.</li><li>I am leaving th= em 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 avail= able 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 Mic= rosoft 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=3D"'Courier New',monospace"># script to prepare Centos 6.5 for o= virt host install process<br> <br> echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ted's = personal preferences--early =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D"<br> <br> yum -y install nano deltarpm yum-plugin-priorities yum-presto mlocate<br> <br> echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D end of= Ted's personal preferences--early =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D"<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.r= epo/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.noarc= h.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-r= elease-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 "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ted's = personal preferences--late =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"<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 "*.* &nb= sp; &n= bsp; /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=3D0 to kill noveau messages<br> cat /boot/grub/grub.conf | grep poll=3D0<br> if [ ! $? -eq 0 ] ; then<br> echo "............................Adding poll=3D0........= .................."<br> sed -i '/^[ \t]kernel*/ s/$/ drm-kms-helper.poll=3D0/g' /boot/= grub/grub.conf<br> fi<br> </font><br> </div> </body> </html> --_000_22f073c8f28e423a8959bb2687b19cb9DM2PR05MB320namprd05pro_--