Setup DevStack in VirtualBox

DevStack in Oracle-VirtualBox The easy way.

Shuvam Kumar
4 min readMay 5, 2020

Pre build Devstack installation using an ova file. Download Virtualbox Version 6.0.x and above: https://www.virtualbox.org/wiki/Downloads A Pre-installed Openstack ubuntu 18 LTS x64 image that can be directly imported onto VirtualBox. You can literally setup and test Openstack in under 10 minutes. There’s no need to install Openstack using ubuntu image. This VirtualBox (.ova) image does all that is needed.

Preface:

I have spent hours setting up every solution out there to test Openstack. None of them are actually easy considering the heavy PC requirements and the time taken to build the Openstack modules from scratch. This solution would absolutely remove the hassle of installing Openstack, before being able to test it out. This solution does not require you to install any other application other than VirtualBox on your PC/Laptop. Openstack uses a lot of CPU and Memory resources. Please ensure that all your other applications have been saved/closed before running this VM.

This method uses a pre-installed Openstack binary. These binaries are installed on an IP address: 10.0.2.15, which is the default NAT IP that VirtualBox assigns a new machine using a NAT Adapter.

Minimum Requirements:

  • x64 compatible PC/Laptop that supports x64 compatible Virtual hosts
  • Latest VirtualBox (6.0.x preferable) application installed on your PC/Laptop
  • Atleast 20 GB Hard Drive space
  • 6 GB RAM (I used 8 GB)
  • 4 CPU cores (Quad Core)

Note: You can always increase the RAM, Hard Disk space and the CPU Cores based on your Openstack requirements. Higher configuration is required for running Virtual instances within Openstack smoothly.

Download the Devstack-Ubuntu compressed VirtualBox OVA Image from: Click On this Drive link

Installation Instructions:

  1. Download and Extract the zip file onto “VirtualBox VMs” folder located under your C:/Users/ folder in your PC.
  2. Open VirtualBox application and import the contents of the zip file (Using File -> Import Appliance). You should see a Appliance to import, put the path of the ova file from step 1.

3. Click on Next and Import. Hurray you did all necessary steps, just check your vm settings.

5. Quit all other applications running in your laptop/PC. Only then run this VM. The preset settings require you have a quad core x64 PC along with 6GB ram at least. Trust me, this isn’t enough for Openstack still.

6. Ensure that the Devstack-ubuntu -> Settings page does not have any invalid settings. Also ensure that the following configurations are properly in-place:

VM Settings:

a. Under Settings -> USB (turn off USB controller) if it shows up as invalid settings. Adjust your RAM to be at or below 80 % of your actual PC’s Memory capacity.

b. Under devstack-ubuntu -> Settings -> Network, Check if the NAT Adapter is enabled. Ensure that your PC/Laptop running the VirtualBox application has internet connectivity.

c.Under devstack-ubuntu -> Settings -> Network -> Adapter 1 (NAT), Click the “Port Forwarding” button and check if the following Port Forwarding options are in-place, else configure them.

d. Under devstack-ubuntu -> Settings -> Network -> Enable Adapter 2 -> Adapter 2 (Host-Only Adapter)

e. Check the Configuration page of your devstack-ubuntu VM. It should more-or-less be having the following settings:

Now start the VM. Let it load. Use the following PC credentials:

username: openstack

password: openstack

My Adapter 1 ip — 10.0.2.15 My Adapter 2 ip — 192.168.56.114 This May change depending on Your DHCP present in Files -> Host-Manager. Change the dashboard accordingly.

This may not work properly if you get any other IP than 10.0.2.15. From your PC/Laptop’s browser you should access the following website: http://192.168.56.114/dashboard

Note: Openstack components may take 5–10 minutes to load once the VM has booted up and IP has been configured. Please wait a few minutes or refresh the browser’s page if you do not see the Openstack horizon web interface as soon as you put them in your browser for the first time.

Openstack’s horizon web dashboard should appear with login credentials screen appearing first.

The credentials are:

username: admin

password: openstack

This should take to your Openstack console, where you can experiment with Openstack.

Try to open an ssh terminal from the host PC/Laptop’s Putty or ssh client.

Use the command: ssh openstack@192.168.56.114 -p 22

If you cannot access the VM’s ssh console, then the Host-only Adapter Port is not working properly.

Cheers trying out Openstack, the hassle-free way!

Let me know if you have improvements.

--

--