= [http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/jFed/GettingStarted_PartI/Procedure Lab Zero: A First Experiment Using GENI] = {{{ #!html
Image Map
}}} == 3. Obtain Resources == Now that you are a member of a project, you can create a slice and reserve resources. === 3.1 Create a slice === {{{ #!html
  1. Go to the Home page.
  2. Press the Create Slice button.
  3. Use the slice name on your worksheet. If you don't have a worksheet, use lab0<your initials>. You can leave the description empty and press Create Slice
Create a GENI Slice
Figure 3-1 Create a new slice.
}}} === 3.2 (optional) Renew your slice === Slices and the resources within them are reserved until their individual ''expiration times''. Renewing allows you to extend the expiration time of your slice and the resources in them. {{{ #!html
Warning Slices and the resources within them have distinct expiration times. You must renew both the slice and the resources separately.
}}} {{{ #!html
  1. On the Slice page, select the Renew slice only radio button.
  2. Click on the date below. In the calendar that pops up, select a date in the near future.
  3. Press Renew to renew the slice. Renewing the slice now allows the resources to have longer initial expiration times.
Renew slice
Figure 3-2 Renew the slice.
}}} === 3.3 Launch jFed to Reserve Two Virtual Machines at One Aggregate === The Portal is integrated with a tool, jFed, which allows you to draw topologies of GENI resources and then reserve them. [[br]] ''If you are on a Mac, you must us the Firefox (recommended) or Safari browsers.'' {{{ #!html
  1. On the Slice tab, press the jFed button. jFed will open in a new window.
Launch jFed
Figure 3-3 Launch jFed
  1. Wait for jFed to load. jFed should look like the picture to the right. Click on the New to start a new experiment.
jFed
Figure 3-4 jFed after it has loaded.
  1. Find the aggregate listed on your worksheet.
  2. Click the VM box and drag it onto the canvas.
  3. InstaGENI If you are using resources at an InstaGENI aggregate:
        Click the XEN VM box and drag it onto the canvas.
    
    ExoGENI If you are using resources at an ExoGENI aggregate do:
        Click the VM box and drag it onto the canvas.
    
  4. To edit the node, double click on the node box.
  5. From the "Select testbed" drop-down, pick the aggregate assigned to you. DO NOT forget to do this
  6. Select the node and press the "Duplicate" button. You should now see two node boxes on the canvas.
  7. Now click near one of the node boxes on the canvas, then click and drag towards the other node. Release when you reach the other node. You should now see a line and a box representing a link connecting the two nodes.
  8. The canvas should now look like the picture on the right.
Two nodes connected by a link.
Figure 3-5 Two nodes connected by a link.
  1. To edit the name of each node, double click on the node box.
  2. In the "Name" field at the top, replace "node0" with "client".
  3. Repeat for the node labeled, "node1". In the "Name" field at the top, replace "node1" with "server".
Relabel VM
Figure 3-6 Edit the name of the VM. Set the Sliver Type on ExoGENI racks.
  1. Now click on the "link" box.
  2. Enter an IP Address for this node of 10.1.1.1.
  3. Enter a Mask of 255.255.255.0.
  4. On the next line down, set that interface to the server's IP address of 10.1.1.2 and a Mask of 255.255.255.0.
Relabel VM
Figure 3-7 Edit the IP Address and Mask of the VM.
  1. Click the Run button near the top of the window.
Two VMs connected by a link
Figure 3-8 Two VMs connected by a link.
  1. When prompted, pick experiment details, such as your slice, and then hit OK.
Pick Experiment Details
Figure 3-9 Pick Experiment Details.
}}} === 3.4 Check Whether Virtual Machines are Ready to be Used === {{{ #!html
  1. After clicking the OK button, wait for the canvas to turn green. (This may take awhile.)
  2. If the canvas doesn't eventually turn green, press the "Update Status" button.
  3. The canvas should now look like the picture on the right.
Resources are ready
Figure 3-9 Reservation complete. Nodes are ready to login.
}}}