= [.. Lab Zero: A First Experiment Using GENI] =
{{{
#!html
- Once you are logged in, click on your name in the upper right hand corner and select SSH Keys from the pulldown menu.
- On the new page, select the generate and download an SSH keypair button.
|
Figure 2-2 On the SSH Keys page, select the "generate and download an SSH keypair" button.
|
- Enter the same passphrase twice, then press Generate SSH private key.
|
Figure 2-3 Enter passphrase twice, then generate SSH private key.
|
- Now, press the Download Private Key button. (PuTTY users should selection Download PuTTY Key instead.)
- If you are using a command line based ssh client, open a terminal and execute:
$ mv ~/Downloads/id_geni_ssh_rsa ~/.ssh/.
$ chmod 0600 ~/.ssh/id_geni_ssh_rsa
$ ssh-add ~/.ssh/id_geni_ssh_rsa
Later in the tutorial, this will allow you to log into your nodes securely without a password. (Users of GUI based ssh clients, such as PuTTY, should skip this step.)
|
Figure 2-4 Download an SSH Key Pair.
|
}}}
== 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
- In the upper left hand corner of the Slice page, click the Add Resources button.
- Wait for Jacks to open in editing mode. Jacks should look like the picture to the right.
|
Figure 3-3 Jacks after it has loaded.
|
- Click the black VM box and drag it onto the canvas. This icon represents a generic
default-vm which the aggregate has a well known default for (for InstaGENI it is a Xen VM and for ExoGENI it is an ExoSmall).
- Repeat the above step. You should now see two VM boxes on the canvas.
- Now click near one of the VM boxes on the canvas, then click and drag towards the other VM. Release when you reach the other VM. You should now see a line and a box representing a link connecting the two VMs.
- The canvas should now look like the picture on the right.
|
Figure 3-4 Two VMs connected by a link.
|
- To edit the name of the VM, click the VM box.
- In the "Name" field at the top, replace "node-0" with "client".
- Repeat for the VM labeled node-1. In the "Name" field at the top, replace "node-1" with "server".
|
Figure 3-5 Edit the name of the VM.
|
- Assign IP addresses to the interfaces. The easiest way to do this is to have the tool auto-assign IP addresses by clicking on the Auto IP button.
|
- Now click on the unlabeled box in the middle of the link.
- Enter an IP Address for the "node-0/client" interface of 10.1.1.1.
- Enter a Mask of 255.255.255.0.
- Scroll down further and set IP Address of the "node-1/server" interface to 10.1.1.2 and a Mask of 255.255.255.0.
|
Figure 3-6 Edit the IP Address and Mask of the VM.
|
- Click the "Site 0" box and select the aggregate you've been assigned from the pulldown menu. The "Reserve Resources" button at the bottom of the pane should now be clickable.
- Click the "Reserve Resources" button near the bottom of the page.
|
Figure 3-7 Binding the topology to an aggregate.
|
}}}
=== 3.4 Check Whether Virtual Machines are Ready to be Used ===
{{{
#!html