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

Koichi Yagishita yagishita.koichi at jrc.co.jp
Mon Feb 7 02:59:19 UTC 2011


I have installed Autoconf 2.68, Automake 1.11.1, and Python 2.7.1 in my DDK VM.

Regards,
Yagishita

2011/2/7 Koichi Yagishita <yagishita.koichi at jrc.co.jp>:
> Dear Justin,
>
> Thank you very much for your explanation.
>
> I have already built two rpms (openvswitch-1.1.0pre2-1.i386.rpm and
> openvswitch-debuginfo-1.1.0pre2-1.i386.rpm) in
> /usr/src/redhat/RPMS/i386 on DDK VM according to INSTALL.XenServer,
> but I don't understand how to build openvswitch kernel module
> (openvswitch_mod.ko) required to operate OpenFlow. Building of this
> module failed due to lack of builiding environments in DDK VM as
> already mentioned.
> Could you please teach me how to solve this matter?
>
> Regards,
> Yagishita
>
> 2011/2/5 Justin Pettit <jpettit at nicira.com>:
>> Yes, but the following sentence states:
>>
>>        Once you have a distribution tarball, copy it into /usr/src/redhat/SOURCES inside the VM.
>>
>> The "make dist" command will create a file called "openvswitch-1.1.0pre2.tar.gz" in the source root directory, which is the distribution tarball being referred to above.  You copy that file to your DDK and then continue to follow the instructions to actually build it.
>>
>> --Justin
>>
>>
>> On Feb 4, 2011, at 6:57 AM, Koichi Yagishita wrote:
>>
>>> 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