WEEK-08
AIM: Familiarization and usage of the cloud services with open
source cloud tools (OpenStack on Ubuntu).
OpenStack
OpenStack is an open-source cloud computing platform used for building and managing public
and private cloud infrastructures. It provides a suite of software tools to deploy and manage
cloud resources, such as compute power, storage, and networking. OpenStack is widely used by
organizations to create their own cloud environments, enabling on-demand access to virtualized
resources.
Requirements
You will need a single machine whose requirements are:
● physical or virtual machine running Ubuntu 24.04 LTS
● a multi-core amd64 processor ideally with 4+ cores
● a minimum of 16 GiB of free memory
● 100 GiB of SSD storage available on the root disk
Services
● Nova
● Neutron
● Cinder
● Swift
● Glance
● Keystone
● Horizon
● Heat
● Ceilometer
● Aodh
● Barbican
● Magnum
● Ironic
● Trove
● Designate
● Zun
● Cyborg
● Mistral
● Vitrage
● Sahara
Installation steps
1. Update and Upgrade the System using the following command.
apt update -y && apt upgrade -y
2. Next reboot the system using the command.
sudo reboot
3. Create Stack user and assign sudo priviledge
sudo adduser -s /bin/bash -d /opt/stack -m stack
4. Next, run the command below to assign sudo privileges to the user
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
5. Install git and download DevStack
su – stack
sudo apt install git –y
6. Using git, clone devstack’s git repository as shown.
git clone https://git.openstack.org/openstack-dev/devstack
7. Create devstack configuration file
cd devstack
8. Then create a local.conf configuration file.
vim local.conf
9. Enter the following information
[[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 the Note and Exit the text editor
10. Install OpenStack with Devstack
./stack.sh
This confirms that all went well and that we can proceed to access OpenStack via a web browser.
11. Accessing OpenStack on a web browser
To access OpenStack via a web browser browse your Ubuntu’s IP address as shown. https://server-
ip/dashboard This directs you to a login page as shown.