Creating a sandbox server for running the Openstack Network Neutron services is easy using VirtualBox and Vagrant. VirtualBox gives us the ability to spin up virtual machines and networks without affecting the rest of our working environment and is freely available for Windows, Mac OSX, and Linux. Vagrant allows us to automate this task, meaning we can spend less time creating our test environments and more time using OpenStack.
A Vagrant is installable using Ubuntu’s package management. This test environment can then be used for the rest of this section.
It is assumed that the computer you will be using to run your test environment in, has enough processing power that has hardware virtualization support (for example, Intel VT-X and AMD-V support) with at least 8 GB RAM. Our nested virtual machines will require virtual RAM, so more physical RAM will help our virtual machines run much better.
To begin with, ensure that VirtualBox and Vagrant are installed and networking set up as described in Creating a Sandbox Environment With Virtual And Vagrant recipe of Keyston Openstack Identity Service:
To create our sandbox server for running OpenStack Network within VirtualBox we will use Vagrant to define another virtual machine that allows us to run Open vSwitch and supporting Neutron services. This virtual machine, that we will refer to as the OpenStack Network node, will be configured with at least 1 GB RAM, 1 CPU and 20 GB of hard drive space and have four network interfaces. The first will be a NAT interface that allows our virtual machine to connect to the network outside of VirtualBox to download packages. The second interface will be the Management interface of our OpenStack Network host, the third interface will be for our Data network that Neutron uses for transit of data for the software-defined networking, and the fourth interface will be used for routing outside of our virtual environment.
Carry out the following steps to create the virtual machine with Vagrant that will be used to run Open vSwitch and Neutron services:
vagrant up network
Congratulations! We have successfully created the VirtualBox virtual machine running Ubuntu 12.04, which is able to run OpenStack Network.
What we have done is created a virtual machine within VirtualBox by defining it in Vagrant. Vagrant then configures this virtual machine, based on the settings given in the Vagrantfile configuration file in the directory, which will store and run our VirtualBox VMs. This file is based on Ruby syntax, but the lines are relatively self-explanatory. We have specified the following:
We then launch this VirtualBox VM using Vagrant using the following simple command:
vagrant up network
There are a number of virtualization products available that are suitable for trying OpenStack, for example, VMware Server, VMware Player, and VMware Fusion are equally suitable.
Get Updates on Tech posts, Interview & Certification questions and training schedules