Changes

Jump to: navigation, search

OPS235 Lab 2 - Fedora17

2,659 bytes added, 17:58, 4 September 2013
no edit summary
|[[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-manager2a.png|thumb|100px|'''Step 2 of 5:Insert Fedora19 Live DVD''' Mount LIVE CD/DVD by clicking on Black Box (Click black dialog box) ]]
|[[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 ]]
# 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 (ISO image or CDROM)''' (refer to ''Step 1 of 5'' thumbnail above).
# Click the '''Forward''' Button.
# '''Step 2 of 5:''' '''Insert the DVD containing the Fedora Live Disc image. Wait a moment for the disc to be recognized''', You should see a black dialog box appear that recognizes the DVD. Click on the black box to confirm.
# Click the Make certain that you select "'''ForwardUse CDROM or DVD''' Button".
# Under "Location your install media section", select "'''Use CDROM or DVD'''". Set the ''OS type'' to '''Linux''' and the ''Version'' to '''Fedora 19''' (refer to ''Step 2 of 5'' thumbnail above), then click the '''Forward''' Button.
<!-- {{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.}} -->
{|cellpadding="8" width="100%"
|[[Image:fedoralive1.png|thumb|100px| The Virtual Machine will now startin '''Live''' mode.'''Install to Hard Disk''']]|[[Image:failedtoloadInstallscreen.png|thumb|140px| '''Ignore Installation Summary''' dialog box. Used to select '''Date and close the "Failed To Load" Time''' as well as '''Installation Destination''']]|[[Image:Installationdestination1.png|thumb|140px|'''Installation Destination''' dialog box(confirm and select '''done'''. Search for the panel on the upper-left-hand side of the screen).]]|[[Image:fedoralive2Installationdestination2.png|thumb|140px|Login to the VM and double-click:<br /> '''ApplicationsInstallation Options'''<br />>dialog box within '''System ToolsInstallation Destination'''<br />>process (make suggested settings and select '''Install to Hard Diskdone''').]]|[[Image:selectstorage1Installationdestination3.png|thumb|100px140px|Select '''Specialized Storage DevicesManual Partitioning''' dialog box within '''Installation Destination''' process (click link to '''automatically create partitions''' and proceed to next dialog box).]]|[[Image:selectstorage2Installationdestination4.png|thumb|100px140px|Select Confirm partitions to be automatically created and then click '''Virtio Block Devicedone'''.]]|[[Image:finishcdinstallInstallationdestination5.png|thumb|100px140px|You will get Confirm summary of changes, click '''Accept Changes''', then click '''Begin Installation''' at the ''FirstbootInstallation Summary'' configuration questions during the boot processdialog box to proceed with your installation.]]
|}
<ol>
<li value="1011">When you have completed your installation, click the '''The virtual machine will now startQuit'''button. Select You should return to the default menu item labelled: Fedora Live desktop. </li> <li>Shutdown the Fedora Live session by clicking on the '''Live User'Install to Hard Drive'' button (at the top right-hand corner) and select '''Power Off''', and confirm that you want to power-off. It is a good idea to be patient! Sometimes it may take a few minutes for shut-down!</li>
</ol>
}}
<ol>
<li value="1113">The Installation Summary dialog box will appear (similar to what you encountered in lab1 for your full DVD install). It is assumed that you will be familiar with the general steps on the installation process.
<li>Set the Time Zone for "'''Toronto'''".</li>
<li>When back at the main installation summary menu, select '''Installation Destination'''.</li>
<li>Review the automatically created partitions in the next dialog box. Record in your lab log-book the partition names and related sizes, and note the virtual hard disk device name (i.e. vda1).
</li>Click the '''Done''' button at the top left-hand corner.</li>
<li>Confirm the Summary of Changes, and then click the "'''Accept Changes'''" button located on the bottom right-hand side. Note: please be patient, and wait a few minutes until you can access the Installation Summary dialog box. Click '''Begin Installation'''. Note the time that it takes to complete this installation.</li>
<li>During the installation process, set a root password and create a least one regular user account.</li>
</ol>
{{Admon/tip|Screen Lock|If during the install process, the screen locks, drag the mouse upwards, and simply press enter to unlock the screen (no password is required for a '''live user''').|}} <ol> <li value="22">After the installation process has completed, click on the '''Quit''' button. This should return you to the LIVE version of Linux that was running to help install to the Hard Drive. Click on the live username located at the top right-hand corner and power-off the machine.</li></ol>  {{Admon/tip|Virtual Machine Fails to Shutdown.| You should shut down the VM normally as you would shutdown any operating system. If your VM does NOT shutdown normally, you can select from the Virtual Machine Manager window: '''Virtual Machine''' -> '''Shutdown''' -> '''Force Off'''.|
}}
<ol>
<li value="2023">After the installation process has completedMake certain that you remove your Fedora19 Live DVD from your DVD drive. From your ''Virtual Machine Manager'' window, click on start your '''fedora1''' virtual machine (remember to press the '''QuitPlay''' button. This should return you to start the LIVE version of Linux that was running to help install to the Hard DriveVM). Click on the live username located at the top right-hand corner and power-off the machine. It is recommended to completely shutdown the virtual machine, then </li><li>Log into your '''start your fedora1 virtual machine''' from VM as a regular user (you created during the virtual machine manager windowinstallation process).</li><li>Upon first log-in, set your Gnome preferences (you are NOT required to set-up a cloud account for this course).</li> <li>Open a terminal (shell), and log into '''root'''.</li> <li>Change your '''host name ''' to '''fedora1 ''' (refer to last week's your [[OPS235 Lab 1]] notes).</li> <li>Use the <code>hostname</code> command to verify that you set your hostname to "fedora1".</li>
<li>Compare the installation time to the amount of time it took to do this type of installation. Record this information in the '''table contained in Investigation 4'''.</li>
<ol>
<li value="2528">Enable SSH access to your virtual machine with these commands (semi-colon allows commands to be run in sequence):<br /> <code>'''systemctl start sshd; systemctl enable sshd.service'''</code></li> <li>Find out the IP address of your virtual machine: <code>'''ifconfig eth0'''</code> </li> <li>Enter the following command on your virtual machine to create a firewall exception to allow ssh traffic into the machine:<br /> <code>'''iptables -I INPUT -p tcp -s0/0 -d0/0 --dport 22 -j ACCEPT'''</code></li> <li>Confirm that you can ssh to your <u>virtual machine </u> from the your host (your main Fedora installationf19host): <code>'''ssh ''IPaddressfedora1_IP_address'''''</code> (determined from step 27 above)</li>
</ol>
* '''Boot media:''' Network installation
* '''Installation source:''' http://belmont.senecac.on.ca/fedora/releases/19/Fedora/x86_64/os/
* '''Memory:''' 768MB1024MB* '''Disk space:''' 15GB20GB
* '''CPUs:''' 1
# Create the VM (called '''fedora2''') as you did with the ''fedora1'' virtual machine, except:
#* In '''step 1 of 5''', set the installation type to '''Network Install (HTTP, FTP, or NFS)'''.
#* In '''step 2 of 5''', provide the location of the software source by providing the URL http://belmont.senecac.on.ca/fedora/releases/19/Fedora/x86_64/os/. Also select the appropriate OS type and Linux version.#* In '''step 2 3 of 5''', set select the appropriate RAM.#* In '''OS Typestep 4 of 5''' , set the hard-drive space to '''Linux20GB''' and (<u>NOT</u> 15 GB!)#* In ''Version'step 5 of 5''' to , review the settings, and click '''Fedora 19Finish'''.
# Observe the boot process. How is it different from booting from an optical disc (DVD)?
# Start the installation process (make certain to use information in the ''VM Details'' section above).
# When Complete the '''Installation Summary''' sections (Date and Time, Installation Destinatation) like you get to did in the fedora1 install, except in the disk '''partitioning ''' step, select '''Use All Space''' and enable the checkbox labelled '''Review and modify partition layout'''.If an dialog box displays a permissions problemAllow the installation program to automatically create the partitions, then click yes but we will be making changes to proceedthe partition sizes. # On the next screen, change the logical volumes as follows:#* Reduce Select the logical volume (partition) '''root''' (i.e. '''/''' ), and reduce the size of the root LV to '''8000 MB10 GB''', then click '''Update Settings'''.#* Click the '''Add plus sign''' (i.e. '''+''') to <u>add</u> a logical volume with a size of 2000 MB and a mountpoint of called '''/home''' (you can name it whatever you want, and use with a size of '''ext42 GB''' . Note that you can make changes to other items (such as the file-system typelike ext4), but you are not required to do this for this lab.# On Review your changes, click '''Done''', click '''Accept Changes''' to return to the software selection screen, select '''Graphical DesktopInstallation Summary'''.# Make certain that Software Selection is set to '''Gnome Desktop'''On .# Complete the same screeninstallation, select the "Fedora 19 - x86_64" and the "Fedora 19 - x86_64 - Updates". Leave "Installation Repo" selected. set a ''root password'DO NOT'and at least ' enable the "Test Updates" repository'one regular user''account.# Complete Click '''Reboot''' to restart the system. Note: be patient for the installationreboot process! (Force a Virtual Machine shutdown only if absolutely necessary). # Record the time taken to install, and compare this to the time taken by the previous installations.# What was different with your fedora2 install (upon completion) that was different than your fedora1 install? What was similar?# Record this information in the '''table contained in Investigation 4'''.
'''Answer the Investigation 2 observations / questions in your lab log book.'''
* '''Installation source:''' http://belmont.senecac.on.ca/fedora/releases/19/Fedora/x86_64/os/
* '''Kickstart location:''' http://www.drivehq.com/file/df.aspx/shareID10606286/fileID1269952040/Fedora19-kickstart.cfg
* '''Memory:''' 768MB1024MB* '''Disk space:''' 10GB15GB
* '''CPUs:''' 1
==== Steps ====
# Create the VM as you did with the ''<u>'''fedora2'' virtual machine, specifying a network install as before, except:'</u>'' Virtual Machine.#* In '''step 2 of 5''', after entering use the same URL for the installation source, click on ''Installation Source''. Click to expand the '''URL Options''' control.#* Enter and enter the '''Kickstart ''' URL: http://wwwscs.senecac.drivehqon.comca/file/df~kent.aspx/shareID10606286/fileID1269952040poots/Fedora19-kickstart.cfg . Make certain to select the option for the kick-start file to determine the OS type and version and click '''Forward'''.# Specify the RAM amount (1024 MB) and Hard Disk space (15GB) and proceed to next screen.# Verify the installation settings, and then click '''Finish'''.# Observe the installation. How is it different from booting from an optical disc (DVD)? What is the purpose of the '''kickstart''' file?
# Complete the installation. Record the time taken to install, and compare this to the time taken by the previous installations.
# What happens when the installation is finished?
# '''Take a look at the '''kickstart ''' file by clicking on the link in a web-browser (using the URL you entered) and search for "'''password'''" (you may have to <u>determine</u> search for this pattern a couple of times). Determine the '''root password ''' as well as the name '''regular username and password ''' for the first user account'''.# Boot the virtual machine and log in (use the user ID and password information from the previous step). Compare the experience to the first time you booted the other virtual machines.# Record this information in the '''table contained in Investigation 4'''.
'''Answer the Investigation 3 observations / questions in your lab log book.'''
13,420
edits

Navigation menu