Difference between revisions of "OPS335 Assignment 1a - Murray Saul"

From CDOT Wiki
Jump to: navigation, search
(Create a "Cloning-Source" VM (335assign Virtual Network))
 
(45 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Admon/important|This is NOT Assignment 1 Part 1!|This is the '''ROUGH WORK''' for Murray Saul's section for OPS335 Assignment 1 - Part 1. These assignment specifications are NOT complete. <br><br>Once the assignment specifications are ready, then a link will appear in the [https://wiki.cdot.senecacollege.ca/wiki/OPS335 Main OPS335 WIKI] .}}<br><br>
 +
 
== Purpose ==
 
== Purpose ==
  
In this assignment you will set up the basic functionality for a virtual machine to act as a '''cloning-source''' to make it easier for the student to create other servers (VMs) in later assignments. Whenever you clone another server (in later assignments), you MUST make certain to configure the cloned server in order to make it function in the network correctly and meet the requirements of future assignments. All of the assignments for this course are '''<u>interdependent</u>''' of each other and belong to the same Virtual Private Network called '''335assign'''.
+
For this portion of assignment 1, you will set up the basic functionality for a virtual machine to act as a '''cloning-source''' to make it easier for the student to create other servers (VMs) in later assignments. Whenever you clone another server (in later assignments), you MUST make certain to configure the cloned server in order to make it function in the network correctly and meet the requirements of future assignments. All of the assignments for this course are '''<u>interdependent</u>''' of each other and belong to the same Virtual Private Network called '''335assign'''.
  
 
== General Requirements ==
 
== General Requirements ==
Line 16: Line 18:
  
 
* 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).
 
* 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 '''164.30.20'''. The subnet mask must be '''255.255.255.0'''
+
* Addresses in this network will start with '''172.30.20'''. The subnet mask must be '''255.255.255.0'''
 
* There must '''<u>NOT</u>''' be a DHCP server running for this network!
 
* 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'''
 
* All the machines for this assignment will be connected to your newly-created virtual network called: '''335assign'''
Line 22: Line 24:
 
=== Create a "Cloning-Source" VM (335assign Virtual Network) ===
 
=== Create a "Cloning-Source" VM (335assign Virtual Network) ===
  
Create a virtual machine that you will use as a template (i.e. '''cloning-source'''). It should have a command-line interface only. Configure it to be a good cloning-source, making certain it has all the following elements prior to cloning:
+
Create a virtual machine that you will use as a cloning-source.
  
# 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>('''2GB''' should be enough for any cloning-source and clone VM that you create for this assignment).
+
Details for the cloning-source
# The hostname for this server will be called: '''cloning-source'''
+
 
# Make certain that you can login to your cloning-source.
+
#The name of this cloning-source VM will be called: '''seedling'''.
# 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>
+
#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 '''coniferous.trees.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>('''2GB''' should be enough for any cloning-source and clone VM that you create for this assignment).
 +
::*The hostname for this server will be called: '''seedling'''
 +
::*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>
  
 
{| class="wikitable" | style="margin-left:50px;"
 
{| class="wikitable" | style="margin-left:50px;"
 
! Hostname !! Address !! Purpose
 
! Hostname !! Address !! Purpose
 
|-
 
|-
| '''host.ops335.org''' ||  External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 164.30.20.1''' || Your '''host''' machine
+
| '''spruce.coniferous.trees.ops''' (your existing source) ||  External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.30.20.1''' || Your '''host''' machine
  
 
|-
 
|-
| '''cloning-source.ops335.org''' || '''164.30.20.100'''  || '''Cloning-source''' used to create other servers for other assignments.
+
| '''seedling.coniferous.trees.ops''' || '''172.30.20.100'''  || '''Cloning-source''' used to create other servers for other assignments.
 
|}
 
|}
  
