1、当前已经在centos7虚拟机环境中成功安装ovs2.8.1版本.
项目需求需要使用ovs2.14及以上版本,于是再次尝试。
2、ovs官网上目前最新版本2.15,查询OVS和linux内核的对应关系,安装ovs2.14以上,内核至少需要3.16及以上,centos7的内核版本是3.10无法支撑
centos8的内核版本是4.18,:
Open vSwitch | Linux kernel |
---|---|
1.4.x | 2.6.18 to 3.2 |
1.5.x | 2.6.18 to 3.2 |
1.6.x | 2.6.18 to 3.2 |
1.7.x | 2.6.18 to 3.3 |
1.8.x | 2.6.18 to 3.4 |
1.9.x | 2.6.18 to 3.8 |
1.10.x | 2.6.18 to 3.8 |
1.11.x | 2.6.18 to 3.8 |
2.0.x | 2.6.32 to 3.10 |
2.1.x | 2.6.32 to 3.11 |
2.3.x | 2.6.32 to 3.14 |
2.4.x | 2.6.32 to 4.0 |
2.5.x | 2.6.32 to 4.3 |
2.6.x | 3.10 to 4.7 |
2.7.x | 3.10 to 4.9 |
2.8.x | 3.10 to 4.12 |
2.9.x | 3.10 to 4.13 |
2.10.x | 3.16 to 4.17 |
2.11.x | 3.16 to 4.18 |
2.12.x | 3.16 to 5.0 |
2.13.x | 3.16 to 5.0 |
2.14.x | 3.16 to 5.5 |
2.15.x | 3.16 to 5.8 |
按照对应关系,计划选择OVS2.15.X和centos8进行编译安装使用。(需要关注我司的内核版本是否在3.16及以上)
关于ovs不同版本支持的功能,以及linux内核支持的不同功能,更详细的可以查看官网:
https://docs.openvswitch.org/en/latest/faq/releases/
OVS版本更新内容可查看:
https://www.openvswitch.org/releases/NEWS-2.15.0.txt
3、安装OVS
查询OVS依赖的软件包:
1)官网上描述:https://docs.openvswitch.org/en/latest/intro/install/documentation/
Build Requirements¶
As described in the Documentation Style, the Open vSwitch documentation is written in reStructuredText and built with Sphinx. A detailed guide on installing Sphinx in many environments is available on the Sphinx website but, for most Linux distributions, you can install with your package manager. For example, on Debian/Ubuntu run:
$ sudo apt-get install python3-sphinx
Similarly, on RHEL/Fedora run:
$ sudo dnf install python3-sphinx
A requirements.txt
is also provided in the /Documentation
, should you wish to install using pip
:
$ virtualenv .venv $ source .venv/bin/activate $ pip install -r Documentation/requirements.txt