1,576
edits
Changes
no edit summary
[[Image:vmware-1a.png|thumb|right|400px|At the end of lab2, your VMware Workstation application will contain '''4 virtual machines''' ('''c7host''' in your '''VMware Workstation''' application, and '''centos1, centos2, centos3 VMs''' in your '''KVM''' application). You will now have the option to run one virtual machine at a time, or run all machines simultaneously to learn about networking (covered in later labs) ]]
=== Purpose / Objectives of Lab2Lab 2===
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).
:: '''Centos Full Network Install URL:'''
:::*Seneca Lab: http://belmont.senecac.on.ca/centos/7/os/x86_64/
:::*Home: http://mirror.csclubnetflash.uwaterloo.canet/centos/7/os/x86_64/
:: '''VM Image Pathname:''' /var/lib/libvirt/images/centos1.qcow2
:: '''Memory:''' 2048MB
:: '''Centos Full Network Install URL:'''
:::*Seneca Lab: http://belmont.senecac.on.ca/centos/7/os/x86_64/
:::*Home: http://mirror.csclubnetflash.uwaterloo.canet/centos/7/os/x86_64/
:: '''VM Image Pathname:''' /var/lib/libvirt/images/centos2.qcow2
:: '''Memory:''' 2048MB
:: '''Centos7 Full Install Network URL:'''
:::*Seneca Lab: http://belmont.senecac.on.ca/centos/7/os/x86_64/
:::*Home: http://mirror.csclubnetflash.uwaterloo.canet/centos/7/os/x86_64/:: '''Kickstart File URL (Kernel options): ''' :::* Seneca Lab:''' <span style="color:green;font-weight:bold">ks=</span>http://scs.senecac.on.ca/~chris.johnson/OPS235/lab2/centos7-kickstart-v01.cfg:::* Home:''' <span style="color:green;font-weight:bold">ks=</span>http://matrixscs.senecac.on.ca/~andrewchris.smithjohnson/ops235OPS235/lab2/centos7-kickstart-v01-ext.cfg
:: '''VM Image Pathname:''' /var/lib/libvirt/images/centos3.qcow2
:: '''Memory:''' 2048MB ('''IMPORTANT''' Do not use less than 2048MB during installation.)
# Create the VM (called '''centos3''')
# During the install, copy the network URL, then click the '''URL options''' to expand the '''kernel options''' input textbox. Type the following in the kernel options textbox:<brul><li>Seneca Lab:'''<span style="color:#336699green;font-weight:bold">ks=</span>http://matrixscs.senecac.on.ca/~andrewchris.smithjohnson/ops235OPS235/lab2/centos7-kickstart-v01.cfg</li><li>'''Home:''' and then <span style="color:green;font-weight:bold">ks=</span>http://scs.senecac.on.ca/~chris.johnson/OPS235/lab2/centos7-kickstart-v01-ext.cfg</li></ul># Then click the '''forward''' button to proceed. Make certain to select the correct Memory Size and Disk Space size shown in the VM Details above#Make certain to enter the name: '''centos3''', <u>AND</u> then select the option: '''Customize configuration before install''', and select '''Copy Host CPU Configuration''', click '''Apply''', and then click '''Begin Installation'''.
# Observe the installation. How is it different from booting from a downloaded image?
# Record the time taken to install, and compare this to the time taken by the previous installations.<br><br>If during the installation, you see the message at the bottom '''Pane is Dead''', click the '''Virtual Machine''' menu at the top, select '''Shut Down''' -> '''Force Off''', '''right-click''' on '''centos3''' in the ''virtual manager'' window and select '''Delete'''. Redo the VM setup for a new instance of the ''centos3'' VM.<br><br>
# Boot the virtual machine and log in (use the user ID and password information from the previous step to gain access to this VM).
# Compare the experience to the first time you booted the other virtual machines.
#<span style="background-color:yellow;">Repeat the steps as you did in the previous investigation ([http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_2_-_CentOS7_-_SSD2#Part_2:_Install_KVM_Virtualization_Application Investigation1 Part 1]) to '''stop and disable firewalld, install iptables-services, start and enable iptables''' for this newly-created VM.</span>
# <span style="background-color:yellow;">Repeat the steps as you did with c7host post-install to '''disable SELinux''' and perform a '''yum update'''.</span>
# The ifconfig command may not be available in centos3. Issue the following command to obtain and record your centos2 IPADDR in your lab2 logbook: <b><code><span style="color:#3366CC;font-size:1.2em;">ip address</span></code></b>