OpenStack deployment system with Devstack under ubuntu16.04

First, preparation

Second, the virtual machine configuration

  • Memory: 4G Processor: 6G
  • Network Adapter: NAT mode
    Here Insert Picture Description

Third, the installation process

  • First, download the source for the replacement system source Ali (16.04 version can manually switch)

  • Update

    sudo apt-get update
    sudo apt-get upgrade
    
  • Set time synchronization

    设定时区
    sudo dpkg-reconfigure tzdata
    选择Asia -> 在选择Shanghai -> OK
    
    首先安装时间同步工具,接下去设置与网络服务器同步时间,最后查看时间是否已经同步
    sudo apt-get install ntpdate
    sudo ntpdate cn.pool.ntp.org
    date
    
  • Download vim editor

    sudo apt-get install vim
    
  • Download and install the software pip

    sudo apt-get install bridge-utils git python-pip
    

    Check whether the installation is successful pip

    pip -V  //注意V是大写
    
  • pip replaced source watercress

    mkdir .pip
    vim .pip/pip.conf
    插入内容为:
    [global]
    index-url=http://pypi.douban.com/simple
    trusted-host=pypi.douban.com
    
  • Download devstack

    git clone https://github.com/openstack-dev/devstack -b stable/pike
    
  • Create a user stack

    首先切换目录:
    cd devstack/tools
    sudo ./create-stack-user.sh
    
  • The devstack placed in the directory / opt / stack, and set permissions

    先切换目录:
    cd ../../
    sudo mv devstack /opt/stack
    sudo chown -R stack:stack /opt/stack/devstack
    
  • Switch to the user stack:

    sudo su - stack
    
  • View IP address:

    ifconfig
    
  • Creating local.conf file created in the directory devstack

    cd devstack
    vim local.conf
    插入的内容为:
    [[local|localrc]]
    DOWNLOAD_DEFAULT_IMAGES=False
    IMAGE_URLS="http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
    GIT_BASE=http://git.trystack.cn
    NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
    SPICE_REPO=http://git.trystack.cn/git/spice/sice-html5.git
    DATABASE_PASSWORD=admin
    ADMIN_PASSWORD=admin
    SERVICE_PASSWORD=admin
    SERVICE_TOKEN=admin
    RABBIT_PASSWORD=admin
    HOST_IP=192.168.44.131
    disable_service etcd3
    

    HOST_IP here is the above step is the IP address of view

  • run

    FORCE=yes ./stack.sh
    

Fourth, the results

Here Insert Picture Description

  • Open the Firefox browser and enter http://192.168.44.131/dashboard

  • The following screen appears the success
    Here Insert Picture Description
    Username: admin
    Password: password you set

  • After the login screen
    Here Insert Picture Description

  • Wrong words: Clear and then run

    ./unstack.sh
    ./clean.sh
    
  • Error during installation, then basically because of network problems caused by the re-run click on it.

This article reference links: https://blog.csdn.net/hunjiancuo5340/article/details/85005995

Published 16 original articles · won praise 1 · views 554

Guess you like

Origin blog.csdn.net/m0_43455210/article/details/102965043