Setup a DHCP server on the host (optional, to be skipped by our testbed or image users)

If you want to install a DHCP server on the host you can use the package dnsmasq.

Instructions:

  1. Install the packet dnsmasq (apt-get update, apt-get install dnsmasq).
  2. Open with an editor the file /etc/dnsmasq.conf. Remember to use sudo if you are not root (e.g. sudo vi, sudo nano, sudo gedit).
  3. Look for the "interface=" line; once found, decomment it if necessary (i.e. remove "#" at the line start) and change it in this way:
interface=tap0
  1. Look for the line "dhcp-range", and change it in this way:
dhcp-range=10.0.0.100,10.0.0.200,255.255.255.0,12h

(should you know more about the features of the dhcp and the syntax of commands digit man dnsmasq).

  1. Decomment or add the line:
dhcp-sequential-ip
  1. (Re)start the service:
sudo service dnsmasq restart

Testbed configuration (to be skipped by our testbed users)

Steps to be done when creating a NEW testbed, to allow its VMs to be linked to the control network (in our pre-configured testbed all these steps have already been done for you, this is why you must skip them, unless you do not want to add a new VM or when adding a new VM):

  1. Add to each Virtualbricks project (i.e. a testbed) the brick SwitchWrapper
  2. Write this path: /var/run/switch/sck in the SwitchWrapper configuration interface
  3. Reserve the first NIC of each VM to the control network and link it to this switch.
  4. If in your image the first NIC is configured to receive a dynamic IP address from the DHCP, use this address to log into your VM; once logged, you can set a static address instead of the dynamic one, if you prefer. Alternatively, (e.g. if you want to skip the DHCP setup), you can do the same by means of the graphical interface of the VM (if disabled you can enable it from the Virtualbricks "configuration" menu, "system" tab).
  5. If you use one of our images, the first NIC is configured with a static IP address, 10.0.0.10, to skip the use of the DHCP. This default address must be immediately changed at first use, to avoid IP conflicts. The procedure is the following: switch on only one new VM at a time; once on, log into it via ssh by using the default address (or the graphical interface); change the static address and reboot; repeat the same for all remaining VMs.

The SwitchWrapper can be used as another switch.

Help

For help ,or further information write to:

f.apollonio [AT] ldlabs [DOT] org