[ovs-discuss] How to install OvS with a specific version number(say 2.1.3)

Tandulwadkar, Sanket Ravindra (Sanket Ravindra) standulwadka at avaya.com
Fri Aug 7 17:32:11 UTC 2015

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 at 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.
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 ->

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:joestringer at nicira.com] 
Sent: Friday, August 07, 2015 12:45 PM
To: Tandulwadkar, Sanket Ravindra (Sanket Ravindra)
Cc: bugs at openvswitch.org
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) <standulwadka at avaya.com> 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.

More information about the discuss mailing list