Network Emulator for Mobile Universes

Documentation - Virtual Hosts (VHost)

A VHost represents a QEMU virtual machine and its configuration.

VHost(name, conf, hds, nics, qemu, **opts)

This function creates a new virtual host in the current session.
name is the name of the host, two elements cannot share the same name.
conf is the name of a common host configuration (please refer to the next function) (default: None).
hds is a list of hard drives which will be used by the host (default: empty list).
nics is a list of network interface cards which will be used by the host (default: empty list).
qemu is the name of the QEMU executable (default: qemu-system-x86_64).
opts are other arguments of QEMU. (arg=val in opts will become -arg val for QEMU).

Events of a virtual node are logged in symlink.{session name}/node/{node name}.

VHostConf(name, qemu, **opts)

A VHostConf is a common configuration applied to several virtual hosts in order to reduce the duplication of code. A VHost can use a VHostConf and also adds extra configurations in the same time.
Here is an example:

VHostConf("com", cdrom="/tmp/debian7.iso",
          cpu="core2duo", m=1024, boot="d")
VHost("alice", conf="com")
VHost("bob", conf="com", cdrom="/tmp/fedore25.iso")


Deletes several virtual nodes (host or router) and their components of the session. If not any name is given, all virtual nodes will be deleted.