13
edits
Changes
→Create a "Cloning-Source" VM (335assign Virtual Network)
== General Requirements ==
'''Weight''': '''32.5%''' of the overall grade
'''Due Date''': During '''Week 5''' (check with your professor)
== Detailed Requirements ==
<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 ("pangaea") <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:
<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>Issue the command to download a checking script for your assignment to your '''host''' machine:<br><span style="font-family:courier;font-size:1em;color:#4d4dff
"> wget https://matrix.senecacollege.ca/~peterahad.callaghanmammadov/files/OPS335/check-assn1-p1.bash</span><br><br></li><li>Set execute permissions and run the shell script.<br>It will create a tar file for you to upload as your submission to blackboard.</li></ol>
==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