Difference between revisions of "OPS335 Assignment 1 - 2016-1"

From CDOT Wiki
Jump to: navigation, search
(OPS335 Assignment 1)
(List of Machines / DNS Records)
Line 66: Line 66:
 
| source.ops335a1.org|| 10.161.X.254 || Disk image to clone from when creating new machines.
 
| source.ops335a1.org|| 10.161.X.254 || Disk image to clone from when creating new machines.
 
|}
 
|}
 +
 +
== Test Plan ==
 +
 +
...
 +
 +
= Submit =
 +
 +
Submit the following in Blackboard or Moodle (whatever your professor uses):
 +
 +
# Screenshots (of the entire screen, not just the VM console) that show you have accomplished the required tasks. This includes configuration files, service statuses, and basic tests of functionality.
 +
# The test plan.
 +
 +
Also you need to show your assignment to the professor in a lab period, just as a lab but please prepare everything so you can immediately show that all required parts are working.

Revision as of 15:00, 7 February 2016

OPS335 Assignment 1

Weight: 10% of the overall grade

Due Date:

  • If your professor is Andrew Smith: 22 February

Your tasks

Virtual Network

Create a new virtual network in your host.

  • Give it the name asg1net, forwarding to any physical device.
  • Addresses in this network will start with 10.161, followed by the last two digits of your student number (just as your main virtual network). The subnet mask must be 255.255.255.0
  • There must not be a DHCP server running in this network.
  • All the machines for this assignment will be connected to this virtual network.

source

Create a virtual machine you will use as a cloning source. It should have a command-line only interface. Configure it to be a good cloning source. Since every other machine in this network will be cloned from it - you should set it up to be pleasant to use.

  1. Don't make the virtual drive too big - you'll need space for it and clones you make from it. 2GB should be enough for anything you do in this assignment.
  2. Log in and run some commands you expect to be there, and make sure they're installed (minimum commands needed: host, dig, netstat, links).
  3. Don't install software here that you'll only need in one of the cloned VMs. E.g. if you're going to install apache in a clone - install it there, not in the source - since you don't want apache installed everywhere.
  4. Configure your network with a static configuration. See the table below for IP address and hostname.
  5. Make sure you have iptables services enabled running instead of Firewalld. The default rules should suffice.
  6. If you created a user when you installed the machine - delete that user. You'll only have root left.
  7. Set up an SSH server on this machine. Make sure root is only allowed to log in using key authentication. Other users should still be able to log in with a username/password.
  8. Generate a new key pair on your host (don't delete the existing one), called id_rsa_asg1
  9. Make sure you can log in from your regular user on the host to root on the virtual machine using specifically that key.
  10. Do not place the private key on the VM.

ns1

Clone the souce to create a machine that will be your master DNS server on this network. See the table below for address and hostname.

Your DNS server must have all the records for the zone ops335a1.org listed in that table, including records for machines that don't exist yet. It's important to understand that DNS records live independently from the machines they are pointing to.

A default setup for a master DNS server is mostly enough, but make sure the address of your admin contact is yoursenecaid@ops335a1.org, and that slave DNS servers will check for updated records from this master every 30 minutes.

ns2

Clone the souce to create a machine that will be your slave DNS server on this network. See the table below for address and hostname.

ns2 will serve the same records as ns1.

List of Machines / DNS Records

All the machines in the table need DNS records, but only the ones in bold need to be existing machines for this assignment.

Name Address Purpose
host.ops335a1.org 10.161.X.1 Your host machine
ns1.ops335a1.org 10.161.X.2 Master name server
ns2.ops335a1.org 10.161.X.3 Slave name server
file.ops335a1.org 10.161.X.4 File server
www.ops335a1.org 10.161.X.5 Web server
source.ops335a1.org 10.161.X.254 Disk image to clone from when creating new machines.

Test Plan

...

Submit

Submit the following in Blackboard or Moodle (whatever your professor uses):

  1. Screenshots (of the entire screen, not just the VM console) that show you have accomplished the required tasks. This includes configuration files, service statuses, and basic tests of functionality.
  2. The test plan.

Also you need to show your assignment to the professor in a lab period, just as a lab but please prepare everything so you can immediately show that all required parts are working.