Changes

Jump to: navigation, search

OPS335 Lab 1

1 byte removed, 16:23, 18 December 2012
m
Changed references to F16 to F17.
[[Category:OPS335]][[Category:OPS335 Labs]]
==Configuring a Linux Gateway==
This lab will show you how to set up a simple intranet using one Fedora PC as a gateway. The same Fedora PC will be a host a small group of Fedora 16 17 VM's (Virtual Machine) which will act as PC's inside an intranet. Here is a diagram of your setup.<br /><br /><center>[[Image:lab01.png]]</center>{{Admon/important|Requirement - Lab 0|Lab 0 should be completed and you should have a copy of Fedora 1617, x86_64 LIVE ISO Image.}}
==Instructions==
===Managing services using systemd===
Boot up your Fedora 16 17 x86_64 system, login with your learn id and use Firefox to authenticate yourself on Senenet so you can download and install new software.
*Open a terminal window and su to root.
*Ensure your system date and time are correct.
===How to change the default runlevel using systemd===
Fedora 16 17 does not use '/etc/inittab' to set the default run level but rather uses targets as a more flexible replacement. Note the output of the following command:
ll /etc/systemd/system/*.target
lrwxrwxrwx. 1 root root 36 Dec 3 09:35 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel5.target
=== Installing the first guest machine ===
With the virtualization software installed and your personal network created, you are now ready to create your first "Virtual Machine". Use the Fedora 16 17 x86 64 bit disk to install, or download an iso from Belmont (these links will only work at school). wget http://belmont.senecac.on.ca/fedora/releases/1617/Live/x86_64/Fedora-1617-x86_64-Live-Desktop.iso
or
wget http://belmont.senecac.on.ca/fedora/releases/1617/Live/x86_64/Fedora-1617-x86_64-Live-KDE.iso
*Click on the icon "Create a new virtual machine" to begin.
*Name your machine "f16f17-vm01" and choose your installation method - "Local install media". Choose the desired option to install from either the CD or iso. For "OS type" select "Linux" and for Version select "Fedora 1617" then click on the "Forward" button.
*Use the default memory and CPU options for use with lab computers (Depending available hardware these settings can be adjusted). Then click on the "Forward" button to proceed.
*Leave the disk image size set at 8GB, ensure "Allocate entire disk now" is checked, then click on the "Forward" button.
=== Creating additional Clone VM's ===
To quickly create additional VM's shutdown 'f16f17-vm01', right click and select 'Clone...'. Use the following options:*Name: f16f17-vm02
*Storage:
**Click the drop down menu below 'f16f17-vm01.img', choose details and rename the image to the f16f17-vm02.img
Once successfully created boot the new VM and correct the host name. This can be done using the GUI or command line.
*Record in your notes how each is done.
*After creating f16f17-vm02 repeat the above steps to create f16f17-vm03 and correct the host name.
*Check for connectivity.
932
edits

Navigation menu