Following are instructions for installing OpenStack (ocata) on Ubuntu 16.04 LTS VM.
When creating Ubuntu VM, the RAM size must be at least 4GB. Otherwise, OpenStack may show errors while installing.
Add user named “stack” using the following command:
sudo useradd -s /bin/bash -d /opt/stack -m stack
Assign no password for the username “stack” using the following command:
echo “stack ALL=(ALL) NOPASSWD: ALL”| sudo tee /etc/sudoers.d/stack
Open “/etc/network/interfaces” using Vim or any other text editor and assign a static IP, by typing the following below “primary network interface”:
iface eth0 inet static #eth0 changes from system to system
dns-nameservers 184.108.40.206 220.127.116.11
Change current user to “stack” using the following command:
sudo su – stack
Now, install cloud initialization script using the following command:
sudo apt-get install cloud-init
Download Openstack ocata from git using the following command:
git clone https://git.openstack.org/openstack-dev/devstack -b stable/ocata
If you get a TLS error at the above step, try changing https to http and try again. It worked for me.
Change to “devstack” directory using the following command:
Create a “local.conf” file with the following contents:
This step is optional. Do this only when you encounter error with the next step.
sudo vim /etc/apt/sources.list
Remove all lines which contain “cdrom”
Finally, execute “stack.sh” file using the following command:
It will take around more than 20 mins based on your internet speed and other factors. For me it took approx. 3 to 4 hours.
After installation is completed, you can see the URL for accessing the horizon dashboard and other information as shown in the image below:
That’s it! You have installed your own cloud environment using OpenStack. 🙂