Changes

Jump to: navigation, search

OPS235 Lab 2 - CentOS6

2,862 bytes removed, 12:22, 31 December 2013
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 CDLive DVD. As a matter of interest (for future reference), it is possible to install directly from the ISO file you used to burn your Live CDDVD. There are many Internet tutorials that show the individual how to perform that task.}}
==== Introduction ====
In this investigation, you will install Fedora CentOS from your live disc, and observe the differences between this type of installation and the DVD installation previously performed.
==== VM Details ====
* '''Name:''' fedora1centos1* '''Boot media:''' Fedora CentOS Live CDDVD* '''Installation source:''' Fedora Live CDDVD
* '''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 '''fedora1centos1''') 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 Centos 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 17Red Hat Enterprise Linux 6''' (refer to ''Step 2 of 5'' thumbnail abovethe CentOS6 equivalent).<!-- {{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/important|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 17 LIVE CD install, click on the thumbnails below to provide a '''"visual reference"''' while performing this particular Fedora installation.
}}
 
{|cellpadding="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 17'''. 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. The point of a live disk is to allow you to test the distribution to see whether you like it without installing to the harddrive first.</li>
</ol>
<ol>
<li value="9">Login to the VM and click: '''Applications'''>'''System Tools'''>Click '''Install to Hard Drive'''. The installation program, similar to the one used when installing Fedora CentOS 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>
<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 '''fedora1centos1''', 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>
<ol>
<li value="13">Start the VM from its disk image. This can be done graphically by selecting the Virual machine name, and then clicking on the '''Open''' button, and then click the '''play''' button when the next screen appears (or by selecting Virtual Machine>Run from the virtual machine menu). You will get the ''Firstboot'' configuration questions during the boot process (asking you to create a user, set the date and time, and optionally send ignore the hardware profile to the Fedora Projectkdump out-of-memory warning). Create a user with the same name as your Matrix account.</li>
<li>Login using the new user account.</li>
</ol>
{{Admon/note|Network / Service Considerations|Please perform the tasks below in order allow these Fedora CentOS systems to be able to communicate with each other. '''Failure to properly perform these operations can cause problems in future labs'''.|
}}
<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 virtual machine from the host (your main Fedora CentOS installation): <code>ssh ''IPaddress''</code></li>
</ol>
 
{{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'''.}}
'''Answer the Investigation 1 observations / questions in your lab log book.'''

Navigation menu