开启左侧

虚拟机开启ovs,提示网桥绑定失败的解决办法。

发表于:2025-1-21 20:31:11 教程 2566

<br /> <br />

虚拟机开启OVS失败的集中情况

1.可能是缺少依赖,可以尝试在SSH下执行下面的命令。

第一步,修复更新依赖

sudo apt update
sudo apt install --reinstall apt-listchanges
sudo apt --fix-broken install
sudo py3clean /usr/lib/python3/dist-packages

第二步,重新安装 ovs

sudo apt install openvswitch-switch openvswitch-switch-dpdk -y

第三步:重启网络服务

sudo systemctl restart network_service.service

2.安装了docker istoreos openwrt导致的OVS开启失败,请有开启失败的小伙伴,检查一下自己有没有用过类似的docker,或者开启了DOCKER MACVLAN,网卡混杂模式的问题。关闭容器,恢复到原来的模式。

9eb0278b3c8e242112ddcd9da117c48c.png

收藏
送赞 4
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

发表回复

评论列表(22)

开了这个istoreos又启动不了
2025-1-21 21:13:29 回复
果然是夺命书生  马上找到原因
2025-1-21 21:48:36 回复
支持大佬一下 确实**
2025-1-21 22:17:22 回复
Macvlan和虚拟机不能并存,头大
2025-1-21 23:32:19 回复
不能使用Macvlan了吗?后期会修复吗
2025-1-21 23:54:23 回复
这是暂时的解决办法,我没有测试能不能共存,暂时先二选一吧。  详情 回复
2025-1-21 23:55
这是暂时的解决办法,我没有测试能不能共存,暂时先二选一吧。
2025-1-21 23:55:59 回复
大佬nb,解决问题
2025-1-22 01:41:49 回复
我的openwrt Macvlan和虚拟机只能二选一么?我需要用软路由
2025-1-22 10:50:43 回复
可以共存,开启ovs后 重新新建macvlan网卡
2025-1-22 11:21:51 1 回复
怎么关闭Macvlan
2025-1-22 14:32:14 回复
有3个网卡,想把网卡2和网卡3共用一个ip,但是弄了链路聚合网速降低,延迟增加,有什么办法吗
2025-1-22 14:47:57 回复
目前没有好办法,等更新吧。  详情 回复
2025-1-22 14:52
目前没有好办法,等更新吧。
2025-1-22 14:52:53 回复
可以共存,先开启OVS,再重新创建macvlan就好了,注意网卡名字需要修改
2025-1-22 15:28:49 回复
[md]我的是第一张网卡先开启OVS,再创建macvlan,在虚拟机网络使用高(BT、迅雷)时会出现网卡重置。现在删了macvlan也不行,还是会重置。 ![WechatIMG899.jpg](data/attachment/forum/202502/11/195900rzzylvkkee9  详情 回复
2025-2-11 19:59
我是kvm创建了bridge0网桥,需要删除吗?
2025-1-23 18:55:00 回复
不影响就不删除,影响就删除呗。  详情 回复
2025-1-23 20:27
不影响就不删除,影响就删除呗。
2025-1-23 20:27:05 回复
确实是开着istoreos,只能2选1吗,都想开啊
2025-1-23 22:43:45 回复
开启好了,在开ISTOREOS呗,关闭容器就应该可以了。  详情 回复
2025-1-23 22:57
开启好了,在开ISTOREOS呗,关闭容器就应该可以了。
2025-1-23 22:57:02 回复
没有开启docker,依赖都在。还是不行。
2025-1-26 00:14:50 回复
照着操作ovs倒是能打开了,可是飞牛主机无法连上了,ping也不通,无奈主机连接显示器安装上键盘输入systemctl restart openvswitch-switch来重启OVS服务才正常,吓死我了
2025-2-8 17:23:31 回复

我的是第一张网卡先开启OVS,再创建macvlan,在虚拟机网络使用高(BT、迅雷)时会出现网卡重置。现在删了macvlan也不行,还是会重置。

WechatIMG899.jpg

把第一张网卡的OVS关了,开第二张网卡就没事。:cry:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
2025-2-11 19:59:45 回复
OVS跟某些网卡有兼容性问题。  详情 回复
2025-3-4 12:42
admin@FnOs:~$ sudo apt update
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Ign:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease
Hit:6 https://pkg.ltec.ch/public focal InRelease
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Ign:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Ign:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease
Err:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
  Could not connect to mirrors.tuna.tsinghua.edu.cn:443 (101.6.15.130). - connect (111: Connection refused)
Err:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
Err:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
Err:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
Err:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease
  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://mirrors.tuna.tsinghua.ed ... /bookworm/InRelease  Could not connect to mirrors.tuna.tsinghua.edu.cn:443 (101.6.15.130). - connect (111: Connection refused)
W: Failed to fetch https://mirrors.tuna.tsinghua.ed ... m-updates/InRelease  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
W: Failed to fetch https://mirrors.tuna.tsinghua.ed ... backports/InRelease  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
W: Failed to fetch https://mirrors.tuna.tsinghua.ed ... -security/InRelease  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
W: Failed to fetch https://mirrors.tuna.tsinghua.ed ... /bookworm/InRelease  Unable to connect to mirrors.tuna.tsinghua.edu.cn:https:
W: Some index files failed to download. They have been ignored, or old ones used instead.
2025-3-4 03:03:01 回复
OVS跟某些网卡有兼容性问题。
2025-3-4 12:42:33 回复