Changes

Jump to: navigation, search

OPS235 Lab 2

52 bytes added, 10:10, 23 June 2016
no edit summary
=== Purpose / Objectives of Lab2===
In this lab, you will create 3 remaining virtual machines using another virtualization program called '''KVM ''' that will run in your c7host VM. These VMs will be used throughout the remainder of this course to learn how to administer them (installing software, managing services, networking, etc).
While you are performing this lab, it is recommended to generally note the major differences in the different installation methods, and which method you prefer to use if you were a Linux system administrator in charge of installing many Linux distributions for an organization.
* Installing additional Virtualization Software on your '''c7host''' machine ('''KVM''')
* '''Create 3 separate VMs (virtual machines) using different installation methods:'''
:* '''centos1''': Network Centos Installation ('''Graphical'''):* '''centos2''': Network Centos Installation (minimal install - '''CLI only'''):* '''centos3''': Network Centos Installation with Kickstart configuration file ('''CLI only''')
* Manipulate virtual machines by CLI ('''virsh''')
* Properly '''backup VM images''' and backup '''VM configuration files'''
# Launch the '''VMware Workstation''' application.
# Select '''Open Virtual Machine''', and select the VM called '''c7host''' on your Solid State Drive.
# Launch your '''c7host''' machine, and login as as a regular user and open a shell terminal, and '''su -''' into '''root'''.
# Edit the file called: '''/boot/efi/EFI/centos/grub.cfg'''
# Search for the first occurrence of the Linux Kernel boot command.
</code></blockquote>
<ol><li value="7">Save your editing changes, and <u>'''reboot '''</u> your c7host VM.</li>
<li>If you configured your c7host VM for nested VMs, then you should get the output <b><code><span style="color:#3366CC;font-size:1.2em;">Y</span></code></b> when you issue the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">cat /sys/module/kvm_intel/parameters/nested</span></code></b></li>
</ol>
:'''Perform the following steps:'''
# Make certain that you are logged in as a '''<u>regular user </u>''' (i.e. NOT root) in your home directory.# You will need to download an image file for the Centos7 LIVE DVD by issuing the following command (best works while at Seneca):<br><b><code><span style="color:#3366CC;font-size:1.2em;">wget http://belmont.senecac.on.ca/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1511.iso</span></code></b><br>(If you are doing this at home, try: <code><span style="color:#3366CC;font-size:1.2em;">wget http://mirror.csclub.uwaterloo.ca/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso)</span></code><br><br>#You must perform a software update''' on your '''c7host''' machine before proceeding with the next steps.# Login as root and issue VM by issuing the following command: <b><code><span style="color:#3366CC;font-size:1.2em;">yum update</span></code></b>
# As root, install the virtualization software by issuing the command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python \<br>python-virtinst libvirt-client virt-install virt-viewer bridge-utils</span></code></b> <br><br>
# '''Restart your c7host virtual machine'''. If you fail to do this, you may experience virtualization network problems.
13,420
edits

Navigation menu