Contrail Testbed

From Xtreemos

Revision as of 16:30, 22 February 2011 by Cstratan (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

The Contrail testbed currently consists of a two DAS-3 machines running Debian (Lenny) Linux and configured for Xen.


Testbed machines


IP addresses for VMs

Currently we can start up to 4 VMs with public IP addresses. We also have DNS domain names associated with these addresses. Here are the allocated IP addresses, MAC addresses and DNS names:

Host MAC address IP address 00:16:3e:00:00:01 00:16:3e:00:00:02 00:16:3e:00:00:03 00:16:3e:00:00:04

You can use these settings to configure your VM images.

Rebooting the machines

Grub is configured on these machines to start by default the regular Linux kernel. If you want to reboot them with the Xen-enabled kernel, run this command:

grub-reboot 0

Creating your own VM images

If you want to experiment with your own VM, you first have to create an image. A sample command for doing this is the following:

xen-create-image --output /home/cstratan --hostname --mac 00:16:3e:00:00:01 --ip --netmask --broadcast130.37.197.255 --gateway --dist lenny --dir /home/cstratan

Note: Be careful to change the --output and --dir arguments, because otherwise you might overwrite the images created by other users.

After this command, there will be a configuration file named created in the directory you specified with the --output argument. Also, the image files for this domain will be created under the directory specified with the --dir argument (in a subdirectory named domains).

In order to be able to connect with the console to your VM, edit the configuration file and add the following line:

extra = 'console=hvc0 xencons=tty'

Now you can start your VM (and use its console) with the following command:

xm create -c

After the VM boots, you will get a console where you will be able to login as root, without a password (of course you might want to change that).

To shutdown the domain, use this command from another terminal:

xm shutdown

If you want to be able to connect with ssh to your VM, install udev (from the console) and then restart the VM:

apt-get install udev

Using the existing VM images

If you just want to try starting a VM with xm create, you can use some images that were already generated. You will find some config files under the /etc/xen directory, and the image files under the /home/xen directory.

Personal tools