Changes between Initial Version and Version 1 of Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure/DesignSetup


Ignore:
Timestamp:
07/05/13 10:21:55 (11 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure/DesignSetup

    v1 v1  
     1= [http://groups.geni.net/geni/wiki/GEC17Agenda/GettingStartedWithGENI_I/Procedure Getting Started With GENI - Part I] =
     2{{{
     3#!html
     4
     5<div style="text-align:center; width:495px; margin-left:auto; margin-right:auto;">
     6<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="" />
     7<map id="_Image-Maps_5201305222028436" name="Image-Maps_5201305222028436">
     8<area shape="rect" coords="18,18,135,110" href="./DesignSetup" alt="" title=""    />
     9<area shape="rect" coords="180,18,297,111" href="./Execute" alt="" title=""    />
     10<area shape="rect" coords="344,17,460,110" href="./Finish" alt="" title=""    />
     11<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" />
     12</map>
     13<!-- Image map text links - End - -->
     14
     15</div>
     16}}}
     17
     18
     19
     20== 1.  Design the Experiment ==
     21 
     22{{{
     23#!html
     24<table border="0">
     25   <tr>
     26     <td >
     27        <ol><li>In today's experiment you will use resources at the aggregate listed on the worksheet.</li>
     28        </ol>
     29     </td>
     30   </tr>
     31</table>
     32}}}
     33
     34== 2.  Establish the Environment ==
     35
     36
     37
     38=== 2.1  Pre-work: Create a GENI account ===
     39{{{
     40#!html
     41<table border="0">
     42   
     43      <tr>
     44
     45       <td >
     46         <ol>
     47            <li> Go to <a href="https://portal.geni.net"> https://portal.geni.net </a> and press the <b> Use GENI </b> button</li>
     48            <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>.
     49                  <br/>
     50
     51<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     52        <tr>
     53                <td>
     54                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     55               </td>
     56               <td>
     57                    Start typing the name of your institution and see the list become smaller.
     58        </tr>
     59</table>
     60            </li>
     61            <li> You will be transferred to the Login Page of your institution. Fill in your username and password. </li>
     62            <li> <FONT COLOR="black">Complete the form that appears after you have successfully logged in and press <b>Continue</b>.</font></li>
     63            <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>
     64          </ol>
     65       </td>
     66         <td>
     67
     68        <a href="https://portal.geni.net">
     69        <!--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>
     70
     71        <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>
     72<br />
     73         <b>Figure 2-1</b> <i>Logging into the GENI Experimenter Portal.</i>
     74       </td>
     75    </tr>
     76 </table>
     77}}}
     78
     79Congratulations, you have successfully created a GENI account.
     80
     81
     82=== 2.2 Pre-work: Project lead adds you to a project ===
     83In order to use the portal to reserve resources, you must join a project.  We have created a project for this tutorial. 
     84
     85{{{
     86#!html
     87<table border="0">
     88   
     89      <tr>
     90       <td >
     91         <ol>
     92            <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. 
     93<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     94        <tr>
     95                <td>
     96                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     97               </td>
     98               <td>
     99                    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.
     100               </td>
     101        </tr>
     102</table>
     103
     104
     105</li>
     106          </ol>
     107       </td>
     108       
     109    </tr>
     110 </table>
     111}}}
     112
     113
     114
     115=== 2.3 Generate and Download SSH Keypair ===
     116
     117Access 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.)
     118
     119{{{
     120#!html
     121<table border="0">
     122      <tr>
     123       <td >
     124         <ol>
     125            <li>Once you are logged in, click on the <i>Profile</i> page.</li>
     126            <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>
     127
     128          </ol>
     129       </td>
     130        <td>
     131        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/profile_sshkeys_3.png?format=raw" alt="Generate an SSH Key Pair"  height="180" title="Generate an SSH Key Pair" /> </a>
     132         <br/>
     133         <b>Figure 2-2</b> <i>On the </i>Profile<i> page, select the "generate and download an SSH keypair" button.</i>
     134       </td>
     135      </tr>
     136      <tr>
     137       <td >
     138         <ol start='3'>
     139            <li>Enter the same passphrase twice, then press <b>Generate SSH private key</b>.</li>
     140          </ol>
     141       </td>
     142        <td>
     143        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/generate_sshkeys_1.png?format=raw" alt="Generate an SSH Key Pair"  height="230" title="Generate an SSH Key Pair" /> </a>
     144         <br/>
     145         <b>Figure 2-3</b> <i>Enter passphrase twice, then generate SSH private key.</i>
     146       </td>
     147      </tr>
     148      <tr>
     149       <td >
     150         <ol start='4'>
     151            <li>Now, press the <b>Download Private Key</b> button</li>
     152            <li>Open a terminal and execute:
     153<pre>
     154$ mv ~/Downloads/id_geni_ssh_rsa ~/.ssh/.
     155$ chmod 600 ~/.ssh/id_geni_ssh_rsa
     156$ ssh-add ~/.ssh/id_geni_ssh_rsa
     157</pre>
     158Later in the tutorial, this will allow you to log into your nodes securely without a password. </li>
     159
     160          </ol>
     161       </td>
     162        <td>
     163        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/download_sshkeys_1.png?format=raw" alt="Download an SSH Key Pair"  height="280" title="Download an SSH Key Pair" /> </a>
     164         <br/>
     165         <b>Figure 2-4</b> <i>Download an SSH Key Pair.</i>
     166       </td>
     167       
     168    </tr>
     169 </table>
     170}}}
     171
     172
     173
     174== 3.  Obtain Resources ==
     175
     176Now that you are a member of a project, you can create a slice and reserve resources.
     177
     178=== 3.1 Create a slice ===
     179
     180{{{
     181#!html
     182<table border="0">
     183   
     184      <tr>
     185
     186       <td >
     187         <ol>
     188            <li> Go to the <i>Home</i> tab. </li>
     189           <li> Press the <b>Create Slice</b> button for this project.</li>
     190            <li> <FONT COLOR="black">As a slice name use the slice name on your worksheet (the slice name should be of the form <code>portal##</code>), you can leave the description empty and press <b>Create Slice</b></font>
     191            </li>
     192 
     193
     194          </ol>
     195       </td>
     196       <td>
     197
     198        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/createslice_3.png?format=raw" alt="Create a GENI Slice"  height="150" title="Create a GENI Slice" />
     199<br />
     200         <b>Figure 3-1</b> <i>Create a new slice.</i>
     201       </td>
     202    </tr>
     203 </table>
     204}}}
     205
     206=== 3.2 Renew your slice  ===
     207Slices 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.
     208{{{
     209#!html
     210
     211<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
     212        <tr>
     213                <td>
     214                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/warning-icon-hi.png?format=raw" width="50" height="50" alt="Warning">
     215               </td>
     216<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.
     217</td>
     218        </tr>
     219</table>
     220}}}
     221
     222{{{
     223#!html
     224<table border="0">
     225      <tr>
     226
     227       <td >
     228         <ol>
     229           <li>On the <i>Slice</i> page, select the <b>Renew slice only</b> radio button.</li>
     230<li>Click on the date below.  In the calendar that pops up, select tomorrow's date.</li>
     231<li>Press <b>Renew</b> to renew the slice.  Renewing the slice now allows the resources to have longer initial expiration times.</li>
     232
     233         </ol>
     234       </td>
     235        <td>
     236        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/GREESC13/PortalSimpleLayer2Example/Graphics/renew_slice_v1.png?format=raw" alt="Renew slice"  height="300" title="Renew Slice" />
     237<br />
     238         <b>Figure 3-2</b> <i>Renew the slice.</i></i>
     239       </td>
     240      </tr>
     241 </table>
     242}}}
     243
     244
     245=== 3.3 Reserve Two Virtual Machines at One Aggregate ===
     246The Portal is integrated with a tool, Flack, which allows you to draw topologies of GENI resources and then reserve them.
     247
     248
     249{{{
     250#!html
     251<table border="0">
     252   
     253      <tr>
     254       <td >
     255         <ol>
     256            <li>On the <i>Slice</i> tab, press the <b>Flack</b> button.  Flack will open in a new tab.</li>
     257          </ol>
     258       </td>
     259       <td>
     260
     261        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/launch_flack_v1.png?format=raw" alt="Launch Flack"  height="250" title="Launch Flack" />
     262<br />
     263         <b>Figure 3-3</b> <i>Launch Flack</i>
     264       </td>
     265    </tr>
     266      <tr>
     267
     268       <td >
     269         <ol start='2'>
     270            <li>Wait for Flack to load.  You should see: the username, the slice name, and a list of aggregates should.  Flack should look like the picture to the right.</li>
     271          </ol>
     272       </td>
     273       <td>
     274
     275        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/Flack_login_v1.png?format=raw" alt="Flack"  height="250" title="Flack" />
     276<br />
     277         <b>Figure 3-4</b> <i>Flack after it has loaded.</i>
     278       </td>
     279    </tr>
     280    <tr>
     281       <td >
     282         <ol start='3'>
     283            <li>Find the aggregate listed on your worksheet.  </li>
     284            <li>Add the <b>VM</b> box next to that aggregate and draw it onto the canvas.</li>
     285            <li>Repeat the above step.  You should now see two VM boxes on the canvas.</li>
     286            <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>
     287            <li>The canvas should now look like the picture on the right.</li>
     288            <li>Click the Submit button near the bottom of the page.  When prompted, confirm you want to actually reserve resources. </li>
     289          </ol>
     290       </td>
     291       <td>
     292
     293        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/Flack_2VM_link_v1.png?format=raw" alt="Flack"  height="250" title="Flack" />
     294<br />
     295         <b>Figure 3-5</b> <i>Two VMs connected by a link.</i>
     296       </td>
     297    </tr>
     298 </table>
     299}}}
     300
     301
     302=== 3.4 Check Whether Virtual Machines are Ready to be Used ===
     303{{{
     304#!html
     305<table>
     306    <tr>
     307       <td >
     308         <ol>
     309            <li>After clicking the Submit button, wait for the canvas to turn green.  (This may take awhile.)</li>
     310            <li>The canvas should now look like the picture on the right.</li>
     311          </ol>
     312       </td>
     313       <td>
     314
     315        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/Flack_2VM_link_ready_v1.png?format=raw" alt="Flack"  height="250" title="Flack" />
     316<br />
     317         <b>Figure 3-6</b> <i>Two VMs connected by a link are reserved and ready to login.</i>
     318       </td>
     319    </tr>
     320
     321
     322 </table>
     323}}}
     324
     325
     326----
     327= [wiki:GEC17Agenda/GettingStartedWithGENI_I/Procedure Introduction] =
     328= [wiki:GEC17Agenda/GettingStartedWithGENI_I/Procedure/Execute Next:  Execute] =