大网数据广告活动
服务器运维问答

Why do I need restart a VM after restarted a bridge to get network working?

· 52CE 我爱测

I have a VM with an interface on a bridge(e.g. br0). After restarting the bridge(bring down, bring up) VM doesn't see the network and I must do "power cycle"(shutdown and then power on) to get VM see the network. Why it is happen…

问题原文

原帖链接 · Disova · CC BY-SA 3.0

I have a VM with an interface on a bridge(e.g. br0). After restarting the bridge(bring down, bring up) VM doesn't see the network and I must do "power cycle"(shutdown and then power on) to get VM see the network. Why it is happening and why reboot didn't help? Sincerely.

Hypervisor is KVM on Ubuntu 16.04

已采纳解答

原帖链接 · dyasny · CC BY-SA 3.0

When you take the bridge down it disconnects all the attached IFs, when you bring it back up, only the IFs defined in ifcfg files (or whatever ubuntu uses instead) are added automatically. KVM guests have a script that does it, executed at VM start. So it's absolutely logical that you don't get reconnected unless you execute VM start.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-30)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。