首页 > 代码库 > packstack 单机部署

packstack 单机部署

VirtualBox

os:centos7.2

双网卡  6G内存(至少4G)  8G+20G硬盘 

设置固定IP

关闭firewalld

关闭selinux

设置hosts ,本地解析

 

非英文环境设置 vi /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

设置epel源,

https://dl.fedoraproject.org/pub/epel/   在这里找到适合自己的版本,如果访问国内的有超时情况,可以更换为其他的源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
 

 

网络设置

$ sudo systemctl disable firewalld
$ sudo systemctl stop firewalld
$ sudo systemctl disable NetworkManager
$ sudo systemctl stop NetworkManager
$ sudo systemctl enable network
$ sudo systemctl start network

安装rdo

 yum install -y https://rdoproject.org/repos/rdo-release.rpm

注意这里如果要安装早期版本的openstack, 需要更换下baseurl,比如说要安装IceHouse可以更换成如下地址:

https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/epel-7/

[rdo]
name=rdo
baseurl=https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/epel-7/
enabled=1
gpgcheck=0

 

参考这里,在加一步

https://github.com/naototty/centos7-rdo-icehouse/blob/master/README.md

yum install -y iptables-services.x86_64  iptables-utils  system-config-firewall-base.noarch

 

 

安装openstack-packstack

$ sudo yum install -y centos-release-openstack-newton  # 不要做这步
$ sudo yum update -y  # 不确定要不要做这步
$ sudo yum install -y openstack-packstack

开始安装

packstack --allinone

 

如果遇到问题

来这里查(部署IceHouse时遇到的问题)

http://www.cnblogs.com/resn/p/6068138.html

 

packstack 单机部署