Changes

Jump to: navigation, search

OPS335 Lab 1

50 bytes added, 15:40, 5 September 2011
Setting up the VM Host PC with one guest VM
*Click on the icon "Create a new virtual machine".
*Name your machine "vm01" then click on the "forward" button.
*Insert your F13 CD and select "Use CDROM".*For "OS type" select "Linux" and for Version select "Fedora 13" then click on the "Forward" button.*Let the RAM default to 512MB and the CPUs to 1. Then click on the "Forward" button.*Leave the disk image size set at 8GB and ensure "Allocate entire disk now" is checked, then click on the "Forward" button.*At the "Ready to begin installation" window click on the "Finish" button.*Once your Fedora Live CD boots up, login and double click the "Install to Hard Disk" icon.*Click the "Next" button to begin your F13 installation.*Select "US English" for your keyboard and click on the "Next" button.*Ensure "Basic Storage Devices" is selected and click on the "Next" button.*Select the "Virtio Block Device" check box and click on the "Next" button.*Click on the "Re-initialize All" button".*Change your hostname to "vm01.localdomain" and click on the "Next" button.*Select "America/Toronto" as your timezone and click on the "Next" button.*Enter the password for root and click on the "Next" button.*Select "Use All Space" and click on the "Next" button.*Click on the "Write Changes to Disk" button.*When the "Congratulations" window is displayed click on the "Close" button.*Now, from the System men on the host PC, select "Shutdown" and then click on the "Restart" button.*At the "Welcome" screen click on the "Froward" button.*At the "License" window click on the "Forward" button.*Enter a user name of "Joker" and add the password then click the "Forward" button.*Enter the correct date and time and click on the "Forward" button.*In the "Profile" window, click on the "Finish" button and "Do not send profile".*Now login as user "joker" and open a terminal window.*Switch to root and update your VM guest machine [ yum update ]. This could take a long time and you should reboot after it's done.*Ensure your VM guest has internet access [ host cbc.ca ].
Proceed to PART B. ==PART B - Testing your Gateway.==*Try pinging each machine from the other.*Try pinging Matrix from each machine.*Start the ssh server on both machines [ service sshd start ].*Enable the ssh server at startup on both machines [ chkconfig --levels 2345 sshd on ].*Start Firefox on your host machine and authenticate yourself on Senenet.*Try to ssh from the guest to the host machine. This should work.*Try to ssh from the host to the guest machine. This should not work.*Try to ssh to your Matrix account from both the host and guest machines.*Try to ssh from your Matrix account back to your host and guest machines.*Add one iptables rule to the guest firewall that will accept new ssh connections to the guest machine.*Save your new firewall rules [ iptables-save > /etc/sysconfig/iptables ]*Reboot your guest machine.*Try to ssh from the host to the guest machine. This should now work.*Start Firefox on the guest machine and try surfing the web without authicating yourself on Senenet. i.e. only the host machine is authenticated. == PART C - Answer the following questions and and email them to your instructor in ASCII text format.==
What is your full name and Seneca student ID?
1
edit

Navigation menu