Vmware虛擬機Devstack安裝openstack(All in one)

Vmware虛擬機Devstack安裝openstack(All in one)

博客園第一篇博客,先練習一下。
官方文檔html

環境

Vmware虛擬機
OS : Ubuntu 14.04
Nat網絡,Dhcp獲取虛擬機ip
git

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

安裝git

apt-get install git網絡

下載devstack

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

配置local.conf

一、能夠不配置local.conf,在安裝過程當中根據提示,輸入相關密碼。
二、配置local.conf
官方文檔
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=passwd
ADMIN_PASSWORD=passwd
SERVICE_PASSWORD=passwd
SERVICE_TOKEN=passwd
RABBIT_PASSWORD=passwdrest

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 neutroncode

## 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-exhtm

# VLAN configuration.
Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=Trueblog

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

# 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

相關文章
相關標籤/搜索