I’m using this script to build on Centos7: $ cat ovs-install.sh #!/bin/sh set -e set -x OVS_GIT=https://github.com/justinpettit/ovs.git OVS_BRANCH=conntrack
# openvswitch specifics sudo yum -y install openssl-devel libtool rpm-build gcc g++ kernel-headers \ kernel-devel python-twisted-core python-zope-interface \ PyQt4 desktop-file-utils groff graphviz git clone $OVS_GIT ovs || echo already cloned cd ovs git checkout $OVS_BRANCH || echo can\'t checkout branch # create dist files ./boot.sh ./configure --prefix=/usr rm -rf openvswitch*.tar.gz make dist mkdir -p ~/rpmbuild/SOURCES cp openvswitch-*.tar.gz $HOME/rpmbuild/SOURCES sudo setenforce 0 sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config sudo service openvswitch stop || echo couldn\'t stop # build userland rm -rf build mkdir build cd build tar xvfz ../*tar.gz cd openvswitch-* sed -i 's/Requires: kernel >= 3.15.0-0/Requires: kernel >= 3.10.0-0/g' rhel/openvswitch-fedora.spec rpmbuild -bb --without check rhel/openvswitch-fedora.spec sudo yum install -y /home/centos/rpmbuild/RPMS/x86_64/openvswitch* || \ sudo yum reinstall -y /home/centos/rpmbuild/RPMS/x86_64/openvswitch* # build kernel sudo sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-Sources.repo yumdownloader --source kernel rpm -i --force kernel*.rpm export KVERSION=$(uname -r) rpmbuild -bb rhel/openvswitch-kmod-fedora.spec -D "kversion $KVERSION" sudo yum install -y /home/centos/rpmbuild/RPMS/x86_64/openvswitch-kmod* || \ sudo yum reinstall -y /home/centos/rpmbuild/RPMS/x86_64/openvswitch-kmod* sudo rmmod openvswitch || echo ok sudo modprobe nf_conntrack sudo modprobe nf_conntrack_netlink sudo modprobe gre sudo insmod /lib/modules/$KVERSION/kernel/extra/openvswitch/openvswitch.ko > On 21/4/2015, at 2:28, pclin <pc...@nbl.org.tw> wrote: > > Dear all, > > We are reading the source code in the private branch > https://github.com/justinpettit/ovs/tree/conntrack, > and find that some of the header files, such as > net/netfilter/nf_conntrack_helper.h in conntrack.c, seem > to be outdated (my apology if there is any misunderstanding). For example, > the header file > net/netfilter/nf_conntrack_helper.h becomes > linux/netfilter/nfnetlink_cthelper.h in linux-header-3.13.0.49 > recently distributed on Ubuntu 14.04. Will the branch be adapted to the > change in the new netfilter interfaces? > If not, please suggest the Linux distribution (and version) on which we can > build and try the source code in > the branch. Thanks a lot. > > Po-Ching > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev Miguel Angel Ajo _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev