Changes

Jump to: navigation, search

OPS235 Lab 2 - CentOS7 - SSD

No change in size, 18:02, 9 June 2016
no edit summary
{| width="40%" align="right" cellpadding="10"
|- valign="top"
|{{Admon/tip|Perform Downloads and Network installs at Seneca|'''It is recommended to perform this lab in one of Seneca College's labs'''. This lab uses servers which are on the Seneca network and which are not available from other locations (such as your home). If you attempt this lab from another location, adjust the belmont.senecac.on.ca URLs to point to another mirror server -- note that you may need to change the directory name as well as the server name. The installation of the '''centos4centos3''' virtual machine <u>must</u> be done at Seneca.}}
|}
:'''VM Details:'''
:: '''VM Name (and hostname):''' centos4centos3
:: '''Boot media:''' Network installation
:: '''Installation source URL:''' http://belmont.senecac.on.ca/centos/7/os/x86_64/
:: '''Kickstart File URL:''' http://matrix.senecac.on.ca/~andrew.smith/ops235/centos7-kickstart-v01.cfg
:: '''VM Image Pathname:''' /var/lib/libvirt/images/centos4centos3.img
:: '''Memory:''' 2048MB
:: '''Disk space:''' 15GB
# Create the VM as you did with the ''centos2'' virtual machine, specifying a network install as before, but specify the kickstart location under the "options section" for network install. What do you think is the purpose of this kickstart file?
# Observe the installation. How is it different from booting from a downloaded image?
# Complete the installation. Record the time taken to install, and compare this to the time taken by the previous installations.<br><br>If the 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 '''centos4centos3''' in the ''virtual manager'' window and select '''Delete'''. Redo the VM setup for a new instance of the ''centos4centos3'' VM.
# What happens when the installation is finished?
# Take a look at the kickstart file (eg. view url in a webj-browser) to determine the root password as well as the name and password for the first user account!
# Boot the virtual machine and log in (use the user ID and password information from the previous step). Compare the experience to the first time you booted the other virtual machines. Record this information in the '''table contained in Investigation 4'''.
# Repeat the steps as you did to '''start the SSH service''', '''set iptables to accept connections via ssh''', '''test connections between centos4 centos3 and centos1''', and '''disable SELinux''' (refer to lab1).# Remember that centos4 centos3 is text-based interface only (no graphics). To recover from a blank screen, press a key (like the SPACE key) to return to the screen display.
# Record the time taken to install, and compare this to the time taken by the previous installations. Record your findings in the Installation Comparison chart in lab2 logbook.
</table>
<br>
<ol><li value="2">The '''vmrun''' command is run with various arguments. The most common are: '''stop''', '''start''', '''reset''', '''suspend''', '''pause''', '''list''', and '''clone'''. This command is run with basically the same syntax regardless of the operating system that you are running.<br><br></li><li>Shut-down all of your VMs.</li><li>Issue the following command:<br><b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;">vmrun start path-to-centos1.vmx</span></code></b>. What happens?</li><li>Use the vmrun command to start the other VMs.</li><li>Issue the following command:<br><b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;">vmrun start path-to-centos4centos3.vmx</span></code></b>. What happens?</li><li>Issue the following command:<b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;">vmrun list path-to-centos1.vmx</span></code></b>. What happens? Why would you use this command?</li><li>Depending of your Operating system platform (Linux Bash Shell script, Windows Powershell script), download the following scripts in the table below to your current directory and run to see what happens. Notice how the '''for''' loop is used to in order to start and stop multiple VMs.</li></ol>
<br>
<table cellspacing="0" cellpadding="5" width="55%" style="border-top: thin solid black;margin-left:60px;">
13,420
edits

Navigation menu