Table of Contents
This guide provides a clear, practical overview of steps to install openstack on Ubuntu 18.04 using devstack, with useful context, important details, and straightforward takeaways for everyday readers.
You can seamlessly install OpenStack locally on your Ubuntu 18.04 instance for learning and testing purposes using Devstack.
Devstack is a set of extensible scripts that facilitate OpenStack deployments. In this tutorial you will learn how to deploy OpenStack on Ubuntu 18.04 using devstack.
Minimum requirements
Before you get started, make sure you have the following minimum prerequisites:
- Fresh Ubuntu 18.04 installation
- User with sudo . privileges
- RAM 4GB
- 2 vCPU
- Hard drive capacity 10GB
- Internet connection
With the minimum requirements met, you can now continue with the steps below.
How to Install OpenStack on Ubuntu 18.04 Using DevStack
Step 1: Update and upgrade the system
To get started, log in to your Ubuntu 18.04 system using SSH protocol, and update and upgrade the system repositories with the following command:
apt update -y && apt upgrade -y
Sample output:
System updates and upgrades
Next, reboot the system with the command:
sudo reboot
Or:
init 6
Step 2: Create a Stack user and assign sudo . privileges
Best practice requires that devstack be run with a regular user account with sudo privileges.
Therefore, the article will add a new user called "stack" and specify sudo privileges.
To create a stack user, execute the command:
sudo adduser -s /bin/bash -d /opt/stack -m stack
Next, run the command below to assign sudo privileges to the stack user:
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
Sample output:
Create a Stack user and assign sudo quy?n privileges
Step 3: Install git and download DevStack
Once you have successfully created the stack user and specified sudo privileges, switch to this user using the command.
su - stack
In most Ubuntu 18.04 systems, git comes pre-installed. If by chance git is missing, install it by running the following command:
sudo apt install git -y
Sample output:
Install git
Using git, clone (clone) Devstack's git repository as shown.
git clone https://git.openstack.org/openstack-dev/devstack
Sample output:
Download DevStack
Step 4: Create Devstack configuration file
In this step, navigate to the devstack directory:
cd devstack
Then create the local.conf configuration file :
vim local.conf
Paste the following content:
[[local|localrc]] # Password for KeyStone, Database, RabbitMQ and Service ADMIN_PASSWORD=StrongAdminSecret DATABASE_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD # Host IP - get your Server/VM IP address from ip addr command HOST_IP=10.208.0.10
Save and exit the text editor.
Note :
1. ADMIN_PASSWORD is the password that you will use to login to the OpenStack login page. The default username is admin .
2. HOST_IP is the system IP address obtained by running the ifconfig or ip addr commands .
Step 5: Install OpenStack with Devstack
To start installing OpenStack on Ubuntu 18.04, run the script below found in the devstack folder.
./stack.sh
The following features will be installed:
- Horizon – OpenStack Dashboard
- Nova – Compute Service
- Glance – Image Service
- Neutron – Network Service
- Keystone – Identity Service
- Cinder – Block Storage Service
- Placement – ??Placement API
The deployment process takes about 10 to 15 minutes depending on your system speed and Internet connection. In the example case, it took about 12 minutes.
At the end you will see output similar to what the article has below.

This confirms that all is going well and that OpenStack can be continued to be accessed through a web browser.
Step 6: Access OpenStack on a web browser
To access OpenStack via a web browser, browse for your Ubuntu IP address as shown.
https://server-ip/dashboard
This directs you to a login page as shown below:

Enter your login information and press Sign In.
You should be able to see the Management panel as shown below.

Hope you are succesful.
Key Takeaways
Use the information above as a practical reference for steps to install openstack on Ubuntu 18.04 using devstack. Review each step carefully, confirm any requirements, and choose the option that best fits your situation.
FAQ
What does this guide explain about Steps to Install Openstack on Ubuntu 18.04 Using Devstack?
It explains the main concepts, practical considerations, and useful steps related to steps to install openstack on Ubuntu 18.04 using devstack without requiring advanced knowledge.
Who can benefit from learning about Steps to Install Openstack on Ubuntu 18.04 Using Devstack?
This information is useful for readers who want a clear overview, practical guidance, and reliable steps related to steps to install openstack on Ubuntu 18.04 using devstack.
What should I check before applying this information?
Review the requirements, confirm that your device, software, or situation matches the instructions, and back up important data before making major changes.
Reader Comments 0
Sign in with email or Google to join the discussion.