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/
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.gz
tar xvf autoconf-2.64.tar.gz
cd autoconf-2.64/
./configure
make
make install
cd /root/
wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz -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.specrpm -ivh /root/rpmbuild/RPMS/*.rpm
You can also use our public repo here for cloudstack.
http://mirror.beyondhosting.net/Cloudstack/
Something doesn’t work here. When I try to start openvswith or modprobe, I get:
Module openvswitch not found.
Nevermind that – fix was to reboot. This was due to a prior yum update from centos 6.2 -> 6.5.
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 http://www.fengyin.org/archives/53.html
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.
I’m guessing the path your in isn’t the same as mine.