Changes

Jump to: navigation, search

OPS335 - Assignment 1 (Part 1)

1,069 bytes removed, 09:48, 1 October 2021
Create a "Cloning-Source" VM (335assign Virtual Network)
== General Requirements ==
'''Weight''': '''32.5%''' of the overall grade
'''Due Date''': During '''Week 5''' (in class)check with your professor
== Detailed Requirements ==
* Assign a newly-created virtual network the name: '''335assign''', and set '''forwarding to any physical device'''<br>(refer to [http://zenit.senecac.on.ca/wiki/index.php/OPS335_Installation_Lab#INVESTIGATION_2:_VIRTUAL_MACHINE_INSTALLATION lab setup]. You can have have 2 different network names: "335assign" and "ops335" without causing any problems).
* Addresses in this network will start with '''172.1728.15105'''. The subnet mask must be '''255.255.255.0'''
* There must '''<u>NOT</u>''' be a DHCP server running for this network!
* All the machines for this assignment will be connected to your newly-created virtual network called: '''335assign'''
Details for the cloning-source
#The name of this cloning-source VM will be called: '''cloynepangaea'''.#You should use the options that you used in your lab1 to setup the static network, plus you should use the DOMAIN parameter to set the '''townscontinents.ontarioearth.ops''' domain for your cloning-source.
#The VM should have a command-line interface only.
#Configure it to be a good cloning-source, '''making certain that the cloning-source has all the following elements prior to cloning:'''
::*Don't make the virtual drive too big: you will need space for it as well as space for the clones you from your cloning-source<br>('''5 GB''' should be enough for any cloning-source and clone VM that you create for this assignment).
::*The hostname for this server will be called: '''cloynepangaea'''
::*Make certain that you can login to your cloning-source.
::*Configure your network interface for this cloning-source with a '''static''' configuration and is connected to the '''335assign''' network. Refer to the table below for IP address and hostname.<br>
|-
| style="background-color:#66cccc; border: 2px solid black;" | (your existing host / source)
| style="background-color:#66cccc; border: 2px solid black;" | External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.1728.15105.1'''
| style="background-color:#66cccc; border: 2px solid black;" | Your '''host''' machine
|-
| style="background-color:#66cccc; border: 2px solid black;" | '''cloynepangaea.townscontinents.ontarioearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | '''172.1728.15105.100'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Cloning-source''' used to create other servers for other assignments.
|}
<ol><li value="5">Make certain your cloning-source can connect to the Internet using the newer static configuration.</li><li>Run a '''yum update''' for this cloning-source.</li><li>Make certain that SELinux is set to '''enforcing'''(unless you're in Andrew or Hans' sections - then have it '''disabled''').</li><li>Set up an SSH server on this "cloning-source".</li><li> Make sure that '''PermitRootLogin''' is set to '''yes''' for this server.</li><li>Make certain that only the root account is permitted to login only using key authentication. If other users are required to be created in a later assignment, they should be permitted to log in with their username and password.</li><li>Copy the same public key (already generated for your '''Host Machine''' for your '''root''' account in lab1) to the '''root''' account on your cloning-source.</li><li>Test to make certain that you can login from root on your host machine to your root account on the cloning-course ("cloynepangaea") <u>'''without '''</u> being prompted for a pass-phrase.</li><li>If you have created a '''regular user''' when you installed this machine, '''<u>delete </u> that regular user''' (make certain to '''remove the regular user's home directory!''').</li></ol>
=== Set-up Firewall Rules for your Cloning-Source===
# Issue the command '''su -'''
# Create a Bash shell script called '''/root/bin/assnBackup.bash''' to perform a '''full backup''' using the '''gzip''' command to backup the entire file system of your cloning-source VM to save the compressed copy to the directory path: '''/backup/full/''').
# This shell script should store read each of any number of VM image files in the '''/var/lib/libvirt/images''' directory that has the extension ".qcow2". In this way, this shell script will safely backup any new VMs that are created later in this course, yet backup the existing labs and assignment VMs.
# Perform a Net-search to use the '''pv''' (''pipe-viewer'') command to show a text-based indicator of backup for EACH VM image file. You need to add the '''EPEL repository''' to install the pv command.
# Set execute permissions for this script, and '''run this Bash shell script prior to exiting your assignment work session to properly backup your cloning source'''. You should also make a copy of the backup on an external device (such as a USB key).
===Assignment Evaluation Details===
*'''Demonstrate working assignment to your instructor in class:'''<ol type="a"><li>Students need to can demonstrate their assignment functionality to their professor during a lab period (like you would for any lab for "sign-off").</li><li>Students are required to prepare everything ahead of time so that you can quickly demonstrate to your instructor that all required parts of your assignment are working.</li><li>'''Do not proceed to The idea of the next step''' until you have demonstrated demonstration of your assignment to your instructor is to check for errors that may cause problems when running the checking script.<br><br></li></ol>
*Download and run a shell script to check your work (Depending on your OPS335 Instructor):
 ::'''Peter Callaghan's Classes''' (Section '''D'''):<ul><li>Refer to instruction on blackboard for instructions on how to submit this assignment.</li></ul>  ::'''Murray Saul, Ryan Lockhart-Thompson and Colin Yip''' (Section '''A''' &amp; '''B'''):<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that your '''cloning-source VM is running'''.</li><li>Make certain that the mailx command has been installed. If not, issue the following command to install e-mail on your '''host''' machine:<source>yum install mailx </source><li>Issue the command to download a checking script for your assignment to your '''host''' machine:<br><br>'''Murray Saul's classes (section A):''' &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em1em;color:#4d4dff">wget https://matrix.senecacollege.ca/~murrayahad.saulmammadov/ops335/check-assn1-p1-murray.bash</span><br><br>'''Ryan Lockhart-Thompons's classes (Section B):''': &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff">wget https:files//scs.senecac.on.ca/~murray.saulOPS335/check-assn1-p1-ryan.bash</span><br><br>'''Colin Yip's classes (Section C, E, and F):''': &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff">wget https://scs.senecac.on.ca/~murray.saul/check-assn1-p1-colin.bash</spanli><br><brli>Set execute permissions and run the shell script.<br>(Your shell script contents It will be mailed create a tar file for you to upload as your Seneca email and submission to your OPS335 instructor's Seneca emailblackboard.<br/li><br/ol>If you do '''NOT''' receive an e-mail message in your Seneca email account, then there is a problem, and you '''MUST''' rerun or contact your OPS335 instructor immediately.
==Evaluation Rubric==
{| class="wikitable" width=50%
|-
| colspan=2 style="text-align:center;background-color:#cccccc;" |'''Student Demonstration (in class)'''(optional)
|-
| style="font-weight:bold" | Evaluation Item
| width=10% style="text-align:right;font-weight:bold" | Mark
|-
| Hostname set to: '''cloynepangaea''' only, domain name '''townscontinents.ontarioearth.ops''' set as a network parameter
| style="text-align:right" | /1
|-
13
edits

Navigation menu