First, preparation
- Equipment: win10 computer
- Software: VMware Workstation Pro
- Mirroring: Ubuntu-16.04.6-Desktop-AMD64
Second, the virtual machine configuration
- Memory: 4G Processor: 6G
- Network Adapter: NAT mode
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
-
Open the Firefox browser and enter http://192.168.44.131/dashboard
-
The following screen appears the success
Username: admin
Password: password you set -
After the login screen
-
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