Add rpm repository
I get rpm from below page to add rdo repository.
I perform this command
[root@kvmtest ~]# yum localinstall https://repos.fedorapeople.org/repos/openstack/openstack-ocata/rdo-release-ocata-2.noarch.rpm
Install OVS
[root@kvmtest ~]# yum install openvswitch Loaded plugins: fastestmirror openstack-ocata | 2.9 kB 00:00:00 rdo-qemu-ev | 2.9 kB 00:00:00 (1/2): rdo-qemu-ev/x86_64/primary_db | 55 kB 00:00:00 (2/2): openstack-ocata/x86_64/primary_db | 620 kB 00:00:02 Loading mirror speeds from cached hostfile * base: ftp.riken.jp * extras: ftp.riken.jp * updates: ftp.riken.jp Resolving Dependencies --> Running transaction check ---> Package openvswitch.x86_64 1:2.6.1-4.1.git20161206.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================== Package Arch Version Repository Size =================================================================================================== Installing: openvswitch x86_64 1:2.6.1-4.1.git20161206.el7 openstack-ocata 4.9 M Transaction Summary =================================================================================================== Install 1 Package Total download size: 4.9 M Installed size: 20 M Is this ok [y/d/N]: y Downloading packages: warning: /var/cache/yum/x86_64/7/openstack-ocata/packages/openvswitch-2.6.1-4.1.git20161206.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 764429e6: NOKEY Public key for openvswitch-2.6.1-4.1.git20161206.el7.x86_64.rpm is not installed openvswitch-2.6.1-4.1.git20161206.el7.x86_64.rpm | 4.9 MB 00:00:45 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud Importing GPG key 0x764429E6: Userid : "CentOS Cloud SIG (http://wiki.centos.org/SpecialInterestGroup/Cloud) <security@centos.org>" Fingerprint: 736a f511 6d9c 40e2 af6b 074b f9b9 fee7 7644 29e6 Package : rdo-release-ocata-2.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:openvswitch-2.6.1-4.1.git20161206.el7.x86_64 1/1 Verifying : 1:openvswitch-2.6.1-4.1.git20161206.el7.x86_64 1/1 Installed: openvswitch.x86_64 1:2.6.1-4.1.git20161206.el7 Complete! [root@kvmtest ~]#
Start OVS
[root@kvmtest ~]# systemctl start openvswitch [root@kvmtest ~]# systemctl status openvswitch ● openvswitch.service - Open vSwitch Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; disabled; vendor preset: disabled) Active: active (exited) since Mon 2017-03-27 00:29:45 JST; 6s ago Process: 21630 ExecStart=/bin/true (code=exited, status=0/SUCCESS) Main PID: 21630 (code=exited, status=0/SUCCESS) Mar 27 00:29:45 kvmtest systemd[1]: Starting Open vSwitch... Mar 27 00:29:45 kvmtest systemd[1]: Started Open vSwitch. [root@kvmtest ~]# ovs-vsctl show bbf32677-0b6c-46f4-8734-e8705c5cbe80 ovs_version: "2.6.1" [root@kvmtest ~]#