<ol><li value="5">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 '''ops335.org''' domain for your cloning-source.</li><li> 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'''.</li><li>Set up an SSH server on this "cloning-source".</li><li> Make sure that '''PermitRootLogin''' is set to '''yes''' for this server. Also make sure that only the root account is permitted to login using key authentication. If other users are required to be created in a later assignment, they should be permitted to log in with a 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 to your cloning-course using the '''root''' account.</li><li>If you have created a '''regular user''' when you installed this machine, '''delete that regular user''' (make certain to '''remove the regular user's home directory!''').</li><li>Make sure you can log in from your '''root account''' on your '''Host Machine''' to the '''root account''' on the '''cloning-source''' virtual machine (without a pass-phrase).</li></ol>
+
 
 +
 
 +
<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'''.</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 ceratin that only the root account is permitted to login using key authentication. If other users are required to be created in a later assignment, they should be permitted to log in with a 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 ("seedling") without being prompted for a pass-phrase.</li><li>If you have created a '''regular user''' when you installed this machine, '''delete that regular user''' (make certain to '''remove the regular user's home directory!''').</li></ol>
  
 
=== Set-up Firewall Rules for your Cloning-Source===
 
=== Set-up Firewall Rules for your Cloning-Source===
Line 45: Line 55:
  
 
# Make certain that you have '''iptables''' services enabled and running instead of ''Firewalld''.  
 
# Make certain that you have '''iptables''' services enabled and running instead of ''Firewalld''.  
# The default iptables rules should be OK, so you are NOT required to make any iptables rules for this portion of the assignment.
+
# Modify the iptables to meet the following conditions:
 +
::<ul>
 +
::<li>All outgoing traffic is allowed.</li>
 +
::<li>Responses to any traffic the machine sends out are allowed.</li>
 +
::<li>Traffic on the loopback interface is allowed.</li>
 +
::<li>The host machine (and <b>only</b> the host machine) must be able to ssh to that cloning-source VM.</li>
 +
::<li>ICMP traffic is allowed if it originated with the <b>local network only</b>.</li>
 +
::<li>As this is acting as the secure basis for later machines, no other traffic should be allowed.</li>
 +
::</ul>
  
 
=== Create Full and Incremental Backups of cloning-source VM===
 
=== Create Full and Incremental Backups of cloning-source VM===
Line 53: Line 71:
 
# This task is to be performed in your '''host''' machine.
 
# This task is to be performed in your '''host''' machine.
 
# Issue the command '''su -'''
 
# Issue the command '''su -'''
# Create the following directory: '''/root/bin'''
 
 
# 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/''').  
 
# 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 any VM image file in the "/var/lib/libvirt/images" directory that has the extension ".qcow2" as a positional parameter to be used with a for loop.  
 
# This shell script should store any VM image file in the "/var/lib/libvirt/images" directory that has the extension ".qcow2" as a positional parameter to be used with a for loop.  
# 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 (taught in OPS235) to install the pv command.
+
# 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).
 
# 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).
# Set-up via a crontab entry, an '''incremental backup''' of the '''/etc/''' directory of your cloning-source to be performed every hour to the '''/backup/incremental/cloning-source''' directory (that you should create).
+
# Set-up via a crontab entry, an '''incremental backup''' of the '''/etc/''' directory of your cloning-source to be performed every hour to the '''/backup/incremental/cloning-source''' directory.
 +
 
  
 
== Assignment Submission ==
 
== Assignment Submission ==
Line 67: Line 85:
  
 
*'''Demonstrate working assignment to your instructor in class:'''<ol type="a"><li>Students need to 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 do proceed to the next step until you have demonstrated your assignment to your instructor to check for errors that may cause problems when running the checking script.<br><br></li></ol>
 
