收起左侧

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

28
回复
5021
查看
[ 复制链接 ]

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-1-21 20:31:11 显示全部楼层 阅读模式

[i=s] 本帖最后由 玉尺书生 于 2025-2-5 20:26 编辑 [/i]<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

收藏
送赞 6
分享

本帖子中包含更多资源

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

x

5

主题

89

回帖

220

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章

2025-1-22 11:21:51 显示全部楼层
可以共存,开启ovs后 重新新建macvlan网卡

1

主题

3

回帖

0

牛值

江湖小虾

2025-1-21 21:13:29 显示全部楼层
开了这个istoreos又启动不了

9

主题

29

回帖

0

牛值

fnOS系统内测组

2025-1-21 21:48:36 显示全部楼层
果然是夺命书生  马上找到原因

1

主题

25

回帖

190

牛值

社区共建团

社区共建团荣誉勋章

2025-1-21 22:17:22 显示全部楼层
支持大佬一下 确实**

2

主题

17

回帖

0

牛值

江湖小虾

2025-1-21 23:32:19 显示全部楼层
Macvlan和虚拟机不能并存,头大

2

主题

7

回帖

0

牛值

江湖小虾

2025-1-21 23:54:23 显示全部楼层
不能使用Macvlan了吗?后期会修复吗
这是暂时的解决办法,我没有测试能不能共存,暂时先二选一吧。  详情 回复
2025-1-21 23:55

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-1-21 23:55:59 楼主 显示全部楼层
这是暂时的解决办法,我没有测试能不能共存,暂时先二选一吧。

4

主题

3

回帖

0

牛值

江湖小虾

2025-1-22 01:41:49 显示全部楼层
大佬nb,解决问题

1

主题

3

回帖

0

牛值

江湖小虾

2025-1-22 10:50:43 显示全部楼层
我的openwrt Macvlan和虚拟机只能二选一么?我需要用软路由

1

主题

1

回帖

0

牛值

江湖小虾

2025-1-22 14:32:14 显示全部楼层
怎么关闭Macvlan

0

主题

5

回帖

0

牛值

fnOS系统内测组

2025-1-22 14:47:57 显示全部楼层
有3个网卡,想把网卡2和网卡3共用一个ip,但是弄了链路聚合网速降低,延迟增加,有什么办法吗
目前没有好办法,等更新吧。  详情 回复
2025-1-22 14:52

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-1-22 14:52:53 楼主 显示全部楼层
目前没有好办法,等更新吧。

7

主题

197

回帖

0

牛值

fnOS系统内测组

飞牛百度网盘玩家

2025-1-22 15:28:49 显示全部楼层
可以共存,先开启OVS,再重新创建macvlan就好了,注意网卡名字需要修改
[md]我的是第一张网卡先开启OVS,再创建macvlan,在虚拟机网络使用高(BT、迅雷)时会出现网卡重置。现在删了macvlan也不行,还是会重置。 ![WechatIMG899.jpg](data/attachment/forum/202502/11/195900rzzylvkkee9  详情 回复
2025-2-11 19:59

1

主题

3

回帖

0

牛值

江湖小虾

2025-1-23 18:55:00 显示全部楼层
我是kvm创建了bridge0网桥,需要删除吗?
不影响就不删除,影响就删除呗。  详情 回复
2025-1-23 20:27

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-1-23 20:27:05 楼主 显示全部楼层
不影响就不删除,影响就删除呗。

0

主题

1

回帖

0

牛值

江湖小虾

2025-1-23 22:43:45 显示全部楼层
确实是开着istoreos,只能2选1吗,都想开啊
开启好了,在开ISTOREOS呗,关闭容器就应该可以了。  详情 回复
2025-1-23 22:57

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-1-23 22:57:02 楼主 显示全部楼层
开启好了,在开ISTOREOS呗,关闭容器就应该可以了。

0

主题

7

回帖

0

牛值

江湖小虾

2025-1-26 00:14:50 显示全部楼层
没有开启docker,依赖都在。还是不行。

2

主题

66

回帖

0

牛值

初出茅庐

2025-2-8 17:23:31 显示全部楼层
照着操作ovs倒是能打开了,可是飞牛主机无法连上了,ping也不通,无奈主机连接显示器安装上键盘输入systemctl restart openvswitch-switch来重启OVS服务才正常,吓死我了

3

主题

42

回帖

0

牛值

初出茅庐

2025-2-11 19:59:45 显示全部楼层

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

WechatIMG899.jpg

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

本帖子中包含更多资源

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

x
OVS跟某些网卡有兼容性问题。  详情 回复
2025-3-4 12:42

0

主题

1

回帖

0

牛值

江湖小虾

2025-3-4 03:03:01 显示全部楼层
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.

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-3-4 12:42:33 楼主 显示全部楼层
OVS跟某些网卡有兼容性问题。
楼主,这点我非常赞成,几个版本升级了,OVS还是没解决,打开就进不了系统,按照一些大佬们的方法,删除虚拟网桥,是可以进系统了,但一开OVS又进不了,不开,虚拟机摆设不能用,特别是单网口的飞牛,我主机网卡是rt  详情 回复
2025-3-15 11:49

1

主题

3

回帖

0

牛值

江湖小虾

2025-3-15 11:49:16 显示全部楼层
楼主,这点我非常赞成,几个版本升级了,OVS还是没解决,打开就进不了系统,按照一些大佬们的方法,删除虚拟网桥,是可以进系统了,但一开OVS又进不了,不开,虚拟机摆设不能用,特别是单网口的飞牛,我主机网卡是rtl8111h,估计就是兼容性问题,不知道这以后能不能解决!
确实,现在OVS我都不敢开了,虚拟机摆设了  详情 回复
2025-4-9 11:23
试试重启OVS服务看能获得IP不,可以的话做OVS开机重启服务 参考:https://club.fnnas.com/forum.php?mod=viewthread&tid=17595&extra=page%3D1  详情 回复
2025-3-16 05:28

0

主题

17

回帖

0

牛值

江湖小虾

2025-3-16 05:28:20 显示全部楼层
试试重启OVS服务看能获得IP不,可以的话做OVS开机重启服务
参考:https://club.fnnas.com/forum.php ... &extra=page%3D1

0

主题

1

回帖

0

牛值

江湖小虾

2025-4-8 19:44:28 显示全部楼层
开启OVS后设备失联是怎么回事?这个方法能解决吗?

41

主题

3202

回帖

485

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-4-8 22:01:31 楼主 显示全部楼层
sunyu4506 发表于 2025-4-8 19:44
开启OVS后设备失联是怎么回事?这个方法能解决吗?

兼容性问题,目前没办法,要等后面更新。

2

主题

6

回帖

0

牛值

江湖小虾

2025-4-9 11:23:15 显示全部楼层
灬经典怀旧 发表于 2025-3-15 11:49
楼主,这点我非常赞成,几个版本升级了,OVS还是没解决,打开就进不了系统,按照一些大佬们的方法,删除虚 ...

确实,现在OVS我都不敢开了,虚拟机摆设了

0

主题

19

回帖

0

牛值

江湖小虾

2025-4-17 09:08:58 显示全部楼层
可以先开OVS,再在OVS的基础上加上混合,开启MacVlan, 如果先在硬件层面开启MacVlan的话,会有问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则