Changes

Jump to: navigation, search

OPS235 Lab 2 Braille

6,547 bytes removed, 03:37, 3 February 2012
Investigation 1: Installing from a Live Disc
== Investigation 1: Installing from a Live Disc ==
{{Admon/tip|Using an Image instead of a Live Disc|It is recommended that you perform this installation from your Fedora LIVE CD. As a matter of interest (for future reference), it is possible to download the .iso image file from http://belmont.senecac.on.ca/fedora/releases/16/Live/x86_64/Fedora-16-x86_64-Live.iso and install directly from that file. There are many Internet tutorials that show the individual how to perform that task.}} ==== Introduction ==== In this investigation, you will install Fedora from your live disc, and observe the differences between this type of installation and the DVD installation previously performed. ==== VM Details ====
* '''Name:''' fedora1
* '''Boot media:''' Fedora Live CD
* '''Installation source:''' Network server: http://belmont.senecac.on.ca/fedora/releases/16/Fedora Live CD/x86_64/os/* '''Kickstart file:''' http://zenit.senecac.on.ca/~chris.tyler/fedora16-vda-ks.cfg
* '''Memory:''' 768MB
* '''Disk space:''' 10GB
* '''CPUs:''' 1
==== Screen-Shot Thumbnail Reference ==== {{Admon/note|Virtual Machine Screen Shots Thumbnails|While performing the Virtual Machine setup, click on the thumbnails below to provide a '''"visual reference"''' while performing this section.}} {|cellpadding="8" width="100%" |[[Image:Virt-manager1.png|thumb|125px| '''Virtual Machine Manager:''' Create a New Virtual Machine]]|[[Image:Virt-manager2.png|thumb|100px|'''Step 1 of 5:''' Create a New Virtual Machine ]]|[[Image:virtual-manager3.png|thumb|100px|'''Step 2 of 5:''' Create a New Virtual Machine ]]|[[Image:virtual-manager4.png|thumb|100px|'''Step 3 of 5:''' Create a New Virtual Machine ]]|[[Image:virtual-manager5.png|thumb|100px|'''Step 4 of 5:''' Create a New Virtual Machine ]]|[[Image:virtual-manager6.png|thumb|100px|'''Step 5 of 5:''' Create a New Virtual Machine ]]|} ==== Steps ==== # In the Virtual Machine Manger, click on the icon to ''Create a Virtual Machine'' in the upper-left corner: <br />(refer to '''Virtual Machine Manager''' thumbnail above).# A window will appear with the title ''New VM''. There are five steps to be completed; click Forward after each step:# '''Step 1 of 5:''' Enter the virtual machine (called '''fedora1''') name and select '''Local install media''' (refer to ''Step 1 of 5'' thumbnail above).# '''Step 2 of 5:''' '''Insert the CDROM or DVD containing the Fedora Live Disc image. Wait a moment for the disc to be recognized''', then select '''Use CDROM or DVD''' as the install media. Set the ''OS type'' to '''Linux''' and the ''Version'' to '''Fedora 16''' (refer to ''Step 2 of 5'' thumbnail above).<!-- {{Admon/tip|Using an ISO image|Instead of using a physical CD or DVD, you can use an ISO image of a CD or DVD. The virtualization software will make this ISO image appear like an actual CD within the virtual machine. Because hard disks are faster then optical discs, this will work faster than an actual CD/DVD.}}{{Admon/note|Choosing the operating system type and version|The purpose of the ''OS type'' and ''Version'' fields is to fine-tune some of the virtual machine settings for best performance. The VM will work even if these are set incorrectly.}} --># '''Step 3 of 5:''' Set the memory to '''768 MB''' and the number of CPUs to '''1''' (refer to ''Step 3 of 5'' thumbnail above).# '''Step 4 of 5:''' This next step creates a disk file that will be used to simulate the virtual machine's disk drive. Select a size of '''10 GB''' and checkmark the box labeled '''Allocate entire disk now''' (refer to ''Step 4 of 5'' thumbnail above).# '''Step 5 of 5:''' Review the options that you have selected. '''Make a note of the storage location.''' If anything needs to be changed, use the ''Back'' button to go back and edit it; otherwise, click '''Finish''' (refer to ''Step 5 of 5'' thumbnail above). {{Admon/caution|Removing and Recreating VMs|If for some reason the user wants to remove a Virtual Machine, they can right-click the VM, and select delete in the Virtual Machine Manager. It is recommended to '''"delete the image file" in the remove VM dialog box when removing and then recreating a VM'''. Note: If you fail to properly remove the VM image file, it may affect the hard disk size for the new VM (i.e. use the old smaller size. Make certain to remove that VM image file prior to recreating the VM.|'''}}  {{Admon/note|Fedora LIVE CD Install Screen Shots Thumbnails|While performing the Fedora 16 LIVE CD install, click on the thumbnails below to provide a '''"visual reference"''' while performing this particular Fedora installation.}} {|cellpaddingPerform ="8" width="100%" |[[Image:fedoralive1.png|thumb|100px| The Virtual Machine will now start.]]|[[Image:failedtoload.png|thumb|140px| '''Ignore and close the "Failed To Load" dialog box'''. Search for the panel on the upper-left-hand side of the screen.]]|[[Image:fedoralive2.png|thumb|140px|Login to the VM and double-click:<br /> '''Applications'''<br />>'''System Tools'''<br />>'''Install to Hard Disk'''.]]|[[Image:selectstorage1.png|thumb|100px|Select '''Specialized Storage Devices''']]|[[Image:selectstorage2.png|thumb|100px|Select '''Virtio Block Device'''.]]|[[Image:finishcdinstall.png|thumb|100px|You will get the ''Firstboot'' configuration questions during the boot process.]]|}<ol> <li value="8">'''The virtual machine will now start'''. Select the default menu item labelled: '''Start Fedora 16'''. The virtual machine is running from the live disc at this point, and no software has been installed on the ''hard drive'' of the virtual machine.</li></ol> {{Admon/note|Gnome3: failed to Load Message|A dialog box will indicate that '''Gnome3 Failed to Load'''. This indicates that a "fall-back" or "generic" graphics driver will be used for the session. Just ignore this warning, close the dialog box and proceed with the session.}} <ol> <li value="9">Login to the VM and click: '''Applications'''>'''System Tools'''>'''Install to Hard Drive'''. The installation program, similar to the one used when installing Fedora in Lab 1, will appear. You will get a warning at one point during the installation process that the disk "May contain data" or "may need to be re-initialized" -- this is simply a warning that the virtual disk is completely blank, and it is safe to proceed with the installation.</li></ol> {{Admon/note|Virtual Machine Screen Size|The virtual machine screen size will change resolution as it switches from text to graphics mode. Use the VM menu option View>Resize to VM to resize the window to show the entire VM display. If this is larger than your screen size, use View>Scale Display>Always to scale the image so it fits on your screen.}}<ol> <li value="10">During the installation process, when prompted for a storage device, first select '''Specialized Storage Devices''', and then select the '''Virtio Block Device''' option.</li> <li>When prompted for the hostname, enter '''fedora1''', and when prompted for the timezone, select '''Toronto - Eastern Time Ontario''', and when asked about storage, select '''Use All Space'''. '''Use the default values for all other fields.''' Notice that the installer does not ask you what software should be installed; compare the installation time to the amount of time it took to do your Lab 2 installation. Record this information in the '''table contained in Investigation 4'''.</li> <li>When the installation is complete, click on the '''reboot''' button at the bottom right-hand corner of the screen.</li></ol> {{Admon/note|Error Message|If you experience an error message, exit the VM window, close the Virtual Machine Manager program, reboot your host (main) computer, login and restart the Virtual Machine Manager program. Failure to follow this instructions can lead students to think that the virtual machine was not installed (when it was indeed installed).}}
<ol># Record the current time. <li value# Run this command to start the installation of a virtual machine named fedora1: virt-install --connect qemu:///system --name fedora1 -r 768 --os-variant fedora16 --network network=default --disk /var/lib/libvirt/images/f16-ks-1,size="13">Start 10 -l http://belmont.senecac.on.ca/fedora/releases/16/Fedora/x86_64/os/ -x ks=http://zenit.senecac.on.ca/~chris.tyler/fedora16-vda-ks.cfg --noautoconsole# The virtual machine will stop when the VM from its disk imageinstallation is complete. This You can be done graphically by selecting see if the virtual machine is running with the command: virsh list# Record the approximate time that the installation ends.# Once the virtual machine has been installed, start it with this command: virsh start fedora1# In order to connect to the Virual virtual machine , you need to know:#* The IP address.#* The account nameand password of a regular user.#* The password for the root (administrator) user.# To gather the information listed above, and then clicking study the [http://zenit.senecac.on .ca/~chris.tyler/fedora16-vda-ks.cfg kickstart file]. Record your answers.# Using the information you gathered from the kickstart file, connect to the virtual machine: ssh '''Openaccountname''' button, and then click the '@''play'IPaddress'' button when the next screen appears (or by selecting Virtual Machine>Run from substitute the virtual machine menucorrect account name and IP address)# Enter the password when requested. You will get # On the ''Firstboot'' configuration questions during the boot process (asking you to create a uservirtual machine, set determine:#* The number of packages installed#* The amount of free disk space# Stop the date and timevirtual machine by typing, and optionally send the hardware profile to as the Fedora Project). Create a root user with inside that virtual machine, the same name as your Matrix account.</li>command: poweroff <li>Login using # Confirm that the new user account.</li></ol>virtual machine is off by executing this command on your f16host: virsh list
{{Admon/note|Network / Service Considerations|Please perform the tasks below in order allow these Fedora systems to be able to communicate with each other. '''Failure to properly perform these operations can cause problems in future labs'''.|}}=== Investigation 2 ===
<ol> <li value="15">Enable SSH access to your # Install another virtual machine with by modifying the command used in Investigation 1. Incorporate these commands (semi-colon allows commands to be run in sequence)changes:<br /> <code>service sshd start; chkconfig sshd on</code></li> <li>Find out ## Use the IP address of your name "fedora2" for this virtual machine: <code>ifconfig eth0</code> </li>. <li>Enter the following command on your virtual machine to create ## Use a firewall exception to allow ssh traffic into disk size of 15G## Use the machine:<br /> <code>iptables -I INPUT -p tcp -s0/0 -d0/0 --dport 22 -j ACCEPT</code></li>IP address 192.168.122.201 <li>Confirm # Start fedora2 and confirm that you can ssh connect to your virtual machine from the host (your main Fedora installation): <code>ssh ''IPaddress''</code></li>it.</ol># Shut down fedora2.
{{Admon/tip|Switch to Virtual Machine Manager Window|If you are currently in a Virtual machine, but want to switch to the Virtual Machine Manager Window, simply click '''Activities'''> '''Select the Virtual Machine manager window'''.}}=== Investigation 3 ===
'''Answer # Make a copy of the [http://zenit.senecac.on.ca/~chris.tyler/fedora16-vda-ks.cfg kickstart file]. Modify it so that the user account that is created has the same user ID as your matrix account. Place this file in a location where it can be accessed via a web browser (for example, in the public_html directory in your Matrix account).# Modify the command used in Investigation 1 observations / questions in to incorporate these changes:## Use the name "fedora3" for this virtual machine.## Use the IP address 192.168.122.202## Use your kickstart file instead of the original one.# Start fedora3 and confirm that you can connect to it, using your lab log bookMatrix ID and password.# Shut down fedora3.'''
== Investigation 2: Installing from the Network ==

Navigation menu