On-demand Infrastructure for Training

OpenNebula can be used to deploy Virtual labs where each student has access to manage its own infrastructure, from a single system to a whole distributed system. The VM encapsulates the installation required for the course.

Architecture

Deployment

In order to deploy the virtual lab, you need to configure the network as described in Howto configure networking.

The next step is to create a master image that will be used as the basis to create each of the machines used in the training session. This image will need to have all the software expected in the computers that will be created for the virtual lab. From this image, different instances of VM can be produced by copying the VM image file.

Whenever you have the master VM configured for your needs you can replicate it and create VM templates for each instance. Each VM template will have two differences from each other:

  • The path to the image to mount the VM disk
  • The MAC address. Remember to change MAC addresses so each machine will have an unique IP.

Say you want to create 10 laboratories virtual computer. You will need then ten different copies from the master VM and 10 different VM templates, let's call them VLPostXX.template, with XX from 1 to 10. In order to start them up, use the onevm command with the submit option:

$ onevm create VLPostXX.template

Repeat the above 10 times changing the XX placeholder with the appropriate numbers. You will know the IP addresses from the network configuration.

You will just then need to provide your alumni with the common username/password and their corresponding IP.