*'''Demonstrate working assignment to your instructor in class:'''<ol type="a"><li>Students need to 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 do proceed to the next step until you have demonstrated your assignment to your instructor to check for errors that may cause problems when running the checking script.<br><br></li></ol>
*'''Download and run a shell script that will check your set-up:'''<ol type="a"><li>Login as '''root''' on your '''host''' machine.</li><li>Make certain that your '''cloning-source VM is running'''.<li>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: <source>wget http://matrix.senecac.on.ca/~murray.saul/ops335/check-assn1-p1.bash</source></li><li>Set execute permissions and run the command: '''./shellscriptname.bash'''<br>(You shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email. 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.<br><br></li></ol>
+
 
 +
*Download and run a shell script to check your work (Depending on your OPS335 Instructor):
 +
 
 +
 
 +
::'''Peter Callaghan's Classes (Sections C &amp; D):'''<ul><li>Refer to instruction on Moodle to download and run marking shell script</li></ul>
 +
 
 +
 
 +
::'''Murray Saul's Classes (Sections 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>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: <source>wget http://matrix.senecac.on.ca/~murray.saul/ops335/check-assn1-p1.bash</source></li><li>Set execute permissions and run the command: '''/root/bin/check-assn1-p1.bash'''<br>(You shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email. 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.<br><br></li></ol>
 
*'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><li>Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to '''resubmit'''.</li><li>'''Late submissions are a subject to a penalty of 10% per day'''.</li><ol>
 
*'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><li>Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to '''resubmit'''.</li><li>'''Late submissions are a subject to a penalty of 10% per day'''.</li><ol>
  
===Evaluation Rubric===
+
==Evaluation Rubric==
  
 
Here is an evaluation rubric (in table form) showing you how you will be evaluated for this assignment.
 
Here is an evaluation rubric (in table form) showing you how you will be evaluated for this assignment.
Line 85: Line 110:
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
| Can Ping cloning-source from host machine with correct IPADDR
+
| Can '''ping cloning-source from host machine''' with '''correct IPADDR'''
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
| root account on host machine can connect to cloning-source VM via ssh application '''without''' password
+
| root account on host machine can '''connect to cloning-source VM''' via ssh application '''without''' password
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
Line 94: Line 119:
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
| cloning-source can SSH to your '''Matrix''' account<br>(i.e. your Matrix account)
+
| cloning-source can SSH to student's '''Matrix''' account
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
Line 102: Line 127:
 
| width=10% style="text-align:right;font-weight:bold" | Mark
 
| width=10% style="text-align:right;font-weight:bold" | Mark
 
|-
 
|-
| Hostname set to: '''cloning-source'''   
+
| Hostname set to: '''seedling''' for cloning source  
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
| yum update performed   
+
| '''yum update performed'''  
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
| No regular users (just root)   
+
| '''No regular users on cloning source''' (just root)   
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
Line 115: Line 140:
 
|-
 
|-
 
| firewalld '''stopped''' and '''inactive'''
 
| firewalld '''stopped''' and '''inactive'''
| style="text-align:right" | /2
+
| style="text-align:right" | /1
 
|-
 
|-
 
| iptables '''active''' and '''enabled'''
 
| iptables '''active''' and '''enabled'''
| style="text-align:right" | /2
+
| style="text-align:right" | /1
 +
|-
 +
| iptables - '''All outgoing traffic is allowed'''
 +
| style="text-align:right" | /1
 +
|-
 +
| iptables - The '''host machine''' (and only the host machine) must be '''able to ssh to the cloning-source'''
 +
| style="text-align:right" | /1
 +
|-
 +
| iptables - '''ICMP traffic is allowed''' if it originated with the '''local network only'''
 +
| style="text-align:right" | /1
 +
|-
 +
| cloning-source VM can '''connect to the Internet'''
 +
| style="text-align:right" | /1
 
|-
 
|-
 
| '''correct static network configuration for cloning-source VM'''<br>(half mark for each network config item)
 
| '''correct static network configuration for cloning-source VM'''<br>(half mark for each network config item)
 
| style="text-align:right" | /5
 
| style="text-align:right" | /5
|-
 
| cloning-source VM can connect to the Internet
 
| style="text-align:right" | /2
 
 
|-
 
|-
 
| permitRootLogin set to '''yes''' for cloning-source VM
 
| permitRootLogin set to '''yes''' for cloning-source VM
Line 132: Line 166:
 
| style="text-align:right" | /2
 
| style="text-align:right" | /2
 
|-
 
|-
| Proof that VM full backup was run
+
| Proof that '''VM full backup''' was run
 
| style="text-align:right" | /2
 
| style="text-align:right" | /2
 
|-
 
|-
| Crontab entries run
+
| '''Crontab entries executed properly'''
 
| style="text-align:right" | /2
 
| style="text-align:right" | /2
 
|-
 
|-
| Incremental Backup of '''/etc/''' directory of cloning-source to '''/backup/incremental/cloning-source''' directory
+
| '''Incremental Backup''' of '''/etc/''' directory of cloning-source to '''/backup/incremental/cloning-source''' directory
 
| style="text-align:right" | /2
 
| style="text-align:right" | /2
 
|-
 
|-

Latest revision as of 08:10, 29 January 2017

Important.png
This is NOT Assignment 1 Part 1!
This is the ROUGH WORK for Murray Saul's section for OPS335 Assignment 1 - Part 1. These assignment specifications are NOT complete.

Once the assignment specifications are ready, then a link will appear in the Main OPS335 WIKI .


Purpose

For this portion of assignment 1, you will set up the basic functionality for a virtual machine to act as a cloning-source to make it easier for the student to create other servers (VMs) in later assignments. Whenever you clone another server (in later assignments), you MUST make certain to configure the cloned server in order to make it function in the network correctly and meet the requirements of future assignments. All of the assignments for this course are interdependent of each other and belong to the same Virtual Private Network called 335assign.

General Requirements

Weight: 3% of the overall grade

Due Date: During Week 5 (in class)

Detailed Requirements

Set-up a Virtual Network (335assign)

Create a new virtual network on your Host Machine.

  • Assign a newly-created virtual network the name: 335assign, and set forwarding to any physical device
    (refer to 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.30.20. The subnet mask must be 255.255.255.0
  • There must NOT 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

Create a "Cloning-Source" VM (335assign Virtual Network)

Create a virtual machine that you will use as a cloning-source.

Details for the cloning-source

  1. The name of this cloning-source VM will be called: seedling.
  2. 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 coniferous.trees.ops domain for your cloning-source.
  3. The VM should have a command-line interface only.
  4. 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
    (2GB should be enough for any cloning-source and clone VM that you create for this assignment).
  • The hostname for this server will be called: seedling
  • 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.
Hostname Address Purpose
spruce.coniferous.trees.ops (your existing source) External Facing Address: DHCP assigned
Internal Virtual Bridge (virbr1): 172.30.20.1
Your host machine
seedling.coniferous.trees.ops 172.30.20.100 Cloning-source used to create other servers for other assignments.


  1. Make certain your cloning-source can connect to the Internet using the newer static configuration.
  2. Run a yum update for this cloning-source.
  3. Make certain that SELinux is set to enforcing.
  4. Set up an SSH server on this "cloning-source".
  5. Make sure that PermitRootLogin is set to yes for this server.
  6. Make ceratin that only the root account is permitted to login using key authentication. If other users are required to be created in a later assignment, they should be permitted to log in with a their username and password.
  7. 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.
  8. Test to make certain that you can login from root on your host machine to your root account on the cloning-course ("seedling") without being prompted for a pass-phrase.
  9. If you have created a regular user when you installed this machine, delete that regular user (make certain to remove the regular user's home directory!).

Set-up Firewall Rules for your Cloning-Source

Perform the following steps for this section:

  1. Make certain that you have iptables services enabled and running instead of Firewalld.
  2. Modify the iptables to meet the following conditions:
  • All outgoing traffic is allowed.
  • Responses to any traffic the machine sends out are allowed.
  • Traffic on the loopback interface is allowed.
  • The host machine (and only the host machine) must be able to ssh to that cloning-source VM.
  • ICMP traffic is allowed if it originated with the local network only.
  • As this is acting as the secure basis for later machines, no other traffic should be allowed.
  • Create Full and Incremental Backups of cloning-source VM

    Perform the following steps for this section:

    1. This task is to be performed in your host machine.
    2. Issue the command su -
    3. 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/).
    4. This shell script should store any VM image file in the "/var/lib/libvirt/images" directory that has the extension ".qcow2" as a positional parameter to be used with a for loop.
    5. 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.
    6. 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).
    7. Set-up via a crontab entry, an incremental backup of the /etc/ directory of your cloning-source to be performed every hour to the /backup/incremental/cloning-source directory.


    Assignment Submission

    The student is required to prove to their professor that their set-up works correctly during the regularly-scheduled lab period.

    Assignment Evaluation Details

    • Demonstrate working assignment to your instructor in class:
      1. Students need to demonstrate their assignment functionality to their professor during a lab period (like you would for any lab for "sign-off").
      2. 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.
      3. Do do proceed to the next step until you have demonstrated your assignment to your instructor to check for errors that may cause problems when running the checking script.

    • Download and run a shell script to check your work (Depending on your OPS335 Instructor):


    Peter Callaghan's Classes (Sections C & D):
    • Refer to instruction on Moodle to download and run marking shell script


    Murray Saul's Classes (Sections A & B):
    1. Login as root on your host machine.
    2. Change to the /root/bin directory.
    3. Make certain that your cloning-source VM is running.
    4. Issue the following command to install e-mail on your host machine:
      yum install mailx
    5. Issue the command to download a checking script for your assignment to your host machine:
      wget http://matrix.senecac.on.ca/~murray.saul/ops335/check-assn1-p1.bash
    6. Set execute permissions and run the command: /root/bin/check-assn1-p1.bash
      (You shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email. 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.

    • Additional Assignment Information:
      1. This assignment is to be completed individually. Group submissions are not allowed.
      2. Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to resubmit.
      3. Late submissions are a subject to a penalty of 10% per day.

      Evaluation Rubric

      Here is an evaluation rubric (in table form) showing you how you will be evaluated for this assignment. Part of the rubric is marked from professor observation from student demonstration of assignment in class, and the other part is based on output from the results of an assignment checking script that the student will download and run.

      Student Demonstration (in class)
      Evaluation Item Mark
      Created Virtual Network: 335assign
      (correct settings)
      /1
      Can ping cloning-source from host machine with correct IPADDR /1
      root account on host machine can connect to cloning-source VM via ssh application without password /1
      cloning-source VM can connect to the Internet
      (i.e. ping 8.8.8.8)
      /1
      cloning-source can SSH to student's Matrix account /1
      Configuration (Checking Script Output)
      Evaluation Item Mark
      Hostname set to: seedling for cloning source /1
      yum update performed /1
      No regular users on cloning source (just root) /1
      SELinux status set to: enforcing /1
      firewalld stopped and inactive /1
      iptables active and enabled /1
      iptables - All outgoing traffic is allowed /1
      iptables - The host machine (and only the host machine) must be able to ssh to the cloning-source /1
      iptables - ICMP traffic is allowed if it originated with the local network only /1
      cloning-source VM can connect to the Internet /1
      correct static network configuration for cloning-source VM
      (half mark for each network config item)
      /5
      permitRootLogin set to yes for cloning-source VM /2
      Backup script assnBackup.bash structure /2
      Proof that VM full backup was run /2
      Crontab entries executed properly /2
      Incremental Backup of /etc/ directory of cloning-source to /backup/incremental/cloning-source directory /2
      TOTAL /30