13,420
edits
Changes
no edit summary
=LAB PREPARATION=
==Purpose / Objectives of Lab 1==
[[Image:vmware-1.png|thumb|right|300px|The c7host centos1 Linux server will run virtualization software to install and run 3 virtual machines (installed in lab2). ]]
You will learn how to install a popular Virtual Machine (VM) application called VMware Workstation in order to create and manage 4 virtual machines (Centos Linux) for this course. We will only install one Linux VM (Centos Full Install DVD), and we will install 3 other Centos Linux distributions (using 3 different install methods) in lab2.
|}
=INVESTIGATION 1: CREATE HOST MACHINE (c7hostcentos1)=
For the next 3 investigations, you will learn how to install your Centos Full DVD onto your removable hard disk. You will customize your install to setup several separate partitions:<ul><li>'''/''' (The "root" partition)</li><li>'''/home''' (Store regular user accounts)</li><li>'''/var/lib/libvirt/images''' (store virtual machine images to be created in lab2)</li><li>'''swap''' partition (Virtual Memory)</li></ul>
Make certain to record your observations of this install in the comparison chart for '''c7hostcentos1''' in your lab2 logbook.
==Part 1: Start Installation ==
# Set your 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 drive, then power-off computer.
# '''Newer computer models''' are labelled '''HP Z230'''.<br><br>'''NOTES:'''<ul><li>If you 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 '''c7hostcentos1''' 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 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>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>c7hostcentos1</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>
#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:yellow">Change the option '''New mount points will use the following partition scheme''' from '''LVM''' to '''<u>Standard Partition</u>''' (you will not be using LVM for your c7host centos1 machine)</span>.
#Before you proceed with creating partitions, let's see the partitions that we need to create for our host computer:<ul><li>Primary Partitions (ext4):<ul><li>'''30GB''' for '''/''' (i.e. "root")</li><li>'''40GB''' for /home</li><li>'''100GB''' for '''/var/lib/libvirt/images''' </li></ul> </li><li>Swap Partition:<ul><li>'''16GB''' (Note: "swap" must be selected from the drop down menu)</li></ul></li></ul><br>'''NOTE:''' Remember that the sizes are recorded in MB (eg. 30 GB = 30000 MB) and you should multiply GB by a factor of 1024 to get the correct size.<br> (eg. '''30 GB x 1024 = 30720 MB''')<br><br>
#We will now create the root (/) partition. '''Click on the add button (plus) sign'''.<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 centos1 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>
#Issue the command <b><code><span style="color:#3366CC;font-size:1.3em;">su </span></code></b> Issue the '''pwd''' and '''whoami''' commands to confirm your directory pathname. When finished logout of this account.
#Issue the command <b><code><span style="color:#3366CC;font-size:1.3em;">su - </span></code></b> Issue the '''pwd''' and '''whoami''' commands to confirm your directory pathname. What do you notice are the main differences between using '''su''' versus using '''su -''' ?
# An installation log file called <b><code><span style="color:#3366CC;font-size:1.2em;">/var/log/anaconda/packaging.log</span></code></b> has been created to record the installation of your c7host centos1 machine. This file is an ASCII file which can be viewed with the <b><code><span style="color:#3366CC;font-size:1.2em;">more</span></code></b> command.
# You can make use of this file to determine how many packages have been installed: complete the following command to count the number of packages that are labelled "Installing" in the installation log file:
:: <b><code><span style="color:#3366CC;font-size:1.2em;">grep -i packaging /var/log/anaconda/packaging.log | wc -l'''</span></code></b>
If you require <u>'''additional practice'''</u> in creating shell scripts and using the vi text editor, run the commands in your '''Matrix''' account: <ul><li>'''/home/murray.saul/vi-tutorial'''</li><li>'''/home/murray.saul/scripting-1'''</li></ul>
Perform the following steps in your '''c7hostcentos1''' machine:
# Make certain to log out of your root account and remain as a regular user.
::<span style="color:green;font-size:1.5em;">✓</span> '''DNS name server IP Address'''
::<span style="color:green;font-size:1.5em;">✓</span> Contents of your '''report.bash''' shell script
::<span style="color:green;font-size:1.5em;">✓</span> proof of '''yum update''' performed on c7hostcentos1::<span style="color:green;font-size:1.5em;">✓</span> '''SELinux''' is disabled on '''c7hostcentos1'''
::<span style="color:green;font-size:1.5em;">✓</span> '''lab1 notes''' <u>and</u> '''first column of Comparison Chart in lab2'''.