centos7 OpenStack 一键自动部署
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7 OpenStack 一键自动部署相关的知识,希望对你有一定的参考价值。
1、[[email protected] ~]# systemctl stop NetworkManager
[[email protected] ~]# systemctl enable NetworkManager
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# systemctl enable firewalld
[[email protected] ~]#vim /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
getenforce
setenforce 0 (临时关闭)
2、[[email protected] ~]#yum install https://rdoproject.org/repos/rdo-release.rpm
[[email protected] ~]#yum repolist
[[email protected] ~]#yum -y install openstack-packstack
3、重启服务器 #reboot (shutdown -r now)
4、[[email protected] ~]#yum install ntp
[[email protected] ~]# systemctl start ntpd
[[email protected] ~]# chkconfig ntpd on
[[email protected] ~]# vim /etc/ntp.conf
增加:server 202.120.2.101
[[email protected] ~]# ntpdate 202.120.2.101 (上海交通大学时间服务器)
5、[[email protected] ~]#packstack --gen-answer-file /root/answers.txt
[[email protected] ~]#vim /root/answers.txt
修改参数:
CONFIG_PROVISION_DEMO=n
CONFIG_CINDER_VOLUMES_CREATE=n
CONFIG_KEYSTONE_ADMIN_PW=redhat (修改登录密码)
CONFIG_HORIZON_SSL=y (图像化管理界面的安装)
6、 [[email protected] ~]#packstack --allinone
或者:#packstack --answer-file /root/answers.txt
7、[[email protected] ~]# openstack-status
在浏览器中输入服务器的IP地址及可访问。
8、镜像文件路径:
[[email protected] ~]# ll /var/lib//glance/images/
total 6709760
-rw-r----- 1 glance glance 3100639232 Jun 24 06:21 0b0de83b-d817-496e-8aec-f874d8963624
-rw-r----- 1 glance glance 3770155008 Jun 24 05:26 cf1d6df4-bfa1-4835-b96c-cf829bd2ee5e
[[email protected] ~]#
9、脚本:
#vim /tmp/customized.sh
echo "Time to eat!" >> /etc/motd
chmod a+x /tmp/customized.sh
10、镜像地址:
http://download.cirros-cloud.net/0.3.4/
以上是关于centos7 OpenStack 一键自动部署的主要内容,如果未能解决你的问题,请参考以下文章