Version 8 (modified by Ted Faber, 12 years ago) (diff)


Benito has been designed from the ground up to support multiple virtualization platforms. The interface for plugging new virtualization platform into Benito is described here.

It is useful to refer to Pipeline, as this document will refer to various points in the pipeline where your scripts must be called.


All networking internal to a containerized experiment is done using VDE (Virtual Distributed Ethernet). If your virtualization platform natively supports VDE, your life is relatively easy. If not, plugging in should still be possible.

Networking configuration can be found in the following places:

  • TopDL: IP address, netmask, MAC address, VDE switch/port
  • /var/benito/config/route/$HOSTNAME: routes

Each interface on the experimental network will be assigned a VDE switch and port number. If your platform supports VDE natively, then you're done!

For platforms that do not have VDE support, TAP support is sufficient. vde_plug2tap acts as an adapter between a VDE switch port and a TAP interface. VDE also comes with vde_tunctl which can create TAP interfaces on the fly to be used by other apps.

The following example illustrates how one might do this with QEMU. QEMU has native VDE support, but we'll assume for a moment that we can't use it.



vde_tunctl tap0
vde_plug2tap -d -s $SWITCH_SOCKET -p $SWITCH_PORT tap0
qemu -net nic -net tap,ifname=tap0 fs.img

If you don't even have TAP support.. get creative. Chances are if you can talk to a file descriptor pair vde_plug will work for you.

Interface Attributes

The info you care about will be attributes on each interface.

  • ip4_address
  • ip4_netmask
  • benito:mac_address
  • benito:vde_switch (switch socket full path)
  • benito:vde_port (switch port)


Route information is in /var/benito/config/route/$HOSTNAME. We provide a script for automatically setting up routes:

/var/benito/launch/ /var/benito/config [$HOSTNAME]

The hostname parameter is optional and will be auto-detected if it is not provided.

Control Net

FOREWORD: Control net bridging is currently a hack. It makes a lot of assumptions about the underlying platform (i.e., qemu) and many aspects of this are baked into the code. Best of luck..

You'll probably want to bridge onto the control net if that makes sense for your platform. If you see yourself wanting to SSH to a VM running on your platform, this is for you.

Due to DETER's controlnet separation, you must explicitly request IPs/MACs from boss. The setup script setup/ handles these requisitions. You'll need to hack this file a bit. Sorry!

On pnodes which host vnodes, the controlnet interface is bridged with TAP controlnet interfaces of its children. The bridge is brought up by launch/qemu/ This script is currently tailored to QEMU. To support new VM infrastructure this will need to be hacked on.

File Systems

Guest OSes expect to be able to read:

  • /users
  • /proj
  • /groups
  • /share

If your system can directly access parts of the host file system then you're done! For an example of this, see view-os lightweight processes.

If not, you should probably use the npfs implementation currently being used by qemu. The npfs server is launched from launch/qemu just before inner-nodes are booted. This will likely need to move to a more general location.

Linux 9P support is excellent starting from the 2.6.20's series. Here's an example fstab entry, assuming the host machine's IP is /users 9p _netdev,aname=/users 0 1

For more bread crumbs look in setup/qemu/ and setup/qemu/ (look for 'fstab' in the latter).

Site Configuration

The site configuration file is an attribute value pair file parsed by a python ConfigParser that sets overall container parameters. Many of these have legacy internal names.

Acceptable values (and their DETER defaults) are:

The IRC server used as a backend coordination service for grandstand. Will be replaced by MAGI. Default:
Port that third party applications can contact grandstand on. Will be replaced by MAGI. Default: 4919
Default image used by qemu containers. Default: http://scratch/benito/pangolinbz.img.bz2
Base URL of the DETER web interface on which users can see experiments. Default:
Hardware used by containers. Default: pc2133,bpc2133,MicroCloud
Host and port from which to request experiment creation. Default:
OSID to request for qemu container nodess. Default: Ubuntu1204-64-STD
Root of the directory tree holding containers software and libraries. Developers often change this. Default: /share/containers
OSID to request for openvz nodes. Default CentOS6-64-openvz
Location to load the openvz template from. Default: %(exec_root)s/images/ubuntu-10.04-x86.tar.gz
True if switched containers (see below) should do traffic shaping in the VDE switch that connects them. Default: true
A list of the containers that are networked with VDE switches. Default: qemu,process