How to Install Openstack using Devstack on Ubuntu 16.04

DevStack is a series of extensible scripts used to quickly bring up a complete OpenStack environment based on the latest versions of everything from git master. It is used interactively as a development environment and as the basis for much of the OpenStack project’s functional testing.

Devstack attempts to support Ubuntu 16.04/17.04, Fedora 24/25, CentOS/RHEL 7, as well as Debian and OpenSUSE.If you do not have a preference, Ubuntu 16.04 is the most tested, and will probably go the smoothest.In the Below Tutorial we are using Ubuntu 16.04.

Step 1 - Create a Ubuntu VM locally on your computer (for example, using VMware Workstation) .

Hardware Requirements of virtual machine -
VM needs at least 4 GB of memory , 
100 GB Hard Disk , 
and access to the Internet .

Step 2 - First we will update our Ubuntu Machine using apt .Type the below comand to update your packages from the Repository.


Step 3 -You can quickly create a separate stack user to run DevStack .

 

Step 4 -  Since this user will be making many changes to your system, it should have sudo privileges .Now we have to give sudo privileges to user "stack" which we have created in previous step.To do so open the stack file using gedit from this location /etc/suoders.d/stack and enter below line in the file.

 

stack ALL=(ALL) NOPASSWD: ALL" 

Step 5 -  Now you need to switch over to use the user stack:


Step 6 - Download Devstack Directory in your System from github using git .



Step 7 -Change to the devstack directory:


Step 8 -You should create a local.conf file in the root of the devstack directory and enter the below lines in the local.conf file. You can use a different password if you prefer and make sure that you use your own IP ADDRESS:


[[local|localrc]]
ADMIN_PASSWORD=PASSWORD
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=SYSTEMS_IP_ADDRESS

This is the minimum required config to get started with DevStack.

Step 9 - Now run the stack script using below command.This process will take 1-2 hours to setup openstack depending on your Internet connection.


Step 10 - At the end of the process you should see output something like this -


Now go to Browser and type IP_ADDRESS and hit enter you can see Openstack Daskboard like this 

Username for the Dashborad is admin and password is which you write in the local.conf file.




1 comment:

Powered by Blogger.