Open main menu

CDOT Wiki β

Changes

OPS235 Lab 2 - CentOS7 - SSD

No change in size, 17:55, 9 June 2016
no edit summary
:'''VM Details:'''
:: '''VM Name (and hostname):''' centos2centos1
:: '''Boot media:''' LIVE CD Image (downloaded iso file)
:: '''Installation source:''' Downloaded Centos7 LIVE CD image (http://belmont.senecac.on.ca/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1511.iso)
:: '''VM Image Pathname:''' /var/lib/libvirt/images/centos2centos1.img
:: '''Memory:''' 2GB
:: '''Disk space:''' 10GB
# Launch the VMWare Workstation application.
# Click on the icon to ''Create a New Virtual Machine'' and select '''Custom (Advanced)'''.
[[Image:vm-path.png|thumb|right|300px|When your '''centos2centos1''' LIVE machine boots-up, immediately double-click on the '''Install to Hard Disk''' icon to run the installation program.]]<ol><li value="4">'''The virtual machine will now start'''.</li><li>Immediately double-click on the icon called '''Install to Hard Disk'''.</li><li>Start timing your installation and making notes for '''centos2centos1''' virtual machine in the '''installation comparison chart in lab2 logbook'''.</li><li>Select your downloaded iso Centos7 Gnome LIVE image (under ''Downloads'' folder) and click '''Next'''. Basically, you perform the same steps is in lab1 (i.e. select '''Custom (Advanced)''' with '''2 GB of RAM''', the VM name will be called '''centos2centos1''' and the Hard Disk size will be '''10 GB''' (not 20GB). </li><li>When your VM boots-up, Double-click '''Install to Hard Drive'''. The installation program, similar to the one used when installing CentOS in Lab 1, will appear. 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. (with a few slight differences).</li><li>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'''.</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>Restart your centos2 centos1 VM, and enter 1, 2, c, c, like you did in lab1.</li><li>Finish the final steps in the setup process (like you did in lab1).</li><li>It is recommended that you turn off the screen-saver (like you did in Lab1: [http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_1_-_CentOS7#Turn-Off_Screen_Saver_Lock Turn-off Screen Saver Lock]).</li></ol>
{| width="100%" align="right" cellpadding="10"
|- valign="top"
|}
<ol>
<li value="20">Make certain to '''disable SELinux for centos2centos1''' ([http://zenit.senecac.on.ca/wiki/index.php/OPS235_Lab_1_-_CentOS7_-_VMware#Disable_SELinux_and_Perform_Software_Updates refer to lab1])</li><li>Start and enable the SSH server to allow 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;">systemctl start sshd; systemctl enable sshd</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>
<li>Enter the following command on your virtual machine to create a firewall exception to allow ssh traffic into the machine:<br /> <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -I INPUT -p tcp -s0/0 -d0/0 --dport 22 -j ACCEPT</span></code></b></li><li>If you are logged in as root, logout to your regular user account.</li><li>Confirm that you can ssh to your virtual machine from the host (your main CentOS installation): <b><code><span style="color:#3366CC;font-size:1.2em;">ssh regularuserid@IPaddress</span></code></b> (where '''regularuserid''' is your regular user login id, and '''IPaddress''' is the '''IP_ADDRESS''' of your '''centos2centos1''' VM!).</li></ol>
{{Admon/important|Remember to Backup your VM to USB Key!|Remember that you need to backup your '''centos2centos1''' VM to your USB key before you leave your Seneca lab, or you will lose your work!}}
== Part 2: Installing from a Network ==
13,420
edits