My Blog
Articles related to programming, computer science, technology and research.

05/06/2018 Categories: Cloud. No Comments 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 […]

openstack

 

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
address 10.253.0.50
netmask 255.255.255.0
gateway 10.253.0.1
dns-nameservers 8.8.8.8 8.8.4.4

 

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 https://git.openstack.org/openstack-dev/devstack -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:

‘[[local|localrc]]’
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password

 

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 “stack.sh” file using the following command:

./stack.sh

 

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. 🙂

Related Links:

Leave a Reply

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

Scroll Up