Ex No6-1
Ex No6-1
Install openstack and use it as a service and use technology own cloud
Minimum Requirements
To start off, log into your Ubuntu 18.04 system using SSH protocol and update & upgrade
system repositories using the following command.
Sample Output
sudo reboot
OR
init 6
1
Step 2: Create Stack user and assign sudo priviledge
Best practice demands that devstack should be run as a regular user with sudo privileges.
With that in mind, we are going to add a new user called “stack” and assign sudo privileges.
To create stack user execute
Next, run the command below to assign sudo privileges to the user
Sample Output
Once you have successfully created the user ‘stack’ and assigned sudo privileges, switch to
the user using the command.
su - stack
In most Ubuntu 18.04 systems, git comes already installed. If by any chance git is missing,
install it by running the following command.
Sample output
2
Sample output
cd devstack
vim local.conf
[[local|localrc]]
ADMIN_PASSWORD=StrongAdminSecret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=10.208.0.10
1. The ADMIN_PASSWORD is the password that you will use to log in to the
OpenStack login page. The default username is admin.
2. The HOST_IP is your system’s IP address that is obtained by running ifconfig or ip
addr commands.
3
Step 5: Install OpenStack with Devstack
To commence the installation of OpenStack on Ubuntu , run the script below contained in
devstack directory.
./stack.sh
The deployment takes about 10 to 15 minutes depending on the speed of your system and
internet connection. In our case, it took roughly 12 minutes. At the very end, you should see
This confirms that all went well and that we can proceed to access OpenStack via a web
browser.
4
Step 6: Accessing OpenStack on a web browser
Enter the credentials and hit “Sign In” You should be able to see the Management console
dashboard as shown below.
Conclusion
By following the above steps, we have Installed openstack and use it as a service and use
technology own cloud