无法启动 Open vSwitch 转发单元

无法启动 Open vSwitch 转发单元

openvswitch-switch-dpdk尝试按照以下说明在 ubuntu 18.04(在 vmware 中)上安装:https://ubuntu.com/server/docs/openvswitch-dpdk

但运行此命令后:

sudo update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk

失败sudo service openvswitch-switch restart并出现以下输出journal -xe

-- Automatic restarting of the unit ovs-vswitchd.service has been scheduled, as 
-- the configured Restart= setting for the unit.
Apr 11 04:15:08 ubuntu systemd[1]: Stopped Open vSwitch Forwarding Unit.
-- Subject: Unit ovs-vswitchd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit ovs-vswitchd.service has finished shutting down.
Apr 11 04:15:08 ubuntu systemd[1]: ovs-vswitchd.service: Start request repeated 
Apr 11 04:15:08 ubuntu systemd[1]: ovs-vswitchd.service: Failed with result 'exi
Apr 11 04:15:08 ubuntu systemd[1]: Failed to start Open vSwitch Forwarding Unit.
-- Subject: Unit ovs-vswitchd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit ovs-vswitchd.service has failed.

我非常感谢任何帮助使这项工作顺利完成。

答案1

为了解决这个问题我必须安装openvswitch-switch-dpdk

sudo apt-get install openvswitch-switch-dpdk

答案2

为了使 EAL 正常工作,您必须先使用dpdk-devbind命令将 NIC 绑定到它,然后再重新启动守护进程,否则守护进程将失败。但是,这会中断您的互联网连接,如果您没有来自外部的流量,则没有必要。但这是我可以修复错误的唯一方法。

相关内容