Changes

Jump to: navigation, search

OPS335 Installation Lab

1,515 bytes removed, 13:41, 2 September 2020
no edit summary
#* '''Outside Seneca College link (available from any Internet connection):<br>''' http://mirror.csclub.uwaterloo.ca/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-2003.iso<br /><br>
# You need to refer to your OPS235 notes in order to install your host machine.<br>Here is a direct link:<br> [https://wiki.cdot.senecacollege.ca/wiki/OPS235_Lab_1_-_CentOS7_-_SSD2 OPS235 - Lab1]
{{Admon/tip |Boot order|Some of our machines' boot order is configured to be Harddrive first, DVD second. Which means you won't be able to boot from the DVD if you already have an operating system installed on your drive.}}
<ol>
<li value=4>Customize your installation following these guidelines:
<ol><li value="4">Use the information from the '''ip address show''' command to correctly specify the '''physical network interface''' and the '''virtual network interface'''.</li></ol>
'''NOTE:''' You will need an ISO file for CentOS 7 (the same one you burned your DVD from). It is recommended to use the command to download this image onto your host machine. In this way, you can keep it on your host machine for the remainder of this course in case you need it:
'''NOTE:''' You will need an ISO file for CentOS 7 (the same one you burned your DVD from). It is recommended to use the command:<br> '''<span style="text-decoration:none;color:blue;">wget httpshttp://mirror.senecacollegecsclub.uwaterloo.ca/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-2003.iso</span>'''<br>to download this image onto your host machine. In this way, you can keep it on your host machine for the remainder of this course in case you need it. 
Perform the following steps to create your first VM on your Virtual Machine Manager application:
<li>Reboot the virtual machine once it is updated.</li>
</ol>
 
{{Admon/tip|If errors on boot-up|If your virtual machine hangs on boot, you will need to change a graphics option:<ul><li>While the VM is off, click on '''View''' (from the menu at the top of the VM window), and select '''Details'''.</li><li>From the menu on the left side, select '''Display'''.</li><li>Change the drop-down list for Type from '''VNC''' to '''Spice''', and click apply.</li><li>Switch the view back to '''Console''' and start the machine again.</li></ul>}}
<br>
===Cloning a Virtual Machine===
# Now that you have one virtual machine working, you will create two more. If you struggled with the previous steps, repeat them to create two more virtual machines (naming them '''vm2''' and '''vm3''', with hostnames '''vm2.localdomain''' and '''vm3.localdomain''' respectively).
<ol>
<li value="2"> Now that you have one virtual machine working, you will create two more. If you struggled with the previous steps, repeat them to create two more virtual machines (naming them '''vm2''' and '''vm3''', with hostnames '''vm2.localdomain''' and '''vm3.localdomain''' respectively).</li><li>'''If you are confident with what you have done so far, you may clone your existing machine to create the others by performing the following steps:'''</li><li><ol type="a"> <li>Make certain that your '''vm1''' virtual machine is shutdown.</li> <li>For your '''vm1''' machine, go to the details section and remove the <u>device</u> '''Channel qemu-ga'''.</li> <li>In the virtual machine manager, '''right click''' on ''vm1'' and select '''Clone...'''.</li> <li>Set the Name to be: '''vm2'''</li></ol></li><li>Once successfully created, boot the new VM and correct the host name. This can be done using the '''hostnamectl''' command-line tool.</li></ol>  {{Admon/important |Errors When Booting Clone|If you experience errors when starting the "Cloned" VM, go to the clone's details section (i.e. when you open the VM, but not start it, then select: ''View'' then ''Details'') and remove the <u>device</u> '''Channel qemu-ga'''.<br>It is recommended to follow that procedure, since if you don't, you would only be permitted to start the "cloned VM" if the original VM (used to create the clone) is already running.<br><br>'''Repeat this procedure for any additional "cloned VM" that you create for this course'''.}}  <ol><li value="4">Record in your notes the steps for cloning a vm.</li>
<li>Use the host command to check for connectivity</li>
<li>After creating vm2 repeat the above steps to create vm3 and correct the host name.</li>
Upon completion of this lab you should have 4 installed machines. One machine running Centos 7 and acting as a host and gateway for three virtual machines running minimal installations of Centos 7. Each machine must be fully updated and have access to the network (for example, to get further updates) and be able ping the others. Each machine must be using iptables for the firewall.
 '''Depending on your professor you will either be asked to submit the lab in class, or online. Follow the appropriate set of instructions below''' ===Online Submission (Ahad Mammadov's sections only)===
Follow the instructions for lab 0 on blackboard.
<!--
===Andrew's sections===
::<span style="color:green;font-size:1.5em;">&#x2713;</span> Lab logbook completed
::<span style="color:green;font-size:1.5em;">&#x2713;</span> Run the '''labcheck_install.sh''' shell script on your host machine
-->
==EXPLORATION QUESTIONS==

Navigation menu