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 | | |
118 | | 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.) |
119 | | |
120 | | {{{ |
121 | | #!html |
122 | | <table border="0"> |
123 | | <tr> |
124 | | <td > |
125 | | <ol type='a'> |
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="400" 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 type='a' 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="400" 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 type='a' start='4'> |
152 | | <li>Now, press the <b>Download Private Key</b> button</li> |
153 | | <li><b>If you are using a command line based ssh client</b>, 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> |
159 | | Later 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="400" 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 | | |
177 | | Now 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 type='a'> |
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. If you don't have a worksheet, use <i>lab0<your initials></i>. 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="400" 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 === |
208 | | 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. |
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 type='a'> |
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_v3.png?format=raw" alt="Renew slice" width="400" 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 === |
247 | | The Portal is integrated with a tool, jFed, 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 type='a'> |
257 | | <li>On the <i>Slice</i> tab, press the <b>jFed</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/GENIExperimenter/Tutorials/JFedLab0_1.png?format=raw" alt="Launch jFed" width="400" title="Launch jFed" /> |
263 | | <br /> |
264 | | <b>Figure 3-3</b> <i>Launch jFed</i> |
265 | | </td> |
266 | | </tr> |
267 | | <tr> |
268 | | |
269 | | <td > |
270 | | <ol type='a' start='2'> |
271 | | <li>Wait for jFed to load. jFed 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/GENIExperimenter/Tutorials/JFedLab0_5.png?format=raw" alt="Flack" width="400" 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 type='a' 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/GENIExperimenter/Tutorials/JFedLab0_6.png?format=raw" alt="Two VMs connected by a link." width="400" 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 type='a' start='9'> |
303 | | |
304 | | |
305 | | <li>In the field at the top, replace "VM" with "client".</li> |
306 | | |
307 | | </ol> |
308 | | </td> |
309 | | <td> |
310 | | |
311 | | <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JFedLab0_6.5.png?format=raw" alt="Relabel VM" width="400" title="Relabel VM" /> |
312 | | <br /> |
313 | | <b>Figure 3-6</b> <i>Edit the name of the VM. Set the Sliver Type on ExoGENI racks.</i> |
314 | | </td> |
315 | | </tr> |
316 | | <tr> |
317 | | <td > |
318 | | <ol type='a' start='10'> |
319 | | <li>Now click on "Interfaces and Links" (this is the middle tab with the "link" symbol").</li> |
320 | | <li>Enter an IP Address for this node of <i>10.1.1.1</i>.</li> |
321 | | <li>Enter a Mask of <i>255.255.255.0</i>.</li> |
322 | | <li>Then Press "Apply" at the bottom of the screen.</li> |
323 | | <li>Repeat the above six steps for the second VM, labeling it "server" and setting the server's IP Address to <i>10.1.1.2</i> and a Mask of <i>255.255.255.0</i>.</li> |
324 | | </ol> |
325 | | </td> |
326 | | <td> |
327 | | |
328 | | <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JFedLab0_7.png?format=raw" alt="Relabel VM" width="400" title="Relabel VM" /> |
329 | | <br /> |
330 | | <b>Figure 3-7</b> <i>Edit the IP Address and Mask of the VM. </i> |
331 | | </td> |
332 | | </tr> |
333 | | |
334 | | |
335 | | <tr> |
336 | | <td > |
337 | | <ol type='a' start='15'> |
338 | | <li>Click the Submit button near the bottom of the page. When prompted, confirm you want to actually reserve resources. </li> |
339 | | </ol> |
340 | | </td> |
341 | | <td> |
342 | | |
343 | | <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JFedLab0_8.png?format=raw" alt="Two VMs connected by a link" width="400" title="Two VMs connected by a link" /> |
344 | | <br /> |
345 | | <b>Figure 3-8</b> <i>Two VMs connected by a link.</i> |
346 | | </td> |
347 | | </tr> |
348 | | |
349 | | |
350 | | <tr> |
351 | | <td > |
352 | | <ol type='a' start='15'> |
353 | | <li>Click the Submit button near the bottom of the page. When prompted, confirm you want to actually reserve resources. </li> |
354 | | </ol> |
355 | | </td> |
356 | | <td> |
357 | | |
358 | | <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JFedLab0_9.png?format=raw" alt="Two VMs connected by a link" width="400" title="Two VMs connected by a link" /> |
359 | | <br /> |
360 | | <b>Figure 3-8</b> <i>Two VMs connected by a link.</i> |
361 | | </td> |
362 | | </tr> |
363 | | </table> |
364 | | }}} |
365 | | |
366 | | |
367 | | === 3.4 Check Whether Virtual Machines are Ready to be Used === |
368 | | {{{ |
369 | | #!html |
370 | | <table> |
371 | | <tr> |
372 | | <td > |
373 | | <ol type='a' type='a'> |
374 | | <li>After clicking the Submit button, wait for the canvas to turn green. (This may take awhile.)</li> |
375 | | <li>If the canvas doesn't eventually turn green, press the "Get Status" button (near the "Add Resources" button).</li> |
376 | | <li>The canvas should now look like the picture on the right.</li> |
377 | | </ol> |
378 | | </td> |
379 | | <td> |
380 | | |
381 | | <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/JFedLab0_10.png?format=raw" alt="Resources are ready" width="400" title="Resources are ready" /> |
382 | | <br /> |
383 | | <b>Figure 3-9</b> <i>Reservation complete. Nodes are ready to login.</i> |
384 | | </td> |
385 | | </tr> |
386 | | |
387 | | |
388 | | </table> |
389 | | }}} |
390 | | |
391 | | |
392 | | ---- |
393 | | = [wiki:GENIExperimenter/Tutorials/jFed/GettingStarted_PartI/Procedure Introduction] = |
394 | | = [wiki:GENIExperimenter/Tutorials/jFed/GettingStarted_PartI/Procedure/Execute Next: Execute] = |