Changes

Jump to: navigation, search

OPS235 Lab 2 - CentOS7 - SSD

57 bytes added, 15:58, 19 June 2016
no edit summary
# In the Virtual Machine Manger, click on the icon to '''Create a Virtual Machine''' in the upper-left corner:
# A window will appear with the title '''New VM'''. There are several steps to be completed:<ol type="a"><li>Select '''Local install media''' and click '''Forward'''.</li><li>Select '''Use ISO Image''', followed by the '''Browse''' button, and then the '''Browse Local''' button. Navigate to the location of the downloaded Centos7 LIVE CD image, select the image file and click '''Open'''. When finished, click '''Forward''' to proceed.</li><li>Set the memory to '''2048 MB''' and the number of CPUs to '''1'''</li><li>You will then be prompted to enter a size for the virtual machine's disk drive. Select a size of '''10 GB''' and then click '''Forward''' to proceed.</li><li>Enter the virtual machine name: '''centos1'''. Review the VM information, and click '''Finish'''.</li></ol>
<ol><li value="4">The virtual machine will boot as a '''Live User'''. This means that the Linux OS is just running temporarily. In order to install the LInux OS on your VM, double-click on the icon labelled:'''Install to Hard Drive'''.</li><li>Start timing this install.</li><li>The installation program, similar to the one used when installing CentOS in Lab 1, will appear(Including '''Gnome Desktop''' software configuration). You basically perform the same installation operations for this VM including for '''Date & Time''', '''Network & Hostname''', and '''Installation Destination'''. Make certain to use the '''hostname''': '''<u>centos1</u>''' as opposed to ''c7host'') for this installation. </li><li><span style="background-color:yellow;">For '''Installation Destination''', select the destination option: '''I will configure partitioning''' and then click '''Done'''. Make certain that the '''Partition Scheme''' is set to '''LVM''' and then click on the link: '''Click to Create Automatically'''. '''Done'''. Check to make certain that the root partition has file system type: '''ext4'''.</span></li><li>Accept the changes and then click '''Begin Installation'''.<ol type="a"><li>You will be required to make selections very similar to what you did in lab1.</li><li>While the system is installing, take a few minutes to record your observations (including slight differences with centos1 install as opposed to c7host install).</li><li>When the installation process is complete, note the time required to install this system and record in the installation comparison chart of your lab2 logbook.<br><br></li></ol></li><li>Power-off your Centos7 LIVE system.</li><li>You should notice that the Centos7 boot menu appears. Either press '''ENTER''' to start or wait for it to start automatically.</li><li>Finish the final steps in the setup process (like you did in lab1).</li><li>It is recommended to turn off the screen-saver (like you did in Lab1): [http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_1_-_CentOS7#Customizing_Your_Account How to Turn-off Screen Saver (lab1)]</li>
<li>Enable SSH access to your virtual machine with these commands (semi-colon allows commands to be run in sequence):<br /> <b><code><span style="color:#3366CC;font-size:1.2em;">service sshd start; chkconfig sshd on</span></code></b></li>
<li>Find out the IP address of your virtual machine and the name of your Ethernet network adaptor: <b><code><span style="color:#3366CC;font-size:1.2em;">ifconfig</span></code></b> </li>
:: '''VM Name (and hostname):''' centos2
:: '''Boot media:''' Network installation
:: '''Installation source Centos Full Network Install URL:''':::*Seneca Lab:''' http://belmont.senecac.on.ca/centos/7/os/x86_64/
:::*Home: http://mirror.csclub.uwaterloo.ca/centos/7/os/x86_64/
:: '''VM Image Pathname:''' /var/lib/libvirt/images/centos2.qcow2
:'''Perform the following steps:'''
# Create the VM (called '''centos2''') as you did with the ''centos1'' machine, except for the following differences:<br><br><ol type="a"><li>Select '''Network Installation''' using the installation source URL displayed above.</li><li><span style="background-color:yellow;">When customizing your partitions, do the same operation that you did in centos2(with '''Gnome Desktop''' software selection), but after automatically creating the partitions, reduce the size of the root LVM partition to '''8000 MB''' and add an LVM partition with a size of '''2000 MB''' (mount point: '''/home''', name: '''home''', and make certain root and /home partitions have '''ext4''' file system).</li><li>Don't forget to install the GNOME desktop here as you will need a GUI for Centos2<br><brspan></li></ol>
# Complete the installation. Login to your regular user account, and perform a yum update for the centos2 VM (reboot if required). Make certain to adjust your screen-saver settings if desired.
# Repeat the steps as you did to '''start the SSH service''', '''set iptables to accept connections via ssh''', '''test connections between centos2 and centos1''', and '''disable SELinux''' (refer to lab1).
13,420
edits

Navigation menu