DKMS builds the openvswitch module against each of the kernels that
you have on your system. You have linux-3.16 installed, but
openvswitch-datapath-dkms 2.1 doesn't support it. The alternative is
to use the openvswitch module that is distributed with the kernel (ie,
do not install the dkms package at all).

On 7 August 2015 at 10:32, Tandulwadkar, Sanket Ravindra (Sanket
Ravindra) <[email protected]> wrote:
> Hello Joe,
>
> Thank you!
>
> I am trying to install 2.1.3. When I try to install the Debain for kernel 
> module, I get this error
>
>
> sanket@sanket-ubuntu-ovs:~$ sudo dpkg -i 
> openvswitch-datapath-dkms_2.1.3-1_all.deb
> (Reading database ... 235774 files and directories currently installed.)
> Preparing to unpack openvswitch-datapath-dkms_2.1.3-1_all.deb ...
>
> ------------------------------
> Deleting module version: 2.1.3
> completely from the DKMS tree.
> ------------------------------
> Done.
> Unpacking openvswitch-datapath-dkms (2.1.3-1) over (2.1.3-1) ...
> Setting up openvswitch-datapath-dkms (2.1.3-1) ...
>
> Creating symlink /var/lib/dkms/openvswitch/2.1.3/source ->
>                  /usr/src/openvswitch-2.1.3
>
> DKMS: add completed.
>
> Kernel preparation unnecessary for this kernel.  Skipping...
>
> Building module:
> cleaning build area....(bad exit status: 2)
> ./configure --with-linux='/lib/modules/3.16.0-28-generic/build' && make -C 
> datapath/linux.....(bad exit status: 1)
> Error! Bad return status for module build on kernel: 3.16.0-28-generic 
> (x86_64)
> Consult /var/lib/dkms/openvswitch/2.1.3/build/make.log for more information.
>
> I know that the error is because the ./configure needs linux 3.11.x or 
> earlier. But it automatically looks for 3.16. How do I change this line so it 
> can take 3.11.x instead? I couldn’t locate it.
>
> Thank you.
>
> -----Original Message-----
> From: Joe Stringer [mailto:[email protected]]
> Sent: Friday, August 07, 2015 12:45 PM
> To: Tandulwadkar, Sanket Ravindra (Sanket Ravindra)
> Cc: [email protected]
> Subject: Re: [ovs-discuss] How to install OvS with a specific version 
> number(say 2.1.3)
>
> On 7 August 2015 at 07:55, Tandulwadkar, Sanket Ravindra (Sanket
> Ravindra) <[email protected]> wrote:
>> Hi,
>>
>>
>>
>> I want to install a slightly older version of OvS on my Ubuntu VM.
>> When I use
>>
>>
>>
>> apt-get install openvswitch-controller openvswitch-brcompat \
>>
>> openvswitch-switch openvswitch-datapath-source
>>
>>
>>
>> it installs 2.3.1
>>
>>
>>
>> How can I force it with a version number?
>
> Linux distros typically provide a single version of a package. If you want a 
> different version, you'll need to either obtain the packages from another 
> location or build your own.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to