[Ovirt-devel] How I installed ovirt on fc 12

Arthur CLEMENT aclement at linagora.com
Mon Feb 1 09:22:29 UTC 2010


Hello,

There has been some changes since my first ovirt installation feedback.
 - ipa-server has been patched (1.2.2-3.fc12)
 - Cobbler does not work out of the box.
 - ovirt-node-image-pxe does not boot (problem with dracut)

Cobbler problem :

The default tpftp config does not work, the problem might be there :

ovirt/server/installer/modules/ovirt/files/cobbler-import (l 47)

cobbler distro add --name="oVirt-Node-$node_arch" --arch=$node_arch \
    --initrd=$node_dir/tftpboot/initrd0.img --kernel=$node_dir/tftpboot/vmlinuz0 \
    --kopts="rootflags=loop root=/ovirt-node-image.iso rootfstype=iso9660 ro console=tty0 console=ttyS0,115200n8"

I think this is the line that adds the ovirt-node pxe config of /var/lib/tftpboot/pxelinux.cfg/default.

To have my node booting, I am using this config in /var/lib/tftpboot/pxelinux.cfg/default :

LABEL oVirt-Node-x86_64
        kernel /images/oVirt-Node-x86_64/vmlinuz0
        MENU LABEL oVirt-Node-x86_64
        append initrd=/images/oVirt-Node-x86_64/initrd0.img ksdevice=bootif lang=  ro rootflags=loop text selinux=0 rootfstype=iso9660 root=live:/ovirt-node-image.iso kssendmac  ks=http://10.75.196.100/cblr/svc/op/ks/profile/oVirt-Node-
x86_64 rd_NO_PLYMOUTH rd_NO_LVM rd_NO_LUKS
        ipappend 2



And I don't understand why there are these lines with MAC in ovirt/server/installer/modules/ovirt/files/cobbler-import

cobbler profile add --name=oVirt-Node-$node_arch --distro=oVirt-Node-$node_arch
cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$node_arch \
    --name=node3 --mac=00:16:3e:12:34:57
cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$node_arch \
    --name=node4 --mac=00:16:3e:12:34:58 --kopts="ovirt_init=scsi ovirt_local_boot"
cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$node_arch \
    --name=node5 --mac=00:16:3e:12:34:59 --kopts="ovirt_init=scsi"



But that's not all. The pxe node image does not boot, there is a bug in dracut : https://bugzilla.redhat.com/show_bug.cgi?id=548283
So I rebuild the pxe image with the patched dracut (on a fc13), and this pxe node image is working on my ovirt server (fc12)

I draw your attention to this tftp option : root=live:/ovirt-node-image.iso
"live:/" is mandatory for dracut, otherwise it can not mount /

I still have problems, I have to disable plymouth and usb (in the server bios) to make the node booting but it's not critical.

Regards ,


A.

