Install OpenStack step by step guide

By: Sheldon Printer Friendly Format    

If you have a spare Server or a PC that you want to use and try out OpenStack, then you have come to the perfect step by step guide tutorial. If it is a bare metal, then you should first install a fresh Ubuntu 16.04 or later in that server before you proceed.

useradd -s /bin/bash -d /opt/stack -m stack
passwd stack
// set passwords

echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers sudo apt-get install git -y

git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
./stack.sh

Once you run this, prepare to wait for atleast an hour or more depending on your internet bandwidth. Dont leave the machine to go for coffee yet, as you will be prompted for creating passwords for the below services.

Enter a password now:
dbpassword

################################################################################
ENTER A PASSWORD TO USE FOR RABBIT.
################################################################################
This value will be written to /opt/stack/devstack/.localrc.password file so you don't have to enter it
again. Use only alphanumeric characters.
If you leave this blank, a random default value will be used.
Enter a password now:
rabbitpw

################################################################################
ENTER A SERVICE_PASSWORD TO USE FOR THE SERVICE AUTHENTICATION.
################################################################################
This value will be written to /opt/stack/devstack/.localrc.password file so you don't have to enter it
again. Use only alphanumeric characters.
If you leave this blank, a random default value will be used.
Enter a password now:
servicepw

################################################################################
ENTER A PASSWORD TO USE FOR HORIZON AND KEYSTONE (20 CHARS OR LESS).
################################################################################
This value will be written to /opt/stack/devstack/.localrc.password file so you don't have to enter it
again. Use only alphanumeric characters.
If you leave this blank, a random default value will be used.
Enter a password now:
horizonpw

Now, after thi stage, you CAN go for a coffee and leave the installation to continue. It will probabaly run for quite a while without needing any inputs from you. If your internet connection is slow, it will take even longer. This is when it is downloading and installing all the components of the OpenStack solution and their dependencies.

After completion of the script execution you will see

congratulations :)

Well, congrats indeed. You have sucessfully installed OpenStack in your server. Now you can accesst http://192.168.1.201 (or the IP of your server) to access the OpenStack dashboard. Enjoy !!!





Most Viewed Articles (in Cloud )

Latest Articles (in Cloud)

Comment on this tutorial