新建一个虚拟机作为计算节点,先完成以下配置
1、静态ip 配置
2、关闭防火墙、selinux
3、网络管理器切换(NetworkManger《切换为》network)
4、ip《= =》hostname(域名映射)
5、centos-release-Openstack-queens /openstackclient 安装
打开前面已经配置好作为控制节点的虚拟机配置,打开新建的虚拟机:
配置两台机器的域名映射:
vi /etc/hosts
主机192.168.253.137映射 :
ping一下另一台主机,ping’的通,配成功
同理:另一台机器也要这样做:
安装queens版本的openstack yum install -y centos-release-openstack-queens
安装python-openstackclient yum install -y python-openstackclient
重启: yum upgrade -y
egrep -c ‘(vmx|svm)’ /proc/cpuinfo
出现0
改为qemu
systemctl start libvirtd systemctl status libvirtd
systemctl enable libvirtd
systemctl start libvirtd
systemctl enable libvirtd
systemctl status libvirtd
systemctl start openstack-nova-compute
systemctl enable openstack-nova-compute
systemctl status openstack-nova-compute
openstack compute service list --service nova-compute nova-manage cell_v2 discover_hosts --verbose