Openstack--使用packstack工具一键部署OpenStack
Openstack----(线网源)使用packstack工具一键部署OpenStack!文章目录Openstack----(线网源)使用packstack工具一键部署OpenStack!一:部署 OpenStack1.1 环境1.2 安装虚拟机1.2.1 IP地址配置与修改主机名1.2.2 初始化操作1.3 一键部署部署OpenStack二、网页登陆OpenStack一:部署 OpenStack
·
Openstack----(在线源)使用packstack工具一键部署OpenStack!
文章目录
一:部署 OpenStack
1.1 环境
VMware软件
CentOS7.6最小化安装
NAT的IP地址:20.0.0.100
packstack 一键部署 OpenStack,登录OPenStack中的WEB页面进行操作。
1.2 安装虚拟机
最小化安装CentOS 7.6系统,CPU双核双线程/开启虚拟化功能
内存8G,硬盘40G+300G,网卡:NAT模式
修改网卡名为eth0:net.ifnames=0 biosdevname=0
1.2.1 IP地址配置与修改主机名
hostnamectl set-hostname openstack
bash
vi /etc/sysconfig/network-scripts/ifcfg-eth0
systemctl restart network
vim /etc/resolv.conf
nameserver 8.8.8.8
[root@openstack ~]# ping 8.8.8.8
[root@openstack ~]# ping www.baidu.com
1.2.2 初始化操作
- 关闭防火墙与和核心防护,NetworkManager
[root@openstack ~]# systemctl stop firewalld '//关闭防护墙'
[root@openstack ~]# systemctl disable firewalld '/取消开机自启动'
[root@openstack ~]# setenforce 0 '//关闭核心防护'
[root@openstack ~]# vi /etc/sysconfig/selinux '//取消开机自启'
SELINUX=disabled
systemctl stop NetworkManager
- 关闭网络管理工具,取消开机自启
[root@openstack ~]# systemctl disable NetworkManager
[root@openstack ~]# systemctl stop NetworkManager
- 创建时间同步
[root@openstack yum.repos.d]# yum -y install ntpdate '//安装ntpdate服务'
[root@openstack yum.repos.d]# ntpdate ntp.aliyum.com >>/var/log/ntpdate.log '//同步aliyum时间'
[root@openstack yum.repos.d]# crontab -e '//创建周期计划任务'
*/30 * * * * /usr/sbin/ntpdate ntp.aliyum.com >>/var/log/ntpdate.log
[root@openstack yum.repos.d]# systemctl restart crond '//重启计划任务'
[root@openstack yum.repos.d]# systemctl enable crond '//设置开机自启动'
- 编辑yum源,并安装train版OpenStack
[root@openstack ~]# cd /etc/yum.repos.d/
[root@openstack yum.repos.d]# mkdir bak
[root@openstack yum.repos.d]# mv C* bak/
[root@openstack yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@openstack yum.repos.d]# yum -y install centos-release-openstack-train
[root@openstack yum.repos.d]# yum clean all
[root@openstack yum.repos.d]# yum makecache
- 重启,查看服务是否正常
[root@openstack ~]# reboot
1.3 一键部署部署OpenStack
- 安装OpenStack-packstack软件包
[root@OpenStack ~]# yum -y install openstack-packstack
- 在线部署
[root@OpenStack ~]# packstack --allinone '//等待20分钟左右'
...省略内容
**** Installation completed successfully ******
Additional information:
* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks
* A new answerfile was created in: /root/packstack-answers-20210118-151537.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* Warning: NetworkManager is active on 20.0.0.100. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
* File /root/keystonerc_admin has been created on OpenStack client host 20.0.0.100. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://20.0.0.100/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* The installation log file is available at: /var/tmp/packstack/20210118-151536-qYUbNi/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20210118-151536-qYUbNi/manifests
'//注意:Additional information是重要的,看一下有没有什么错误。 '
- 查看用户和密码
[root@openstack ~]# ls
anaconda-ks.cfg keystonerc_admin keystonerc_demo packstack-answers-20210118-151537.txt
[root@openstack ~]# pwd
/root
[root@openstack ~]# cat keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD='cdc2135f42b94f8c' ' //此处为admin用户登录OpenStack的密码 '
export OS_REGION_NAME=RegionOne
export OS_AUTH_URL=http://20.0.0.100: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
二、网页登陆OpenStack
- 浏览器输入地址 20.0.0.100
- 登录
- 登录成功
更多推荐
已为社区贡献2条内容
所有评论(0)