Contrail Testbed
From Xtreemos
(→IP addresses for VMs) |
|||
Line 12: | Line 12: | ||
{| border="1" | {| border="1" | ||
- | |Host || MAC address || IP address | + | |'''Host''' || '''MAC address''' || '''IP address''' |
|- | |- | ||
|xen01.das3.cs.vu.nl || 00:16:3e:00:00:01 || 130.37.197.11 | |xen01.das3.cs.vu.nl || 00:16:3e:00:00:01 || 130.37.197.11 |
Revision as of 16:20, 22 February 2011
The Contrail testbed currently consists of a two DAS-3 machines running Debian (Lenny) Linux and configured for Xen.
Contents |
Testbed machines
- node058.das3.cs.vu.nl
- node059.das3.cs.vu.nl
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 |
xen01.das3.cs.vu.nl | 00:16:3e:00:00:01 | 130.37.197.11 |
xen02.das3.cs.vu.nl | 00:16:3e:00:00:02 | 130.37.197.12 |
xen03.das3.cs.vu.nl | 00:16:3e:00:00:03 | 130.37.197.13 |
xen04.das3.cs.vu.nl | 00:16:3e:00:00:04 | 130.37.197.14 |
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 xen01.das3.cs.vu.nl --mac 00:16:3e:00:00:01 --ip 130.37.197.11 --netmask 255.255.255.0 --broadcast130.37.197.255 --gateway 130.37.197.1 --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 xen01.das3.cs.vu.nl.cfg
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 xen01.das3.cs.vu.nl.cfg -c
To shutdown the domain, use this command from another terminal:
xm shutdown xen01.das3.cs.vu.nl
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 the VM, you can use some images that were already generated. You will find the config files under the /etc/xen
directory, and the image files under the </home/xen</code> directory.