[ovs-discuss] How to build openvswitch_mod.ko for installing in Citrix XenServer 5.6 FP

Koichi Yagishita yagishita.koichi at jrc.co.jp
Fri Feb 4 14:57:14 UTC 2011


Dear Justin and Ramana,

I really appreciate your reply.

Let me make sure the information to build from Open vSwitch Git tree,
spcefied in the url below.

http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.XenServer;hb=HEAD
----------------------------------------------------------------------------------------------------------------
    If you are building from an Open vSwitch Git tree, then you will
need to first create a distribution tarball elsewhere,
    by running "./boot.sh; ./configure; make dist" in the Git tree,
    because the DDK VM does not include Autoconf or Automake that are
required to bootstrap the Open vSwitch distribution.
----------------------------------------------------------------------------------------------------------------

According to the above, I have built a Open vSwitch rpm package on DDK
from a tar ball generated on CentOS5.5.
And, as far as I remember, execution of ./boot.sh on DDK for building
the kernel module seems to fail.

Regards,
Yagishita

2011/2/4 Ramana Reddy <gtvrreddy at gmail.com>:
> For this you need DDK 5.6 and have to install this DDK as DomU on Xenserver
> 5.6.
> Once this is ready, you start DDK and follow the instructions given in
> INSTALL.XenServer
> document. Once you compile OpenVswitch on DDK, it generates two .rpm files.
> You have to copy openvswitch rpm fine and have to install on Xenserver5.6
> using rpm -U  openvswicth.rpm
> command.
>
2011/2/4 Justin Pettit <jpettit at nicira.com>:
> It looks like you probably built the kernel module on a Redhat system rather than the XenServer DDK.  (Don't forget, as Jesse previously pointed out to you, that you'll need to use the sources from git to build for XenServer 5.6 FP1.)
>
> --Justin
>
>
> On Fri, Feb 4, 2011 at 1:44 PM, Koichi Yagishita
> <yagishita.koichi at jrc.co.jp> wrote:
>>
>> Dear all,
>>
>> Could anyone teach me how to build kernel module (openvswitch_mod.ko) for
>> installing in Citrix XenServer 5.6 FP1?
>> Do I need to construct an environment for building the module in the
>> XenServer?
>> If yes, please teach me the way.
>>
>> The following is my mistake.
>>
>> [root at xenserver1 latest_OpenvSwitch-1.1.0pre2]# /sbin/modinfo
>> openvswitch_mod.ko
>> filename:       openvswitch_mod.ko
>> license:        GPL
>> description:    Open vSwitch switching datapath
>> srcversion:     79517F130D4E32BDF4F9FAD
>> depends:
>> vermagic:       2.6.18-194.32.1.el5 SMP mod_unload 686 REGPARM 4KSTACKS
>> gcc-4.1
>> [root at xenserver1 latest_OpenvSwitch-1.1.0pre2]# /sbin/modinfo
>> /lib/modules/`uname -r`/kernel/net/bridge/bridge.ko
>> filename:
>> /lib/modules/2.6.32.12-0.7.1.xs5.6.100.307.170586xen/kernel/net/bridge/bridge.ko
>> version:        2.3
>> license:        GPL
>> srcversion:     8B6007097C54BF8B78F25F0
>> depends:        stp,llc
>> vermagic:       2.6.32.12-0.7.1.xs5.6.100.307.170586xen SMP mod_unload
>> modversions Xen 686
>> parm:           fdb_garp_lock_time:Time to lock a FDB entry after a
>> gratuitous ARP, in seconds (int)
>> [root at xenserver1 latest_OpenvSwitch-1.1.0pre2]#
>>
>>
>> Regards,
>> Yagishita
>>
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org
>
>




More information about the discuss mailing list