On Mardi 19 Janvier 2010 09:56:29 you wrote:
> Hi,
> 
> I installed ovirt on fedora 12 (64 bits) successfully but I had to make
> some changes to make it work.
> 
> 1. Installation from rpms builded from the lastest git version
> 
> 2. Patch ace : missing backslashes in sed commands
> 
> vim /usr/share/ace/modules/ovirt/manifests/freeipa.pp
> 
> line 33 : '/\\[kdcdefaults\\]/a \\ kdc_ports = 88'
>         single_exec {"set_kdc_defaults":
>                 command => "/bin/sed -i '/\\[kdcdefaults\\]/a \\ kdc_ports
> = 88' /usr/share/ipa/kdc.conf.template", require => Package[ipa-server]
>         }
> 
> Line 44 : <Proxy \\*>
> 
>         file_replacement{"ipa_proxy_config_1":
>                file => "/etc/httpd/conf.d/ipa.conf",
>                pattern => "^<Proxy \\*>",
>                replacement => "<ProxyMatch ^.*/ipa/ui.*$>",
>                require => Single_exec[replace_line_returns]
>        }
> 
> 3. Patch ipa-server
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=544927
> https://www.redhat.com/archives/freeipa-devel/2010-January/msg00054.html
> 
> I had to install ipa-server before running ace to patch
> /usr/lib/python2.6/site-packages/ipaserver/funcs.py.
> 
> yum install ipa-server
> 
> diff -u /usr/lib/python2.6/site-packages/ipaserver/funcs.py.orig
> /usr/lib/python2.6/site-packages/ipaserver/funcs.py ---
> /usr/lib/python2.6/site-packages/ipaserver/funcs.py.orig 2010-01-15
> 15:57:56.000000000 -0500 +++
> /usr/lib/python2.6/site-packages/ipaserver/funcs.py 2010-01-15
> 16:00:40.000000000 -0500 @@ -332,7 +332,7 @@
> 
> schema_entry = self.__get_base_entry("", "objectclass=*",
> ['dn','subschemasubentry'], opts) schema_cn =
> schema_entry.get('subschemasubentry')
> - schema = self.__get_base_entry(schema_cn, "objectclass=*", ['*'], opts)
> + schema = self.__get_base_entry(schema_cn, "objectclass=*", ['*',
> 'objectclasses','attributetypes','matchingrules'], opts)
> 
> return schema
> 
> 
> Ruby from fedora packages causes some compatibility troubles :
> /usr/bin/rake db:migrate (modules/ovirt/manifests/ovirt.pp) crash and a
> lot of compatibility errors raise when mongrel and other ruby dependances
> try to start.
> 
> 
> 4. Change ruby environment to 2.3.4
> 
> vim /usr/share/ovirt-server/config/environment.rb
> 
> Line 23
> RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
> 
> 
> 
> 5. Patch ruby initializers
> 
> http://webtips-seja.blogspot.com/2009/10/undefined-method-quoteident-for.ht
> ml
> 
> vim /usr/share/ovirt-server/config/initializers/new_rails_defaults.rb
> 
> Add :
> 
> def PGconn.quote_ident(name)
> %("#{name}")
> end
> 
> 
> 
> 6. Adapt ruby gems
> 
> 
> You must have :
> 
> 
> *** LOCAL GEMS ***
> 
> actionmailer (2.3.4)
> actionpack (2.3.4)
> activeldap (1.2.0)
> activerecord (2.3.4)
> activeresource (2.3.4)
> activesupport (2.3.4)
> cgi_multipart_eof_fix (2.5.0)
> cobbler (1.6.1)
> columnize (0.3.1)
> daemons (1.0.10)
> fastthread (1.0.7)
> flexmock (0.8.6)
> gem_plugin (0.2.3)
> gettext (2.0.4)
> gettext_activerecord (2.0.4)
> gettext_rails (2.0.4)
> highline (1.5.1)
> hoe (2.3.3)
> krb5-auth (0.7)
> linecache (0.43)
> locale (2.0.4)
> locale_rails (2.0.4)
> mongrel (1.1.5)
> postgres (0.7.9.2008.01.28)
> rack (1.0.1)
> rails (2.3.4)
> rake (0.8.7)
> ruby-debug (0.10.3)
> ruby-debug-base (0.10.3)
> rubyforge (1.0.5)
> 
> 
> gem uninstall rack -v 1.0.0
> gem install columnize -v 0.3.1
> gem install gettext gettext_activerecord gettext_rails -v 2.0.4
> gem install rubydebug -v 0.10.3
> gem install ruby-debug -v 0.10.3
> gem install locale locale_rails -v 2.0.4
> gem uninstall actionmailer actionpack activerecord activeresource
> activesupport -v 2.3.5 gem uninstall locale locale_rails -v 2.0.5
> gem uninstall gettext -v 2.1.0
> gem uninstall gettext gettext_activerecord gettext_rails -v 2.1.0
> gem uninstall locale locale_rails -v 2.0.5
> 
> 
> 7. Launch ovirt-installer
> 
> ovirt-installer
> ace -d -l logfile install ovirt
> 
> 
> 8. Fix bug in /etc/httpd/aliases
> 
> libnssckbi.so -> ../../../lib64/libnssckbi.so
> to
> libnssckbi.so -> ../../../usr/lib64/libnssckbi.so
> 
> 
> I had some troubles to make the proxy and ssl working but the problem
> solved itself after a while...
> 
> For more information, me (arthurc) and my colleague (pierre-gilles) are
> available on #ovirt at freenode.




More information about the ovirt-devel mailing list