Changes between Initial Version and Version 1 of GENIEducation/SampleAssignments/UnderstandAMAPI/Procedure/DesignSetup


Ignore:
Timestamp:
08/08/13 15:36:53 (11 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIEducation/SampleAssignments/UnderstandAMAPI/Procedure/DesignSetup

    v1 v1  
     1= [http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/UnderstandAMAPI/Procedure Understanding the AM API =
     2{{{
     3#!html
     4
     5
     6<div style="text-align:center; width:495px; margin-left:auto; margin-right:auto;">
     7<img id="Image-Maps_5201305222028436" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Setup.jpg?format=raw" usemap="#Image-Maps_5201305222028436" border="0" width="495" height="138" alt="" />
     8<map id="_Image-Maps_5201305222028436" name="Image-Maps_5201305222028436">
     9<area shape="rect" coords="18,18,135,110" href="./DesignSetup" alt="" title=""    />
     10<area shape="rect" coords="180,18,297,111" href="./Execute" alt="" title=""    />
     11<area shape="rect" coords="344,17,460,110" href="./Finish" alt="" title=""    />
     12<area shape="rect" coords="493,136,495,138" href="http://www.image-maps.com/index.php?aff=mapped_users_5201305222028436" alt="Image Map" title="Image Map" />
     13</map>
     14<!-- Image map text links - End - -->
     15
     16</div>
     17}}}
     18
     19
     20
     21== 1.  Design the Experiment ==
     22 
     23{{{
     24#!html
     25<table border="0">
     26   <tr>
     27     <td >
     28        <ol><li>In today's experiment you will use resources at the aggregate listed on the worksheet.</li>
     29        </ol>
     30     </td>
     31   </tr>
     32</table>
     33}}}
     34
     35== 2.  Establish the Environment ==
     36
     37
     38
     39=== 2.1  Pre-work: Create a GENI account ===
     40{{{
     41#!html
     42<table border="0">
     43   
     44      <tr>
     45
     46       <td >
     47         <ol>
     48            <li> Go to <a href="https://portal.geni.net"> https://portal.geni.net </a> and press the <b> Use GENI </b> button</li>
     49            <li> From the Drop Down menu select your institution. If you got an account through the GENI Identity Provider, please select <b>GENI Project Office</b>.
     50                  <br/>
     51
     52<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     53        <tr>
     54                <td>
     55                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     56               </td>
     57               <td>
     58                    Start typing the name of your institution and see the list become smaller.
     59        </tr>
     60</table>
     61            </li>
     62            <li> You will be transferred to the Login Page of your institution. Fill in your username and password. </li>
     63            <li> <FONT COLOR="black">Complete the form that appears after you have successfully logged in and press <b>Continue</b>.</font></li>
     64            <li> <FONT COLOR="black">You will be transferred to an <b>Activation Page</b>. Make sure both checkboxes are checked and then press <b>Activate</b></font>. </li>
     65          </ol>
     66       </td>
     67         <td>
     68
     69        <a href="https://portal.geni.net">
     70        <!--img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/login.png?format=raw" alt="Login to GENI"  height="120" title="Use GENI" />  </a>
     71
     72        <br/--><img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/portal_login.png?format=raw" alt="Use GENI"  height="200" title="Login to GENI" /> </a>
     73<br />
     74         <b>Figure 2-1</b> <i>Logging into the GENI Experimenter Portal.</i>
     75       </td>
     76    </tr>
     77 </table>
     78}}}
     79
     80Congratulations, you have successfully created a GENI account.
     81
     82
     83=== 2.2 Pre-work: Project lead adds you to a project ===
     84In order to use the portal to reserve resources, you must join a project.  We have created a project for this tutorial. 
     85
     86{{{
     87#!html
     88<table border="0">
     89   
     90      <tr>
     91       <td >
     92         <ol>
     93            <li> The tutorial organizers should have added you to the project for this tutorial.  On the home page, you should see that you are a member of at least one project. 
     94<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     95        <tr>
     96                <td>
     97                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     98               </td>
     99               <td>
     100                    If you are not doing this exercise as part of an in-person tutorial please sign up for a <a target="_blank" href="http://groups.geni.net/geni/wiki/SignMeUpPortal">GENI account</a> and join a project.
     101               </td>
     102        </tr>
     103</table>
     104
     105
     106</li>
     107          </ol>
     108       </td>
     109       
     110    </tr>
     111 </table>
     112}}}
     113
     114
     115
     116=== 2.3 Generate and Download SSH Keypair ===
     117
     118Access 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.)
     119
     120{{{
     121#!html
     122<table border="0">
     123      <tr>
     124       <td >
     125         <ol>
     126            <li>Once you are logged in, click on the <i>Profile</i> page.</li>
     127            <li>On the <i>Profile</i> page in the <i>SSH Keys</i> section, select <b>generate and download an SSH keypair</b> button.</li>
     128
     129          </ol>
     130       </td>
     131        <td>
     132        <img src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/LabZero/Graphics/profile_sshkeys_3_v4.png?format=raw" alt="Generate an SSH Key Pair"  width="600" title="Generate an SSH Key Pair" /> </a>
     133         <br/>
     134         <b>Figure 2-2</b> <i>On the </i>Profile<i> page, select the "generate and download an SSH keypair" button.</i>
     135       </td>
     136      </tr>
     137      <tr>
     138       <td >
     139         <ol start='3'>
     140            <li>Enter the same passphrase twice, then press <b>Generate SSH private key</b>.</li>
     141          </ol>
     142       </td>
     143        <td>
     144        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/LabZero/Graphics/generate_sshkeys_1_v2.png?format=raw" alt="Generate an SSH Key Pair"  width="600" title="Generate an SSH Key Pair" /> </a>
     145         <br/>
     146         <b>Figure 2-3</b> <i>Enter passphrase twice, then generate SSH private key.</i>
     147       </td>
     148      </tr>
     149      <tr>
     150       <td >
     151         <ol start='4'>
     152            <li>Now, press the <b>Download Private Key</b> button</li>
     153            <li>Open a terminal and execute:
     154<pre>
     155$ mv ~/Downloads/id_geni_ssh_rsa ~/.ssh/.
     156$ chmod 0600 ~/.ssh/id_geni_ssh_rsa
     157$ ssh-add ~/.ssh/id_geni_ssh_rsa
     158</pre>
     159Later in the tutorial, this will allow you to log into your nodes securely without a password. </li>
     160
     161          </ol>
     162       </td>
     163        <td>
     164        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/LabZero/Graphics/download_sshkeys_1_v2.png?format=raw" alt="Download an SSH Key Pair"  width="600" title="Download an SSH Key Pair" /> </a>
     165         <br/>
     166         <b>Figure 2-4</b> <i>Download an SSH Key Pair.</i>
     167       </td>
     168       
     169    </tr>
     170 </table>
     171}}}
     172
     173
     174
     175== 3.  Obtain Resources ==
     176
     177Now that you are a member of a project, you can create a slice and reserve resources.
     178
     179=== 3.1 Create a slice ===
     180
     181{{{
     182#!html
     183<table border="0">
     184   
     185      <tr>
     186
     187       <td >
     188         <ol>
     189            <li> Go to the <i>Home</i> tab. </li>
     190           <li> Press the <b>Create Slice</b> button for this project.</li>
     191            <li> <FONT COLOR="black">As a slice name use the slice name on your worksheet, you can leave the description empty and press <b>Create Slice</b></font>
     192            </li>
     193 
     194
     195          </ol>
     196       </td>
     197       <td>
     198
     199        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/LabZero/Graphics/createslice_3_v2.png?format=raw" alt="Create a GENI Slice"  width="600" title="Create a GENI Slice" />
     200<br />
     201         <b>Figure 3-1</b> <i>Create a new slice.</i>
     202       </td>
     203    </tr>
     204 </table>
     205}}}
     206
     207=== 3.2 (optional) Renew your slice  ===
     208Slices 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.
     209{{{
     210#!html
     211
     212<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
     213        <tr>
     214                <td>
     215                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/warning-icon-hi.png?format=raw" width="50" height="50" alt="Warning">
     216               </td>
     217<td>Slices and the resources within them have <i>distinct</i> expiration times.  You must renew <b>both</b> the slice and the resources separately.
     218</td>
     219        </tr>
     220</table>
     221}}}
     222
     223{{{
     224#!html
     225<table border="0">
     226      <tr>
     227
     228       <td >
     229         <ol>
     230           <li>On the <i>Slice</i> page, select the <b>Renew slice only</b> radio button.</li>
     231<li>Click on the date below.  In the calendar that pops up, select a date in the near future.</li>
     232<li>Press <b>Renew</b> to renew the slice.  Renewing the slice now allows the resources to have longer initial expiration times.</li>
     233
     234         </ol>
     235       </td>
     236        <td>
     237        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/LabZero/Graphics/renew_slice_v2.png?format=raw" alt="Renew slice"  width="600" title="Renew Slice" />
     238<br />
     239         <b>Figure 3-2</b> <i>Renew the slice.</i></i>
     240       </td>
     241      </tr>
     242 </table>
     243}}}
     244
     245
     246=== 3.3 Reserve Two Virtual Machines at One Aggregate ===
     247The Portal is integrated with a tool, Flack, which allows you to draw topologies of GENI resources and then reserve them.
     248
     249
     250{{{
     251#!html
     252<table border="0">
     253   
     254      <tr>
     255       <td >
     256         <ol>
     257            <li>On the <i>Slice</i> tab, press the <b>Flack</b> button.  Flack will open in a new tab.</li>
     258          </ol>
     259       </td>
     260       <td>
     261
     262        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/LabZero/Graphics/launch_flack_v3.png?format=raw" alt="Launch Flack"  width="600" title="Launch Flack" />
     263<br />
     264         <b>Figure 3-3</b> <i>Launch Flack</i>
     265       </td>
     266    </tr>
     267      <tr>
     268
     269       <td >
     270         <ol start='2'>
     271            <li>Wait for Flack to load.  You should see: your username, the slice name, and a list of aggregates.  Flack should look like the picture to the right.</li>
     272          </ol>
     273       </td>
     274       <td>
     275
     276        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/Flack_login_v1.png?format=raw" alt="Flack"  height="350" title="Flack" />
     277<br />
     278         <b>Figure 3-4</b> <i>Flack after it has loaded.</i>
     279       </td>
     280    </tr>
     281    <tr>
     282       <td >
     283         <ol start='3'>
     284            <li>Find the aggregate listed on your worksheet.  </li>
     285            <li>Click the <b>VM</b> box next to that aggregate and drag it onto the canvas.</li>
     286            <li>Repeat the above step.  You should now see two VM boxes on the canvas.</li>
     287            <li>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.</li>
     288            <li>The canvas should now look like the picture on the right.</li>
     289            <li>To edit the name of each VM, click the <b>i</b> in the circle.</li>
     290          </ol>
     291       </td>
     292       <td>
     293
     294        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/oneam_twovmlink_highlight_v2.png?format=raw" alt="Two VMs connected by a link."  height="350" title="Two VMs connected by a link." />
     295<br />
     296         <b>Figure 3-5</b> <i>Two VMs connected by a link.</i>
     297       </td>
     298    </tr>
     299      <tr>
     300
     301       <td >
     302         <ol start='9'>
     303
     304
     305            <li>In the field at the top, replace "VM" with "client".</li>
     306<li>If you are using an ExoGENI rack, set the "Sliver Type" to "EC2Small".
     307<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     308        <tr>
     309                <td>
     310                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/exogeni-logo.png?format=raw" width="50" height="50" alt="ExoGENI">
     311               </td>
     312               <td>ExoGENI allows you to reserve machines of various sizes.  We will use small ones for this tutorial to conserve resources.</td>
     313                   
     314        </tr>
     315</table>
     316</li>
     317
     318         </ol>
     319       </td>
     320       <td>
     321
     322        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/label_client_EG_highlight_v2.png?format=raw" alt="Relabel VM"  height="350" title="Relabel VM" />
     323<br />
     324         <b>Figure 3-6</b> <i>Edit the name of the VM.  Set the Sliver Type on ExoGENI racks.</i>
     325       </td>
     326    </tr>
     327    <tr>
     328       <td >
     329         <ol start='11'>
     330            <li>Now click on "Interfaces and Links" (this is the middle tab with the "link" symbol").</li>
     331            <li>Enter the Desired IP Address for this node which is listed on your worksheet.</li>
     332            <li>Enter the Desired Mask of <i>255.255.255.0</i>.</li>
     333            <li>Then Press "Apply" at the bottom of the screen.</li>
     334            <li>Repeat the above six steps for the second VM, labeling it "server" and setting the server's Desired IP Address.</li>
     335          </ol>
     336       </td>
     337       <td>
     338
     339        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/label_client_IP_highlight_v3.png?format=raw" alt="Relabel VM"  height="350" title="Relabel VM" />
     340<br />
     341         <b>Figure 3-7</b> <i>Edit the IP Address and Mask of the VM. </i>
     342       </td>
     343    </tr>
     344
     345
     346    <tr>
     347       <td >
     348         <ol start='16'>
     349            <li>Click the Submit button near the bottom of the page.  When prompted, confirm you want to actually reserve resources. </li>
     350          </ol>
     351       </td>
     352       <td>
     353
     354        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/oneam_twovmlink_labeled_highlight_v1.png?format=raw" alt="Two VMs connected by a link"  height="350" title="Two VMs connected by a link" />
     355<br />
     356         <b>Figure 3-8</b> <i>Two VMs connected by a link.</i>
     357       </td>
     358    </tr>
     359 </table>
     360}}}
     361
     362
     363=== 3.4 Check Whether Virtual Machines are Ready to be Used ===
     364{{{
     365#!html
     366<table>
     367    <tr>
     368       <td >
     369         <ol>
     370            <li>After clicking the Submit button, wait for the canvas to turn green.  (This may take awhile.)</li>
     371            <li>The canvas should now look like the picture on the right.</li>
     372          </ol>
     373       </td>
     374       <td>
     375
     376        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/oneam_twovmlink_ready.png?format=raw" alt="Resources are ready"  height="350" title="Resources are ready" />
     377<br />
     378         <b>Figure 3-9</b> <i>Two VMs connected by a link are reserved and ready to login.</i>
     379       </td>
     380    </tr>
     381
     382
     383 </table>
     384}}}
     385
     386
     387----
     388= [wiki:GENIEducation/SampleAssignments/UnderstandAMAPI/Procedure Introduction] =
     389= [wiki:GENIEducation/SampleAssignments/UnderstandAMAPI/Procedure/Execute Next:  Execute] =