Install Devstack on Ubuntu 22.04

DevStack is an easy way to quickly bring up a complete OpenStack environment based on the latest versions of everything from git master. Devstack installation is suitable on baremetal as well as inside virtual machine. The source is available at https://opendev.org/openstack/devstack.

Quick steps to install Devstack on Ubuntu 22.04 (Jammy)


1. Create stack user, change permission and add sudo privileges
sudo useradd -s /bin/bash -d /opt/stack -m stack
sudo chmod +x /opt/stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo -u stack -i
2. Download Devstack
git clone https://opendev.org/openstack/devstack
cd devstack
3. Create a local.conf file. Add below content in local.conf file and save it.
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
4. Start the install
./stack.sh

This will take approx 15-20 minutes to install devstack. At the end, installation script will display the login URL for horizon dashboard. e.g. sample output will be similar to pasted below.

This is your host IP address: 192.168.1.47
This is your host IPv6 address: fe80::96bf:137a:c0d0:9bdc
Horizon is now available at http://192.168.1.47/dashboard
Keystone is serving at http://192.168.1.47/identity/
The default users are: admin and demo
The password: ******

Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html


DevStack Version: yoga
OS Version: Ubuntu 22.04 jammy

2021-01-01 01:10:11.110 | stack.sh completed in 1140 seconds.

Click on Horizon link from output. Enter user either “admin” or “demo”. Use password stored in local.conf file. 

Congratulations !!!  Devstack installed successfully and ready to use.

Leave a Comment

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

Scroll to Top