项目介绍
Packstack是一个用于自动化OpenStack安装的工具。
它是由Red Hat开发的,可以快速、简单地安装OpenStack环境。
项目地址
https://wiki.openstack.org/wiki/Packstack
环境:CentOS 7
配置:8核6G内存
配置步骤
1.配置系统固定IP
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens33
2.关闭SElinux
[root@localhost ~]# vi /etc/selinux/config
#将SELINUX=enforcing改为SELINUX=disabled,重启系统
3.更换yum源为阿里源,具体方法见历史文章http://231ai.cn/index.php/archives/29/ 4.更新yum
[root@localhost ~]# yum -y update
5.关闭NetworkManager.service和防火墙
[root@localhost ~]# systemctl stop NetworkManager.service
[root@localhost ~]# systemctl disable NetworkManager.service #开机不自动启动
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
[root@localhost ~]# systemctl status NetworkManager.service #查看服务状态
[root@localhost ~]# systemctl restart network #重启网络
[root@localhost ~]# setenforce 0
[root@localhost ~]# systemctl stop firewalld #关闭防火墙
[root@localhost ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost ~]# systemctl status firewalld
6.更新device-mapper
[root@localhost ~]# yum update device-mapper
7.安装rdo
[root@localhost ~]# yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
8.安装openstack-packstack
[root@localhost ~]# yum install -y openstack-packstack
#安装成功结尾会显示Complete!
9.启动httpd服务
[root@localhost ~]# systemctl start httpd
10.安装openstack
[root@localhost ~]# packstack --allinone
#成功安装结尾会输出:****Installation completed successfully*****
11.通过浏览器输入IP地址访问openstack登录界面 12.账号密码查看,保存账号的文件在账号的home目录下
[root@localhost ~]# cd ~
[root@localhost ~]# ls
anaconda-ks.cfg keystonerc_admin keystonerc_demo packstack-answers-20211028-034120.txt
[root@localhost ~]# cat keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD='dc38819f10624ea0'
export OS_REGION_NAME=RegionOne
export OS_AUTH_URL=http://172.31.3.9: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
© 版权声明
本站文章由不念博客原创,未经允许严禁转载!
THE END