最简单的openstack安装方式之packstack
一、环境准备
我们安装的是all-in-one环境的openstack,测试机IP:192.168.1.10
[root@openstack ~]# cat /etc/redhat-release
CentOS Linux release 7.6. (Core)
内存:4G 硬盘:80G CPU:4核 )、[root@openstack ~]# vim /etc/environment
LANG=en_US.utf-
LC_ALL=en_US.utf- )、禁用firewalld、NetworkManager
[root@openstack ~]# systemctl stop firewalld && systemctl disable firewalld
[root@openstack ~]# systemctl stop NetworkManager && systemctl disable NetworkManager
)、关闭selinux
[root@openstack ~]# vim /etc/selinux/config SELINUX=disabled
[root@openstack ~]# setenforce
[root@openstack ~]# getenforce Permissive
)、 添加软件源和repo源,这里我添加的是阿里云的源,你也可以用其他的
[root@openstack ~]# yum install -y net-tools wget
[root@openstack ~]#curl -o /etc/yum.repos.d/Centos-.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@openstack ~]#curl -o /etc/yum.repos.d/epel-.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@openstack ~]#cat > /etc/yum.repos.d/openstack-pike.repo << EOF
[pike]
name=openstack pike
baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-pike/ failovermethod=priority
enabled=
gpgcheck=
EOF
yum clean all && yum makecache
2、安装pakcstack
[root@openstack ~]# yum install -y openstack-packstack
在家目录下生成answer文件
[root@openstack ~]# packstack --gen-answer-file=answer-file-fbo.conf
[root@openstack ~]# packstack --answer-file=./answer-file-fbo.conf
3、泡一杯茶,大约20分钟以后就可以了,屏幕输出以下信息
报错还没有发现有什么影响,暂且忽略。
[root@openstack ~]# cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD='63601cbcc6b44d8d'
export OS_AUTH_URL=http://192.168.1.10:5000/v3
export PS1='[\u@\h \W(keystone_admin)]\$ ' export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3 注意事项:
1、安装过程中ssh连接会断掉,如果出现类似情况,建议直接在虚拟机里面执行命令
4、打开浏览器,输入以下网站