Open main menu

CDOT Wiki β

Changes

OPS235 Lab 2 - Fedora17

337 bytes added, 12:47, 15 January 2012
no edit summary
|
'''In this lab, you will create three virtual machines'''. This also gives you an opportunity to experiment with different ways of installing Fedora. Later in this course you will install another operating system distribution in a virtual machinesmachine.
You should already have both a '''Fedora installation DVD ''' and a '''Fedora LIVE CD'''.
In both cases, the boot media (which you used to load the installation software) and the installation source (where the software that got installed came from) were the same: your CD/DVD provides both. However, the Fedora (and most other Linux distributions) permits you to use any combination of boot media and installation media:
|
==Required Materials (Bring to All Labs)==
* '''Fedora 16 LIVE CD''' - You can burn this onto a CD-R in the Open Lab* '''Fedora 16 x_64 Installation DVD''' - You can burn this onto a DVD-R in the Open Lab (or burn image onto a DVD+R if you are using the Freedom Toaster).
* '''SATA Hard Disk''' (in removable disk tray)
* '''USB Memory Stick''' (minimum 64M)
* '''Lab Logbook (Lab1 Lab2 Reference Sheet)''' (to make notes and observations).
==Linux Command Online Reference==
Each Link below displays online manpages for each command (via [http://linuxmanpages.com/ http://linuxmanpages.com]):
:* '''virsh''' (Refer to Fedora Virtualization Guide belowlink in the "Resources on the Web" section)
:* [http://linuxmanpages.com/man1/gzip.1.php gzip / gunzip]
== Investigation 1: Installing from a Live Disc ==
{{Admon/tip|Using an Image instead of a Live Disc|If It is recommended that you do not have perform this installation from your Fedora LIVE CD. As a Live Disc availablematter of interest (for future reference), you can 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 then use the iso image install directoly from that file in place of . There are many Internet tutorials that show the physical diskindividual how to perform that task.}}
==== Introduction ====
==== VM Details ====
* '''Name: ''' fedora1* '''Boot media: ''' Fedora Live CD* '''Installation source: ''' Fedora Live CD* '''Memory: ''' 512MB* '''Disk space: ''' 10GB* '''CPUs: ''' 1
==== Screen-Shot Thumbnail Reference ====
{{Admon/note|Fedora Install Screen Shots Thumbnails|While performing the Fedora 16 install, click on the thumbnails below to provide a '''"visual reference" ''' while performing this additional Fedora installation.
'''Additional Notes:'''
# 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 name and select ''Local install media''.<br />(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 it as the install media. Set the ''OS type'' to Linux and the ''Version'' to Fedora 16.<br />(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 512 MB and the number of CPUs to 1.<br />(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''.<br />(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''.<br />(refer to '''Step 5 of 5''' thumbnail above).
# The virtual machine will now start. You will see a window which displays the virtual video card from the VM. It's important to note that the VM can (and often will) run even when this display is not present. 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.
# Login to the VM and double-click on the ''Install to Hard Drive'' icon. The installation program, similar to the one used when installing Fedora in Lab 2, will appear. You will get a warning at one point during the installation process that the disk "may need to be re-initialized" -- this is simply a warning that the virtual disk is completely blank, and it is safe to select ''Re-initialize drive''.
# Start the VM from its disk image 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 the hardware profile to the Fedora Project). Create a user with the same name as your Matrix account.
# Login using the new user account.
 
{{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|
}}
 
# Enable SSH access to your virtual machine with these commands: <code>service sshd start; chkconfig sshd on</code>
# Find out the IP address of your virtual machine: <code>ifconfig eth0</code>
13,420
edits