Here is a Small Guide For Installing DevStack on Ubuntu 14.04 Server. That Server Instance Can Be Running on OpenStack Itself. It is not for production environment. It is exactly what it sounds – Dev Stack. OpenStack is for production environment. Right now, you can install DevStack in many ways like – All-In-One Single VM, All-In-One Single Machine, Multi-Node Lab, DevStack with Neutron Networking, DevStack with KVM-based Nested Virtualization & Nova and devstack installation. All has official guides, FAQs on OpenStack official website.
Installing DevStack on Ubuntu 14.04 Server : This is All-In-One Single VM
As We are Installing DevStack on Ubuntu 14.04 Server possibly on an instance running on OpenStack itself – it is working like a virtual machine running on localhost. Difference is only on the fact that we are using SSH to connect to the remote server. This way has a basic advantage – you can use OpenStack SnapShot for DevStack – as possibly you are a new OpenStack user, after installation, take a snapshot. An instance with 8 GB RAM is enough to test. Over SSH, there are things running and we need to keep a safe margin with RAM. We saw that, 8 GB RAM gives more stability to work with expected load. Devstack/Havana release supports only till Ubuntu 12.04. We are writing about Trusty’s version. You should not try it on Ubuntu 12.04. All in one :
Installing DevStack on Ubuntu 14.04 Server
We need to write very less :
---
1 | http://docs.openstack.org/developer/devstack/ |
First steps are quite easy :
1 2 3 4 5 6 7 8 | apt-get install python-software-properties apt-get update -y && apt-get upgrade apt-get dist-upgrade git clone https://git.openstack.org/openstack-dev/devstack cd devstack chmod +x stack.sh sh stack.sh # ./stack.sh |
You will be asked to set the password for administration and a few packages like mysql, rabbitmq, etc total for six times; keep all the passwords same if you do not wish to remember small things. This will take a huge time to complete – near around 1 hour or more. The script will download and install and start various services and packages. On localhost the time goes near two hours. If you get this, then all is fine :
1 2 3 4 5 6 7 | Horizon is now available at http://15.0.0.1/ Keystone is serving at http://15.0.0.1:5000/v2.0/ Examples on using novaclient command line is in exercise.sh The default users are: admin and demo The password: password This is your host ip: 15.0.0.1 stack.sh completed in 187 seconds. |
You were in devstack
directory. Do an ls -al
and you will get either of these 3 :
localrc or .localrc or local.conf
If it is dot file, then you can not see on ls. Run a cat against the names :
1 2 3 | cat localrc cat .localrc cat local.conf |
Restarting all the services is with ./rejoin-stack.sh
file. We usually check these things on the localrc
file :
1 2 3 4 5 6 7 8 | 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 neutron enable_service tempest |
again execute ./stack.sh
. If you point your browser towards horizon – http://15.0.0.1/
in our example, you will get the web GUI to login. People fails to understand, where from the cloud-init
came :
1 | http://docs.openstack.org/developer/devstack/guides/single-vm.html |
That is of Ubuntu. We ran that :
1 2 3 | apt-get install python-software-properties apt-get update -y && apt-get upgrade ... |
If we added :
1 | sudo add-apt-repository cloud-archive:juno |
then we had to redirect you here :
1 | https://wiki.ubuntu.com/ServerTeam/CloudArchive |
Canonical™s Ubuntu Cloud archive.
Tagged With devstack ubuntu , install devstack on ubuntu , devstack ubuntu 16 04 , devstack on ubuntu installation , devstack installation on windows , devstack install on ubuntu , devstack install gui , devstack install , devstack all in one ubuntu , devops devstack ubuntu server14