Vmware虚拟机Devstack安装openstack(All in one)

Vmware虚拟机Devstack安装openstack(All in one)

博客园第一篇博客,先练习一下。
官方文档

环境

Vmware虚拟机
OS : Ubuntu 14.04
Nat网络,Dhcp获取虚拟机ip
917367-20160319223934287-2055671335.png

配置apt源

默认安装源,可能由于下载速度慢,导致安装失败,重试可能会OK。
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

安装git

apt-get install git

下载devstack

cd /home
git clone https://git.openstack.org/openstack-dev/devstack

配置local.conf

1、可以不配置local.conf,在安装过程中根据提示,输入相关密码。
2、配置local.conf
官方文档
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=passwd
ADMIN_PASSWORD=passwd
SERVICE_PASSWORD=passwd
SERVICE_TOKEN=passwd
RABBIT_PASSWORD=passwd

HOST_IP=192.168.80.128
# Enabling Neutron (network) Service
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
enable_service neutron

## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="192.168.80.0/24"
FIXED_RANGE="10.0.0.0/24"
Q_FLOATING_ALLOCATION_POOL=start=192.168.80.102,end=192.168.80.110
PUBLIC_NETWORK_GATEWAY="192.168.80.2"
Q_L3_ENABLED=True
PUBLIC_INTERFACE=eth0
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

# VLAN configuration.
Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True

# Work offline
#OFFLINE=True
# Reclone each time
RECLONE=yes

# Logging
# By default stack.sh output only goes to the terminal where it runs. It can
# be configured to additionally log to a file by setting LOGFILE to the full
# path of the destination log file. A timestamp will be appended to the given name.
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs

创建stack用户

cd /home/devstack
./tools/create-stack-user.sh
su stack

chown

chown -R stack:stack /home/devstack
chmod 777 /dev/pts/0

Install

cd /home/devstack
./stack.sh

Success

安装成功,输出如下:
This is your host IP address: 192.168.80.128
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.80.128/dashboard
Keystone is serving at http://192.168.80.128:5000/
The default users are: admin and demo
The password: pass

转载于:https://www.cnblogs.com/d-monkey/p/5296097.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值