OVS Installation on CentOS 6 or 7
- yum update -y
- yum install gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool checkpolicy selinux-policy-devel python-six
- We can find OpenvSwitch in RDO repo (RDO is a community of people using and deploying OpenStack on CentOS, Fedora and RHEL):
- wget https://rdoproject.org/repos/rdo-release.rpm
- rpm -i rdo-release.rpm
- yum install openvswitch
- Enable OVS daemon on startup and start it:
- On CentOS 6
- chkconfig openvswitch on
- service openvswitch start
- On CentOS 7:
- systemctl -l start openvswitch.service
- systemctl -l enable openvswitch.service
- In order to avoid possible conflicts in networking:
- yum remove NetworkManager
- To verify your OVS installation:
- ovs-vsctl -V
ovs-vsctl (Open vSwitch) 2.5.0
Compiled Mar 18 2016 15:00:11
DB Schema 7.12.1
- ovs-vsctl show
1c490f2d-68c0-4dd0-a0de-cdcaa944711a
ovs_version: "2.5.0"
Step 4 above on CentOS 6.10 x86_64 produced the following message:
ReplyDeleteError: Package: 1:openvswitch-2.9.0-3.el7.x86_64 (openstack-queens)
Requires: systemd-units
It's my understanding that systemd-units is a CentOS 7 module.
How do I correct this issue on CentOS 6 x86_64?
My pity, for now only RDO releases with CentOS7 suport are maintained, and the last release (as I know) with the CentOS6 support was Mitaka, so try:
Deleteyum install centos-release-openstack-mitaka
instead of:
wget https://rdoproject.org/repos/rdo-release.rpm
rpm -i rdo-release.rpm