OpenStack/devstack with Neutron on Ubuntu 14.04
Before installation, we recommend that you install a brand new Ubuntu Server 14.04. If you use the previous Ubuntu, you may encounter various python package dependencies and software version inconsistencies.
- Prepare the environment, create a stack user, grant sudo permissions, and update system software packages.
1 # add user 'stack' 2 sudo su 3 useradd -m -p welcome -s /bin/bash stack 4 # add sudo previledge 5 sudo su 6 # Modify /etc/sudoers 7 cat >>/etc/sudoers <<'EOF' 8 9 stack ALL=(ALL) NOPASSWD: ALL10 Defaults:stack !requiretty11 EOF12 13 exit14 15 16 # Update software respository cache17 sudo apt-get install -y python-software-properties18 sudo add-apt-repository cloud-archive:juno19 sudo apt-get update -y && sudo apt-get dist-upgrade -y20 sudo shutdown -r now
- Download devstack and configure local. conf
# install git download devstack
sudo apt-get install -qqy gitgit clone http://www.github.com/openstack-dev/devstack.gitcd devstacktouch local.confvim local.conf#place following in local.conf, change the HOST_IP and SERVICE_HOST to the IP of eth0[[local|localrc]]HOST_IP=192.168.20.140SERVICE_HOST=192.168.20.140ADMIN_PASSWORD=welcomeDATABASE_PASSWORD=$ADMIN_PASSWORDRABBIT_PASSWORD=$ADMIN_PASSWORDSERVICE_PASSWORD=$ADMIN_PASSWORDSERVICE_TOKEN=$ADMIN_PASSWORDDEST=/opt/stackLOGFILE=$DEST/logs/stack.sh.logSCREEN_LOGDIR=$DEST/logs/screenOFFLINE=FalseRECLONE=TrueLOG_COLOR=Falsedisable_service horizonenable_service q-svcenable_service q-agtenable_service q-dhcpenable_service q-l3enable_service q-metaenable_service neutrondisable_service n-netdisable_service tempestdisable_service h-eng,h-api,h-api-cfn,h-api-cwPHYSICAL_NETWORK=physnet1FIXED_RANGE=192.168.106.0/24FIXED_NETWORK_SIZE=32NETWORK_GATEWAY=192.168.106.1[[post-config|/$Q_PLUGIN_CONF_FILE]][ml2]tenant_network_types = vlan[ml2_type_vlan]network_vlan_ranges = physnet1:100:110[ovs]bridge_mappings = physnet1:br-eth1enable_tunneling = False
- Start and install devstack
# Because git may be block in China, if you cannot access git: This address can be changed to http:
Sed-I's | GIT_BASE:-git: // git.openstack.org | GIT_BASE:-http://git.openstack.org | 'stackrc
cd ~/devstack./stack.sh
- Configure a virtual bridge
#add br-eth1 add connect with eth1sudo ovs-vsctl add-br br-eth1sudo ovs-vsctl --may-exist add-port br-eth1 eth1# set eth1 to promisc mode, so that it can pass any package in L2sudo ip link set dev eth1 promisc onsudo ip addr flush eth1sudo ip link set dev eth1 up
This devstack environment with neutron has been set up. I don't think this process will be smooth. devstack/openstack is often updated, so different problems will occur every day. If you encounter installation problems, you can leave a message to discuss the issue. If there is a problem with the document, please point it out.
The following is a collection of Openstack related knowledge for you to see if you like it:
Install and deploy Openstack on Ubuntu 12.10
Ubuntu 12.04 OpenStack Swift single-node deployment Manual
OpenStack cloud computing quick start tutorial
Deploying OpenStack for enterprises: what should be done and what should not be done
CentOS 6.5 x64bit quick OpenStack Installation
For more details, please continue to read the highlights on the next page: