Installing OpenVSwitch 2.3.1 LTS on CentOS 6

yum install kernel-headers kernel-devel gcc make python-devel openssl-devel kernel-devel, graphviz kernel-debug-devel automake rpm-build redhat-rpm-config libtool git

cd /root/


tar xvf autoconf-2.64.tar.gz

cd autoconf-2.64/



make install


cd /root/

wget -O /root/openvswitch-2.3.1.tar.gz


mkdir /root/rpmbuild/SOURCES

cp /root/openvswitch-2.3.1.tar.gz /root/rpmbuild/SOURCES/

rpmbuild -bb rhel/openvswitch.spec
rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec

rpm -ivh /root/rpmbuild/RPMS/*.rpm


You can also use our public repo here for cloudstack.


6 Responses

  1. gekkonaut March 26, 2014 / 12:57 am

    Something doesn’t work here. When I try to start openvswith or modprobe, I get:

    Module openvswitch not found.

  2. gekkonaut March 30, 2014 / 9:40 pm

    Nevermind that – fix was to reboot. This was due to a prior yum update from centos 6.2 -> 6.5.

  3. Marc October 4, 2014 / 7:25 am

    Thank you for the great instructions. with the latest version 2.3.90 from git I ran into an issue when executing “rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec”
    I got an error “Installed (but unpackaged) file(s) found: /etc/depmod.d/openvswitch.conf”
    This is solved following the link

  4. Eugene Poole December 4, 2018 / 10:41 pm

    When I run the command:
    rpmbuild -bb rhel/openvswitch.spec

    I get the message:
    error: failed to stat //rhel/openvswitch.spec: No such file or directory

    I am on CentOS 6.10 x86_64 as root user.

    • Tyler Bishop December 9, 2018 / 11:49 am

      I’m guessing the path your in isn’t the same as mine.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.