Centos 7快速安装之packstack

最简单的openstack安装方式之packstack

一、环境准备

 我们安装的是all-in-one环境的openstack,测试机IP:192.168.1.10
 2 [root@openstack ~]# cat /etc/redhat-release 
 3 CentOS Linux release 7.6.1810 (Core)
 4 内存:4G    硬盘:80G    CPU:4核
 5 
 6 1)、[root@openstack ~]# vim /etc/environment 
 7 LANG=en_US.utf-8
 8 LC_ALL=en_US.utf-8
 9 
10 2)、禁用firewalld、NetworkManager
11 [root@openstack ~]# systemctl stop firewalld &&  systemctl disable firewalld
12 [root@openstack ~]# systemctl stop NetworkManager && systemctl disable NetworkManager
13 3)、关闭selinux 
14 [root@openstack ~]# vim /etc/selinux/config SELINUX=disabled 
15 [root@openstack ~]# setenforce 0 
16 [root@openstack ~]# getenforce Permissive 
17 4)、 添加软件源和repo源,这里我添加的是阿里云的源,你也可以用其他的
18 [root@openstack ~]# yum install -y net-tools wget
19 [root@openstack ~]#curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo 
20 [root@openstack ~]#curl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo 
21 [root@openstack ~]#cat > /etc/yum.repos.d/openstack-pike.repo << EOF 
22 [pike] 
23 name=openstack pike 
24 baseurl=https://mirrors.aliyun.com/centos/7/cloud/x86_64/openstack-pike/ failovermethod=priority 
25 enabled=1 
26 gpgcheck=0 
27 EOF 
28 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、打开浏览器,输入以下网站

http://192.168.1.10/dashboard

 

posted @ 2019-04-27 17:45  北方莜蓝  阅读(5210)  评论(0编辑  收藏  举报