参考:https://www.linuxtechi.com/single-node-openstack-liberty-installation-centos-7/
步骤:
环境准备:centos7.4
注意:1、最好是新安装iso的环境
2、系统盘最好容量设大些(默认虚拟机的系统盘会放在/var/lib/nova/instances目录下,容量过小会导致虚拟机创建失败,如图 disk.png,扩容方法见:https://blog.csdn.net/lynn_kong/article/details/9960795、https://blog.csdn.net/qq_37467907/article/details/78321832 注:可能需要修改fstab才能启动)
1、配置安装
#配置主机名
hostnamectl set-hostname "openstack.example.com"
#配置hosts,增加主机名(不配,实例会连不上控制台)
[root@asu69 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 openstack.example.com
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 openstack.example.com
#关闭selinux
setenforce 0<