Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7 - SSD

3,034 bytes added, 16:20, 9 June 2016
no edit summary
=INVESTIGATION 1: CREATE AND INSTALL FIRST VIRTUAL HOST MACHINE (centos1c7host)=
In this labFor the next 3 investigations, you will learn how to install your Centos Full DVD as a virtual machine using the VMware applicationonto your removable hard disk.Make certain to record You will customize your observations of this install in the comparison chart for to setup several separate partitions:<ul><li>'''/''' (The "root" partition)</li><li>'''/home''' (Store regular user accounts)</li><li>'''centos1/var/lib/libvirt/images''' (store virtual machine images to be created in your lab2)</li><li>'''lab2 logbookswap'''. partition (Virtual Memory)</li></ul>
===Part 1: Using VMware Workstation 12 Make certain to Create a New Virtual Machine (VM) ===record your observations of this install in the comparison chart for '''c7host''' in your lab2 logbook.
'''<u>centos1 VM Details==Part 1:</u>'''Start Installation ==
*'''Name:''' centos1
*'''Boot media / Installation:''' CentOS7 Full Install DVD
*'''Memory:''' 16GB
*'''Disk space:''' 40GB
*'''CPUs:''' 1
 
::'''<u>Host Machine Details:</u>'''
 
::*'''Name:''' c7host
::*'''Boot media / Installation:''' CentOS7 Full Install DVD
::*'''Memory:''' 16GB
::*'''Disk space:''' 250GB (or higher)
::*'''CPUs:''' 1
{| width="40%" align="right" cellpadding="10"
|- valign="top"
|colspan="2"|[[Image:vmware-2.png{{Admon/important |thumbYou're supposed to use this hard drive only for this course|right|500px|'''Main WMware application window''' in order But if you really need to create a new '''Virtual Machine''' use it for two courses, and the professor for the other ('''VM'''probably windows)]] course will allow it - ask your professor for help with partitioning.}}
|- valign="top"
|
|}
Before # Refer to this listing of installation screenshots if you can install need a reference:<br>[ [http://matrix.senecac.on.ca/~murray.saul/ops235/installation/ installation screenshots] ]<br># Insert your '''removable SATA hard disk''' into the drive tray.# Set your Centos Full Install computer's drive selector switch to '''external''' (a.k.a ''position #4'').# Power up the computer and insert the '''CentOS 7 Installation DVD''' into the DVD onto your Virtual Machinedrive, then power-off computer.# '''Newer computer models''' are labelled '''HP Z230'''.<br><br>'''NOTES:'''<ul><li>If you must first create a storage container which is a virtual machine that will provide a platform are using the '''<u>newer</u>''' model, allow the computer to boot up (<u>without</u> pressing F10 key) to boot from DVD.</li><li>Refer to the comparison chart in lab2 lab logbook, and fill in various installation information for '''c7host''' while you perform the installation (such as time it took to perform a full install , installation options, etc).<br><br></li></ul><ol> <li value="6">Power on the computer again, and after booting from the CD, select from the installation menu: '''Install Centos7'''.<br><br>Note: If you experience unreadable display after you boot into your Centos operating installed system, you can redo the install, but select from the install menu: ''<u>Troubleshooting</u>'' and then select ''<u>Install in Basic Graphics Mode</u>''.<br><br></li> <li>Next, you will be prompted for a language. In the first screen, select language '''English''' with subselection '''English-Canada''' and then click the '''Continue''' button on the bottom right-hand screen.</li>
<li>The '''Install Summary''' should now appear. This screen allows the installer to customize their Centos7 system prior to installation.</li>
<li>Configure the following installation settings from the ''Install Summary Screen'':<br><br><b>DATE & TIME:</b><ul><li>Click on the Map to select Toronto area (you may also select from the drop-down menu section)</li><li>Click the <b>DONE</b> button at the top-left corner to finish and return to the Installation Summary screen.</li></ul><br><b>NETWORK & HOSTNAME:</b><ul><li>Select the default Ethernet connection and click the button on the top right-hand side to change the setting from <b>OFF</b> to <b>ON</b>.</li><li>At the bottom left-hand corner type the hostname: <b>c7host</b> (all lowercase letters)</li><li>Review your settings, then click the <b>DONE</b> button at the top-left corner to finish and return to the Installation Summary screen.</li></ul><br><b>SOFTWARE SELECTION:</b><ul><li>Select the software packages labelled: <b>Gnome Desktop</b></li><li>Click the <b>DONE</b> button at the top-left corner to finish and return to the Installation Summary screen.</li></ul><br></li> <li>Although the Centos installtion program can provide suggestions on how to partition your hard disk, you will be customizing partitions for your hard disk. This custom partitioning is important since it will have consequences on future labs that you perform (especially for lab2).<br><br>Proceed to '''Part 2''' to customize your partitions.</li>
</ol>
'''Perform the Following Steps:'''
 
# Refer to this listing of installation screenshots if you need a reference:<br>[ [http://matrix.senecac.on.ca/~murray.saul/ops235/install-vm/ installation screen-shots] ]<br>
# Power up the computer in your Seneca lab in '''Windows''' and download the following link for the Centos7 Full Install DVD image: http://belmont.senecacollege.ca/pub/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso
# On your Seneca computer lab workstation, click the '''Windows Menu''' button and type '''VMware'''.
# There are two VMware products: ''VMware Workstation'' and ''VMware Player''. Run the '''VMware Workstation''' application.
# Click on the item labelled '''Create a New Virtual Machine'''.<br><br>'''NOTE:''' We will just be creating a "shell" for the VM the contain our Centos7 Linux operating system. This will allow us to configure the VM properly so it will boot-up properly in our Seneca labs.<br><br>
# Select the '''Custom (advanced)''' for the Virtual Machine Configuration setting and click '''Next'''.
# Click Next at the next screen to proceed.
# Select the '''I will in<u>s</u>tall the operating system later''' option and click '''Next'''.
# In the next screen, select '''Linux''' as the '''Guest Operating System''', and '''CentOS 64-bit''' for the OS ''version'' and click '''Next'''.
# Enter '''centos1''' for the ''<u>V</u>irtual machine name'' and note the location where the image will be stored on your Windows machine and click '''Next'''.
# Click '''Next''' to accept the default number of processors.
# In the following screen, change the Memory from ''1GB'' to '''2GB''' (i.e. '''2018 MB''') and click '''Next'''.
# Click '''Next''' to accept the default (i.e. NAT) for the network type.
# Click '''Next''' to accept the default (i.e. LDI Logic) for teh SCSI Controller type.
# Click Next to accept the default (i.e. SCSI for the virtual disk type.
# Change the Maximum Disk Size from ''20GB'' to '''40GB''' and click '''Next'''.
# Accept the default Disk File name (i.e. centos1.vmdk) and click Next.
# Quickly review your VM settings in the final setup wizard dialog box and click '''Finish'''.
# You should now see your centos1 VM appear in the main VMware Workstation window. In the left-hand-side, '''right-click''' on the '''centos1''' VM under My Computer. In the context menu, select '''Settings'''. Your centos1 Settings dialog box should appear.
# Click the '''options''' tab and then click the Advanced option at the bottom of the list. On the right-hand side, '''click''' the checkbox to enable the option to '''Boot with EFI instead of BIOS'''. Then click on the '''Hardware''' tab, and then select the '''CD/DV (IDE)''' device and select in the right-side select the radio button for the '''use ISO I<u>m</u>age file'''. Click the '''Browse''' button and specify the path of your downloaded Centos7 Full install DVD (most likely file is contained in your Downloads folder). When finished, click on the OK button.
# You will return to your centos1 VM. Click the play button near the top to boot your centos1 VM for the first time.
== Part 2: Custom Partitioning ==
 
===Part 2: Install Centos on your Newly-Created VM ===
 
The next step is to perform a custom installation for your Centos7 virtual machine using the Centos7 Full DVD. Upon creation of your centos1 virtual machine, The VMware Workstation application will automatically simulate a "boot" to allow you to complete the installation process to create the Centos7 operating system on that virtual machine.
 
'''Perform the following steps:'''
 
# Select from the installation menu: '''Install Centos7'''.
# Next, you will be prompted for a language. In the first screen, select language '''English''' with subselection '''English-Canada''' and then click the '''Continue''' button on the bottom right-hand screen.
# The '''Install Summary''' should now appear. This screen allows the installer to customize their Centos7 system prior to installation.
# Configure the following installation settings from the ''Install Summary Screen'':<br><br>
::<b>DATE & TIME:</b><ul><li>Click on the Map to select Toronto area (you may also select from the drop-down menu section)</li><li>Click the <b>DONE</b> button at the top-left corner to finish and return to the Installation Summary screen.</li></ul><br>
::<b>NETWORK & HOSTNAME:</b><ul><li>Select the default Ethernet connection and click the button on the top right-hand side to change the setting from <b>OFF</b> to <b>ON</b>.</li><li>At the bottom left-hand corner type the hostname: <b>centos1</b> (all lowercase letters)</li><li>Review your settings, then click the <b>DONE</b> button at the top-left corner to finish and return to the Installation Summary screen.</li></ul><br>
::<b>SOFTWARE SELECTION:</b><ul><li>Select the software packages labelled: <b>Gnome Desktop</b></li><li>Click the <b>DONE</b> button at the top-left corner to finish and return to the Installation Summary screen.<br><br></li></ul>
{|width="40%" align="right" cellpadding="10"
|- valign="top"
|
{{Admon/notetip|Mount Points and Linux File System Types|Similar to other Operating Systems like windows '''fat''' / '''vfat''' / '''ntfs''' file system types, it is good to know a few common file system types in Linux for comparison:<br><ul><li><b>xfs:</b> &nbsp; Newer filesystem (fast transfer rates for large files, Journaling)</li><li><b>ext4:</b> &nbsp; Newer filesystem supporting large files and Journaling (used in for this lab)</li><li><b>ext2:</b> &nbsp; Stable filesystem popular for databases (no journaling)</li></ul>|
}}
|-
[[Image:partition_verification.png|thumb|right|550px|Carefully verify partition mount-names and sizes prior to proceeding with install. Check [http://matrix.senecac.on.ca/~murray.saul/ops235/installation/ installation screenshots] link for verification.]]
|}
::'''INSTALLATION DESTINATION:'''::*#From the installation summary screen, click '''Installation Destination'''.::*#In the installation destination screen, select the destination option: '''I will configure partitioning''' and then click '''Done'''.::*#The manual partitioning screen should appear.::*#If you have used your hard disk for previous Linux (Centos) distributions, you should remove them. Click on the distribution, and for each partition, select the partition and click the remove button (minus sign) and confirm deletion.#<span style="background-color::Remember that yellow">Change the sizes are recorded in MB (eg. 20 GB = 20000 MB) and you should multiply GB by a factor of 1024 to get option '''New mount points will use the correct size. (eg. following partition scheme''' from '''LVM'''20 GB x 1024 = 20480 MBto ''')<bru>Standard Partition<br/u>''' (you will not be using LVM for your c7host machine)</span>.#Before you proceed with creating partitions, let's see the partitions that we need to create for our host computer:<olul><li value="5">We will now create the root Primary Partitions (/ext4) partition. :<ul><li>'''30GB''' for '''Click on the add button (plus) sign/''' (i.<br>e. "root")</li><li>In the '''Add a New Mount Point40GB''', click the drop-down button and select for /home</li><li>'''/boot/efi100GB''' for the mount point and type '''2954/var/lib/libvirt/images''' as the desired capacity, and then click </li></ul> </li><li>Swap Partition:<ul><li>'''Add mount point16GB'''.(Note: "swap" must be selected from the drop down menu)</li></ul></li>When </ul><br>'''NOTE:''' Remember that the sizes are recorded in MB (eg. 30 GB = 30000 MB) and you return should multiply GB by a factor of 1024 to get the main screen, make certain that this mount point is a correct size.<br> (eg. '''Standard Partition30 GB x 1024 = 30720 MB''' and )<ubr>not<br>#We will now create the root (/u> ) partition. '''Click on the add button (plus) sign'LVM''.</libr><li>Add another mount point, but in #In the '''Add a New Mount Point''' screen, select '''/''' as the mount-point (either by typing or selecting from drop-down menu), and enter '''2048030720''' in for partition size and click '''Add Mount Point''' button.</li><li> # You will return to the previous dialog box.<br><span style="background-color:yellow">For the '''/''' partition, change the file-system type from '''xfs''' to '''ext4''' and make certain that the Device Type is set to LVMStandard Partition (<u>not</spanu>LVM).You need to repeat this procedure for the ''/home'' and ''/var/lib/libvirt/images partitions'' as well)</lispan>.<li>#Repeat the same steps above for the '''/home''' partition (calculate and '''/var/lib/libvirt/images''' partition. You need to type the ''/var/lib/libvirt/images'' partition since it does not appear in the equivalent size for 10GB (i.e. multiplied by 1024)drop-down menu.</li><li>#Recheck each of the created partitions, and make certain that the file-system type is set to ''ext4'' and the Device Type should be is set to ''LVMStandard Partition''.</li><li>#Finally, add a swap partition (Mount Point: swap) for '''16 GB'''.</li><li>#Check that your partition settings are correct (you can ask your instructor or lab monitor to confirm), and then click '''Done''' (possibly '''<u>twice</u>''') in order to proceed<br><br><span style="background-color:yellow">'''NOTE:''' If there is an error message associated with your created partitions, you may need to add a '''/liboot/efi''' partition (as a new mount). The capacity should be: 2954MB (i.e. 2,954 MB). Once finished, click '''Done'''.<span><br><libr>#A Summary of Changes screen will appear to show the partitioning operations that will be created. Click the '''Accept Changes''' and click '''Begin Installation''' in the Installation Summary screen to proceed with the installation.#Start timing your host machine installation. == Part 3: Completing the Installation == {|width="40%" align="right" cellpadding="10"|- valign="top"|[[Image:completed.png|thumb|right|500px|This screen indicates that installation is complete. You should remove the install DVD and confirm Centos7 boots from your removable hard drive. ]]|}#During the installation process, you will required to create a '''root password''' (for administration access) and create a '''regular user account'''. Click on '''Root Password''' and enter your root password. Think of an appropriate password and record that password somewhere in case you forget! An indicator will appear to show you how secure your password is. Retype your root password and click '''Done''' (you may have to click Done <u>twice</u> if your password is not considered to be a strong password).#You need to create a regular user account. This account will be used to graphical log into your host machine. It is never recommended to graphically log into a graphical Linux/Unix system as root. It is better to log into a regular user account, then run a command to login as root (you will learn how to do this later in this lab).#Click '''User Creation''' and enter your '''full name''', '''username''', and an appropriate '''password''' (and confirm password). Click '''Done''' to finish (click twice if password is not considered to be a strong password).#<span style="background-color:yellow">Remember to record this host installation information in the '''installation comparison chart''' in the lab2 logbook</span>.#When installation is complete, you will notice a message at the bottom of the screen stating: '''CentOS is now successfully installed and ready for you to use!'''#Click the Reboot button. Your DVD will <u>briefly</u> open in the DVD drive bay. Make certain to remove this installation DVD so that Centos will boot from your hard drive.#After the system reboots, a boot menu should briefly appear, then prompt the user to accept the License Information (this is only a one-time occurrence).<br> In order to accept the license agreement, issue the following keystrokes:<br><br>'''1''' followed by ENTER (to select the license agreement prompt<br>'''2''' followed by ENTER (to accept the license agreement)<br>'''c''' followed by ENTER (to save the selection)<br>'''c''' followed by ENTER (a second time to continue booting into the system)<br><br>#The system should then graphically prompt the user to login with their regular user account. Click on your '''regular user account name''' and '''enter your regular user password'''.<br><br>#The last phase of the installation process should now run:<ul><li>Confirm English as the default input source and click '''Next'''.</li><li>Skip the creation of online accounts by clicking '''Next'''.<li>Start using your installed Linux system by clicking '''Start Using CentOS Linux'''.</li></ul><br>#Stop timing your installation and note the amount of time that your installation took to perform. Also take the time to fill in the c7host section of the installation comparison chart in your lab2 logbook.#Open a web-browser and check to see if you can connect to the Internet.<br><br> === Turn-Off Screen Saver Lock === :Your system automatically enables a '''centos1screen-saver''' virtual application which is a useful security tool to prevent unauthorized viewing of information on a terminal after a certain amount of inactivity. :If you find this feature annoying and want to turn it off or adjust the idle time perform the following steps::*Click on your '''username at the top right-hand screen''':*Select '''Settings''' from the drop-down menu.:*Click the '''Power''' icon located in the ''Settings'' Dialog Box:*Change the amount of time in the '''Power Saving''' section to '''Never''' or a '''longer period of time''':*Close the ''Settings'' Dialog box.  <ol><li value="14">Proceed to Investigation 2 to obtain basic information from your newly installed Centos Host machine installation.</li></ol> '''Answer Investigation 1 observations (all parts and questions) in your lab log book.'''  =INVESTIGATION 2: OBTAINING HOST MACHINE SYSTEM INFORMATION=
13,420
edits

Navigation menu