wiki:GeniTmixTutorial

Version 39 (modified by Ben Newton, 7 years ago) (diff)

--

Using Tmix on GENI

This page describes how to run experiments with Tmix on GENI nodes. This tutorial assumes that you are already familiar with basic experimentation with GENI, and that you have access to some version of Linux/Unix running on a PC or virtual machine. We also assume basic familiarity with Linux/Unix.

1 Reserve Resources in Omni or GENI Portal

Determine whether you wish to use Omni or GENI Portal to reserve GENI resources for this Tutorial. We recommend you use GENI Portal, unless you are experienced with, or wish to gain experience with Omni. Click one of the links below that matches your choice.

Reserve Resources using GENI Portal

Reserve Resources using Omni

2 Login to nodes

We suggest you now open two new terminal windows, one for each node. To log into the nodes reserved in the previous step issue the following command for each node in one of the new windows.

ssh -i ~/.ssh/geni_key <username>@<hostname>

As expected, <username> should be replaced with your GENI username, and <hostname> is replaced with the hostname noted in the previous step.

It will take several minutes (likely around 7 minutes) for the requested hosts to be imaged, and fully boot. If you are unable to login keep trying every couple of minutes.

3 Run Tmix

Make yourself root and move to the tmix directory by issuing the following commands on both nodes:

sudo -i
cd /usr/tmix/tmix

Tmix relies upon a pre-determined start time to synchronize tmix on the two noded. On both nodes run the following command to determine the time and date:

date

Note that the time may be in a different time zone. Decide on a start time about 1-2 minutes in the future, relative to the time displayed by the date command. It should be far enough in the future for you to issue the following command on both nodes with 30 seconds to spare before that start time.

Finally, execute the following command on both nodes:

./tmix -s HH:MM:SS tmix.conf

where HH:MM:SS is the chosen start time in hours minutes and seconds.

Tmix on both hosts will load the data files and then wait until the designated start time. You will see Running for ???? seconds once tmix has started.

4 Delete sliver

Once your experiment is complete and you have collected your results, you should return the reserved resources. To do this, execute the following command:

omni.py -a pg-utah deletesliver <sliceName>

where <sliceName> is once again replaced with your chosen unique slice name.