Virtual machine software: VMware Workstaion12
Operating system: Ubuntu14.04
1, modify the Ubuntu14.04 apt source for the domestic Ali:
CP/etc/apt/sources.list/etc/apt/Sources.list.backVI/etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/raring main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/raring-security main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/raring-updates main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/raring-proposed main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/raring-backports main restricted universe multiverseDeb-SRC http://mirrors.aliyun.com/ubuntu/raring main restricted universe multiverseDeb-SRC http://mirrors.aliyun.com/ubuntu/raring-security main restricted universe multiverseDeb-SRC http://mirrors.aliyun.com/ubuntu/raring-updates main restricted universe multiverseDeb-SRC http://mirrors.aliyun.com/ubuntu/raring-proposed main restricted universe multiverseDeb-SRC http://mirrors.aliyun.com/ubuntu/raring-backports main restricted universe multiverse
Note: The W:unknown multi-arch type ' no ' for package ' Compiz-core ' indicates that the Ubuntu version does not match the APT version, so upgrade the apt version.
Install -F APT
To configure a DNS server:
vi /etc/8.8. 8.8 8.8. 4.4
Update the software source and software:
apt-get updateapt-get upgrade
2. Configure the network interface:
vim/etc/network/192.168. 213.131 255.255. 255.0 192.168. 213.2 DNS 192.168. 213.2
3. Install Pip and modify the PIP Source:
Install python-pipmkdir ~/. PipVI ~/.pip/pip.conf
Add to
[global]index-url = http://pypi.douban.com/simple/trusted-host = pypi.douban.com
4. Install git:
Install git
5. Download Devstack:
git clone http://git.trystack.cn/openstack-dev/devstack.git-b stable/ocata
6. Create a stack User:
Devstack/tools/create-stack-user. SH mv devstack/opt/stackchown -R stack:stack/opt/stack/devstack
7. Switch to the stack user and modify the PIP Source:
su Stack mkdir ~/. PipVI ~/.pip/pip.conf
Add to
[global]index-url = http://pypi.douban.com/simple/trusted-host = pypi.douban.com
8. Set the Devstack configuration file:
cd/opt/stack/DevstackVIlocal.conf
[[Local|LOCALRC]] # Credentials Admin_password=Admin Mysql_password=Secret Rabbit_password=Secret Service_password=Secret Service_token=abcdefghijklmnopqrstuvwxyz# use trystack git mirrorgit_base=http://git.trystack.cnNovnc_repo=http://Git.trystack.cn/kanaka/novnc.gitSpice_repo=http://Git.trystack.cn/git/spice/spice-html5.githost_ip=192.168.213.131
# Define images to be automatically downloaded during the Devstack built process. Download_default_images=Falseimage_urls=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
# only support IP v4service_ip_version=4# only support Keystone V2ENABLE_IDENTITY_V2=True
#not Create default Networkneutron_create_initial_networks=false# instead of default Networkfloating_range="192.168.213.0/24"Fixed_range="10.0.0.0/24"Q_floating_allocation_pool=start=192.168.213.132, end=192.168.213.150Public_network_gateway="192.168.213.2"
# Brancheskeystone_branch=stable/Ocatanova_branch=stable/Ocataneutron_branch=stable/Ocataswift_branch=stable/Ocataglance_branch=stable/Ocatacinder_branch=stable/Ocata
# Enabling Neutron (Network) servicedisable_service n-Netenable_service Q-Svcenable_service Q-Agtenable_service Q-Dhcpenable_service Q-L3enable_service Q-Metaenable_service Q-meteringenable_service neutron# VLAN configuration. Q_plugin=Ml2enable_tenant_vlans=Truetenant_vlan_range=1100:2999
#LoggingLOGFILE=/opt/stack/logs/stack.SH. Logverbose=Truelog_color=Truescreen_logdir=/opt/stack/Logs
# work Offline#offline=true# Reclone each TimeReclone=no
9. Start Deployment:
./stack. SH
If the installation fails, execute the./unstack.sh script and the./clean.sh script, and repeat the previous step.
This article is for Bo Master original article, without permission not reproduced. Reprint Please specify source: https://www.cnblogs.com/lijinze-tsinghua/
All-in-one deploying OpenStack on Ubuntu Systems