Centos kvm network error: Connection activation failed: Master connection not found or invalid

新装的系统需要做虚拟机,设置网卡为桥接模式重启网卡的时候报如下错误

networkmanager,error

networkmanager,error

Google了下才发现是 NetworkManager 的原因,因为装了桌面,所以NetworkManager接管了网卡启动,将NetworkManager停掉,并启动 network 服务来接管网卡服务:

[root@localhost network-scripts]# vim ifcfg-br0
DEVICE=em1
BRIDGE=br0
HWADDR=00:2e:90:f3:f0:00
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no

如果还是不行的话,重启下系统就好了~ 🙂