Converted 'Centos' to CentOS, minor visual change to disconnect warning box.
In order to save money and resources when learning to install, to manage, and to connect Linux machines to form networks, we will be using '''Virtual Machines''' for this course. In fact, we will be using two virtual machine programs:
:*'''Lab 1:''' Create a '''
CentOS7 Host virtual machine''' (called '''c7host''') in the virtual program called '''VMware Workstation''' (this host will be stored on your Solid State External Drive (SSD).
:*'''Lab 2:''' Install a '''Virtual program package''' on your '''
CentOS7 Host virtual machine''' called '''KVM''' which will be used to create 3 remaining Virtual Machines (VMs) that will be used to learn about Linux system administration for the remainder of this course.
It is ESSENTIAL to have a '''Solid State Drive (SSD) with a minimum storage capacity of 240 GB''' to perform your lab sessions and provide a host for your other
Centos7 host and other VMs that you will create in Lab 2. '''Due to space requirements, you are <u>NOT</u> permitted to share this SSD drive with any other course material than our OPS235 course'''.
'''NOTE: It is feasible to use a notebook computer with sufficient hard disk capacity to perform these labs (as you would for an SSD drive)'''. It would require that your notebook computer can connect to the Internet (including in Seneca's computer labs). You would be required to follow the same instructions for this lab (SSD) Note: It may take one or two weeks before students can obtain their free version of VMware Workstation 12 Pro; therefore, it may be more convenient to purchase an SSD to be able to start lab1 immediately. It is strongly recommended to NOT use VMware Player.
* Note common Linux commands and record them in your lab1 logbook.
* Use '''Shell scripts''' to generate a post-install report for your
CentOS7 host VM.
* '''Disable Linux Kernel security enhancements''' to allow easier internal networking connections (to be reactivated in a later lab).
=INVESTIGATION 1: CREATE AND INSTALL FIRST VIRTUAL MACHINE (c7host)=
In this lab, you will learn how to install your '''
Centos Full Install DVD''' as a virtual machine using the '''VMware Workstation''' application.
*'''Boot media / Installation:'''
CentOS7 Full Install DVD
:::*Download at Seneca College: CentOS 7 Full Install DVD (image file):<br> http://belmont.senecacollege.ca/pub/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso
:::*Download outside Seneca College:<br>http://mirror.csclub.uwaterloo.ca/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso
Before you can install your
Centos Full Install DVD onto your Virtual Machine, you must first create a storage container which is a virtual machine that will provide a platform for you to install your Centos operating system.
# Although the images may be a little out of date (i.e. not exact), you can refer to this listing of installation screenshots for general reference:<br>[[http://matrix.senecac.on.ca/~murray.saul/ops235/ssd2/ installation screen-shots] ]<br>
# Power up the computer in your Seneca lab in '''Windows'''.
# If you haven't already downloaded the
CentosOS7 Full Install DVD iso to your USB KEY, then download the following link for the Centos7 Full Install DVD image on your USB device: http://belmont.senecacollege.ca/pub/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso
# Plug your SSD drive into your computer. Note the drive letter for that device.
# Format your SSD to use ExFAT, '''not NTFS'''. Open ''My Computer'', right-click on the SSD, and select ''Format...''. The dialog box should have the '''ExFAT''' option selected, as the example to your right shows. Once selected, click ''Start''.
# Run the '''VMware Workstation Pro''' application (do '''<u>NOT</u>''' run VMware Player!).
# <span style="background-color:yellow;">In your VMware Workstation application window, click the '''Edit''' menu, then select '''Preferences'''. Under the '''Default Location For Virtual Machines''', enter the pathname for the newly created folder in your SSD device and click '''OK'''</span>.
# 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.<br>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.
# Make certain that your Host VM is <u>'''NOT'''</u> powered on before proceeding!
# In the right-hand window (below "c7host"), and below ''"Power on this virtual machine"'', click the link called '''Edit virtual machine settings'''.
# <span style="background-color:yellow">In this setup dialog box, 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/DVD (IDE)''' device and select in the right-side select the radio button for the '''use ISO Image 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). Click '''Processors''', and click the check-box to <u>enable</u> '''Virtual Intel VT-X/EPT or AMD-V/RVI'''. When finished, click on the '''OK''' button</span>.
# You will return to your c7host VM. Click '''Power on this virtual machine''' icon near the top to boot your c7host VM to start your c7host VM, and proceed to Part 2.
===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 c7host 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:'''
[[Image:installation_summary.png|thumb|right|400px|The '''Installation Summary''' screen provides flexibly when configuring to install on your computer. ]]
# Select from the installation menu: '''Install
# 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>
::*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.
::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. (eg. '''30 GB x 1024 = 30720 MB''')<br><br>
<ol><li value="5">We will now create the root (/) partition. '''Click on the add button (plus) sign'''.<br></li>
<ol><li value="4">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!'''</li>
<li>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.</li><li>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, Click on '''License Not Accepted''' and graphically accept the license and then click '''FINISH CONFIGURATION''' to finish the installation process.<br><br>'''NOTE:''' If you have an older version of Centos7, you must perform the alternative steps:<br>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></li>
<li>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></li>
<li>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></li>
===Managing your Virtual Machine===
In future labs, you will have to run your VMware Workstation application to boot-up your
Centos7 host VM.
Usually, you are NOT required to use this menu (unless you need to "force-off" the c7host7 machine, but should only be performed if you cannot normally shut-down the c7host VM from the OS.
Centos7 Session and Safely Removing USB Device|It is '''ABSOLUTELY ESSENTIA''' L that you do '''NOT''' remove your SSD drive during your Centos7 session. You are required to correctly shutdown your Centos7 host virtual machine as you would with any operating system. Also, you are required to use the '''Safely Remove Hardware and Eject Media''' tool in the system tray on your Windows machine to properly disconnect your SSD device. '''FAILURE TO DO THIS MAY DAMAG#E YOUR HOST VM AND NOW ALLOW IT TO BOOT PROPERLY (YOU HAVE BEEN WARNED)'''.}}
===Part 1: Turning Off Locked Screen-saver===