Version 4 (modified by Hussamuddin Nasir, 5 years ago) (diff)


Navigation: Back

Running Your Software: Load your software onto nodes and run commands on nodes


The goal of this exercise is to show you how to copy files from your local computer (e.g., laptop) to select nodes in the topology. We will also show you how to run commands on specified nodes in your topology. This is particularly useful if you want to quickly load your source code onto all (or some of) the nodes, compile it, and then run it.

Loading Files onto Nodes

The File Upload module will allow you to upload a file or a groups of files (we call fileset) to a user-selected destination directory on one or multiple nodes in your slice. In order to do this the user first uploads the files to the GENIDesktop Cloud. When satisfied with the set of files, user can then select the node/nodes you want these files distributed to.

  1. Click on the File upload button from the list of buttons in the top left of the page.
  2. In the small window that shows ups, Click on the folder Directory listing and select the folder you want the files uploaded to. This is a temporary location at the GENIDesktop where we store the uploaded files. (You can create directories and store uploaded files in different directories for later distribution)
  3. Once you have selected a temporary folder location, Click on the Browse button in the right column and select the files you want to upload.
  4. Once your files have been selected, Click on the Upload Files to GENI Cloud button. These files should then show up in the left column under the folder you uploaded to.
  5. Select the node/nodes on which you want to upload your files to from the logical view . Then click on the Set Selected Node button. Make sure you see your selected nodes listed below that button. In the To text box, type in the destination location you want to upload these files to. This location should be a directory that exists on all the nodes in your slice.
  6. Click on the Distribute button. You should see a progress bar for the upload progress.

Running Commands on Nodes

Again using the launcher, select the "Command" module which will open up a Run Command Window (see below). Select the nodes on which you want to run a command using the topology viewer. Type in the command you want to execute in the Run Command window and press the "Run Command" button in the window. This will open up a new tab with the output from the command.

Exercise Tasks

For the following exercise, if you do not have your own source code that you want to try, you can simply us the following HelloWorld.c program.

   main() { 
      printf("Hello World\n"); 
  1. Task 1: Create a file set with your source code on the GENI Desktop.
  2. Task 2: Upload your source code to VM-0 and VM-1.
  3. Task 3: Compile your code on VM-0 and VM-1.
  4. Task 4: Run your compiled program on VM-0 and VM-1.