Version 76 (modified by 9 years ago) (diff) | ,
---|
Lab Zero: A First Experiment Using GENI
1. Design the Experiment
|
2. Establish the Environment
2.1 Pre-work: Create a GENI account
|
Figure 2-1 Logging into the GENI Experimenter Portal. |
Congratulations, you have successfully created a GENI account.
2.2 Pre-work: Project lead adds you to a project
In order to use the portal to reserve resources, you must join a project. We have created a project for this tutorial.
|
2.3 Generate and Download SSH Keypair
Access to compute resources in GENI is provided through ssh key pairs and thus the portal needs a public key to upload to compute resources. For the purposes of the tutorial we will have the portal create an SSH key pair for you. (However, if you prefer to use your personal public key you can choose to upload it.)
|
|
|
Figure 2-4 Download an SSH Key Pair.
Mac OS X/Linux
- Save the NOT_PUTTY version of the private key on your computer.
- Open a terminal
- Ensure that your private key has the right permissions by typing:
chmod 700 <private_key_file>
- Run ssh by typing:
ssh -i <private key location> sshtest@pc3.geni.uchicago.edu -p 32826
- Enter the passphrase (v3rify) when prompted. Note: If you are prompted for a password then something went wrong. Make sure that all the information is correct.
If you see the prompt sshtest@test:~$ you have successfully logged-in to the node.
Windows PuTTY
- You will use the PUTTY version of the private key. Save the key on your computer. (It was converted from the standard format using the puttygen program. For more information look here)
- Run PuTTY.
- On the Basic options screen, in the Host Name field enter:
sshtest@pc3.geni.uchicago.edu
- In the Port field enter: 32826
- Make sure Connection type is: SSH
- Under the settings categories on the left navigate to Connection-> SSH ->Auth.
- Next to the "Private key file for authentication" field at the bottom, click Browse... and select the private key file you saved to your computer, and click Open.
- Click Open to establish the SSH connection.
- If prompted about whether you trust the host (key not cached in registry), click Yes.
- When prompted for the Passphrase enter: v3rify
If you see the prompt sshtest@test:~$ you have successfully logged-in to the node.
Windows FireSSH
After you Install FireSSH :
- Save the NOT_PUTTY version of the private key.
- Load this URL into firefox: ssh://sshtest@pc3.geni.uchicago.edu:32826
- In the pop-up window, enter the passphrase v3rify in the (mislabeled) password field, and click Browse...
- Select the private key, and click Open.
- Click OK.
- If prompted about whether you trust the host (host key not cached in registry), click Yes.
If you see the prompt sshtest@test:~$ you have successfully logged-in to the node.
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
|
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.
Slices and the resources within them have distinct expiration times. You must renew both the slice and the resources separately. |
|
Figure 3-2 Renew the slice. |
3.3 Reserve Two Virtual Machines at One Aggregate
The Portal is integrated with a tool, Jacks, which allows you to draw topologies of GENI resources and then reserve them.
|
Figure 3-3 Jacks after it has loaded. |
|
Figure 3-4 Two VMs connected by a link. |
|
Figure 3-5 Edit the name of the VM. |
|
Figure 3-6 Assign IP addresses to the interfaces using Auto IP. |
|
Figure 3-7 Binding the topology to an aggregate. |
3.4 Check Whether Virtual Machines are Ready to be Used
|
Figure 3-8 Reservation complete. |
|
Figure 3-9 Nodes are ready to login. |