Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Sorecchione07435/f658775f7f7993716bf6fc85b6830aa2 to your computer and use it in GitHub Desktop.

Select an option

Save Sorecchione07435/f658775f7f7993716bf6fc85b6830aa2 to your computer and use it in GitHub Desktop.
Preinstalled OpenStack VirtualBox Image

Preinstalled OpenStack VirtualBox Image

An image with CentOS 7 and OpenStack pre-installed that can be imported directly from VirtualBox

Description

This is a ready-made virtual machine with CentOS7 operating system installed with OpenStack deployed, and can be used to indulge yourself in creating instances, volumes, images, whatever you want, the performance of the instances varies by how much RAM and CPU are allocated to the VM

Port forwarding is already configured

257071578-cac13d54-3108-44e7-a5c4-8e6f51f8f982

The Cirros image is already uploaded

257070636-db394333-150c-4bd1-8541-a183ddcff61c

Minimum requirements:

  • The last VirtualBox 6.1.44
  • A 64-bit processor with hardware assisted virtualization enabled
  • 6 GB of RAM (4GB of RAM is pretty good)
  • 4 Cores (2 Cores is pretty good)
  • Nested Virtualization Enabled (Optional) (Increase the performance of instances running inside the VM)

For best performance it is recommended to make these settings on the VM:

Recommended Requirements:

  • The last VirtualBox 6.1.44
  • A 64-bit processor with hardware assisted virtualization enabled
  • 8 GB of RAM
  • 8 Cores
  • Nested Virtualization Enabled

How to Import Virtual Machine to VirtualBox

  1. First go below page and download the OVA which is on the link of Google Drive

  2. After download open VirtualBox and click on "File > Import Appliance..."

  3. Select the OVA file you downloaded earlier

  4. Then go to configure the VM to import by assigning the amount of RAM and CPU you want, above the page you can find all the requirements and choose how much to allocate

  5. When you have configured everything click on "Import" and waiting for a while your VM will be imported, it is recommended to start the VM using the headless boot

The following VM with CentOS 7 installed contains two users:

Controller and OpenStack Credentials

The root password is openstack, openstack account password is openstack

And the credentials to access the Horizon Dashboard are: Username is admin and password is openstack

How to enable nested virtualization

  1. Open Windows Powershell as Administrator
  2. Access the folder where VirtualBox is installed cd C:\Program Files\Oracle\VirtualBox
  3. And run this command to enable nested virtualization .\VBoxManage modifyvm centos-openstack --nested-hw-virt on

Access to OpenStack

First of all check that the IP address of the machine is 10.0.2.15

Using the command ifconfig Before accessing the OpenStack Dashboard, make sure that all OpenStack services have started

To access the OpenStack dashboard, enter this link in any browser: http://localhost:8888/

And waiting a few moments if everything went well you will have to see the OpenStack login page

257070942-d97226ee-5af0-4f58-a264-dcf6e42441a4

If the Apache2 service is started but the dashboard still does not appear, it could be port 8888 blocked by the firewall, or port forwarding is not working correctly

Connect to the VM with SSH

Open any SSH connection program like PuTTY, and enter on IP Address or Hostname enter localhost and as port 2222

PuTTY Example:

257071478-7ae11de8-0657-4566-94c8-33b0648e4e8f

OpenStack Image Information:

  • OS: CentOS 7
  • OpenStack Release: Train

Download the Image

Now you can finally download the image, If you are interested in this image you can click the link below to download it:

Download The Preinstalled OpenStack VirtualBox Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment