My Blog
Articles related to programming, computer science, technology and research.
05/06/2018 Categories: Cloud. 1 Comment on Openstack Ocata Installation on Ubuntu 16.04



Following are instructions for installing OpenStack (ocata) on Ubuntu 16.04 LTS VM.


When creating Ubuntu VM, the RAM size must be at least 4GB. Otherwise, OpenStack may show errors while installing.


Add user named “stack” using the following command:

sudo useradd -s /bin/bash -d /opt/stack -m stack


Assign no password for the username “stack” using the following command:

echo “stack ALL=(ALL) NOPASSWD: ALL”| sudo tee /etc/sudoers.d/stack


Open “/etc/network/interfaces” using Vim or any other text editor and assign a static IP, by typing the following below “primary network interface”:

iface eth0 inet static   #eth0 changes from system to system


Change current user to “stack” using the following command:

sudo su – stack


Now, install cloud initialization script using the following command:

sudo apt-get install cloud-init


Download Openstack ocata from git using the following command:

git clone -b stable/ocata


If you get a TLS error at the above step, try changing https to http and try again. It worked for me.


Change to “devstack” directory using the following command:

cd devstack


Create a “local.conf” file with the following contents:



This step is optional. Do this only when you encounter error with the next step.

sudo vim /etc/apt/sources.list
Remove all lines which contain “cdrom”


Finally, execute “” file using the following command:



It will take around more than 20 mins based on your internet speed and other factors. For me it took approx. 3 to 4 hours.


After installation is completed, you can see the URL for accessing the horizon dashboard and other information as shown in the image below:


openstack installation completion screen


That’s it! You have installed your own cloud environment using OpenStack. 🙂

1 Comment

You can follow any responses to this entry through the RSS 2.0 feed.

OpenStack is a cloud controller software. Though the community did a nice job at putting together this software, an instance of an OpenStack installation does not make a cloud. As an operator you will be dealing with many additional activities not all of which users see. These include infra onboarding, boostrapping, remediation, config management, patching, packaging, upgrades, high availability, monitoring, metrics,

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll Up