问题描述:
安装openstack前,虽然已经卸载了 NetworkManager。但是还是报错,导致网络系统配置没有自动完成配置。出现如下警报:
Warning: NetworkManager is active on 192.168.174.21. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
查看节点服务器网卡配置目录内,没有ifcfg-br-ex的虚拟交换机文件。
ls /etc/sysconfig/network-scripts
解决方案:
1.创建编辑ifcfg-br-ex虚拟交换机文件,把网卡的ip配置给虚拟机交换机br-ex
vim /etc/sysconfig/network-scripts/ifcfg-br-ex
ONBOOT=“yes”
NM_CONTROLLED=“no”
IPADDR=“192.168.174.21”
NETMASK=“255.255.255.0”
GATEWAY=“192.168.174.1”
DEVICE=br-ex
NAME=br-ex
DEVICETYPE=ovs
OVSBOOTPROTO=“static”
TYPE=OVSBridge
2 修改网卡配置文件ifcfg-eth0,把网卡和虚拟交换机绑定。
vim /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=“OVSPort”
OVS_BRIDGE=br-ex
BOOTPROTO=none
NAME=“eth0”
UUID=“9857ab60-363c-456c-bb83-10dfd86b3308”
DEVICE=“eth0”
ONBOOT=“yes”
DEVICETYPE=ovs
重启网络服务 systemctl restart network
测试ping www.163.com 测试成功。