安装 Pnetlab 时 Openvswitch 启动失败

安装 Pnetlab 时 Openvswitch 启动失败

在 Ubuntu 18.04 容器中安装 PNETLab 时遇到问题。我发现 openvswitch 无法启动。即使我重新安装,结果还是一样。客户机或主机的网络配置方面是否有任何调整?谢谢

以下是 openvswitch-switch 包的信息

# apt install openvswitch -y
openvswitch-switch.service - Open vSwitch
Loaded: loaded (/lib/systemd/system/openvswitch-switch.service; enabled; vendor preset: enabled)    
Active: inactive (dead)

Mar 23 02:33:57 pnetlab01 systemd[1]: Dependency failed for OpenvSwitch. 
Mar 23 02:33:57 pnetlab01 systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Mar 23 02:39:31 pnetlab01 systemd[1]: Dependency failed for Open vSwitch.
Mar 23 02:39:31 pnetlab01 systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Mar 23 02:49:48 pnetlab01 systemd[1]: Dependency failed for Open vSwitch.
Mar 23 02:49:48 pnetlab01 systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
Mar 23 03:02:13 pnetlab01 systemd[1]: Dependency failed for Open vSwitch.
Mar 23 03:02:13 pnetlab01 systemd[1]: openvswitch-switch.service: Job openvswitch-switch.service/start failed with result 'dependency'.
dpkg: error processing package openvswitch-switch (--configure):
 installed openvswitch-switch package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of pnetlab:
 pnetlab depends on openvswitch-switch; however:
  Package openvswitch-switch is not configured yet.

dpkg: error processing package pnetlab (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openvswitch-switch
 pnetlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pnetlab01:~# journalctl -xe
-- 
-- Unit ovs-vswitchd.service has begun starting up.
Mar 23 03:02:14 pnetlab01 ovs-ctl[77974]: modprobe: FATAL: Module openvswitch not found in directory /lib/modules/6.5.11-8-pve
Mar 23 03:02:14 pnetlab01 ovs-ctl[77974]:  * Inserting openvswitch module
Mar 23 03:02:14 pnetlab01 ovs-ctl[77974]:  * not removing bridge module because bridges exist (docker0)
Mar 23 03:02:14 pnetlab01 systemd[1]: ovs-vswitchd.service: Control process exited, code=exited status=1
Mar 23 03:02:14 pnetlab01 systemd[1]: ovs-vswitchd.service: Failed with result 'exit-code'.
Mar 23 03:02:14 pnetlab01 systemd[1]: Failed to start Open vSwitch Forwarding Unit.

相关内容