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

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

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

环境

Vmware虚拟机
OS : Ubuntu 14.04
Nat网络,Dhcp获取虚拟机ip
Vmware虚拟机Devstack安装openstack(All in one)_第1张图片

配置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

你可能感兴趣的:(运维,git)