Changes

Jump to: navigation, search

OPS335 Installation Lab

1,856 bytes removed, 11:57, 3 January 2014
m
Moving some systemd related content to lab 1
= Installation of Centos 6.5 =
 
[[Category:OPS335]][[Category:OPS335 Labs]]
==Part A: Host Installation ==
=== Installation instructions for Centos 6.5 ===
#Download a copy of the Centos 6.5 installation DVD (64 bit edition) from the Centos web site or burn the DVD using Seneca's Freedom Toaster which is located in the Open Lab on the 2nd floor of the TEL building. Note: we'll be using the 64 bit version of Centos because all of our lab computers are equiped with Intel 64 bit mainboards and CPUs. We'll also be using a Fedora iso for installing the virtual machines, but you will not need to burn that to a disc. It is faster to download the ISO and install directly from it. Finally, if you're going to burn your DVD using the Freedom Toaster then be sure to use a blank DVD-R disc. DVD+R discs sometimes fail to burn successfully.
#* '''Seneca's mirror of Centos:''' http://belmont.senecac.on.ca/centos <br />(This is very fast, but is only accessible from within Seneca's network - you can't access this from home. You can burn this disc on the machines in the Open Lab.)<br />
should be
onboot=yes
*Update If you had to change that, reboot your machine. *Once you have a working connection update your machine (this may take a while).
yum update
*Reboot the virtual machine once it is updated.
cat /etc/issue
uname -a
===Minimizing your VM's footprint===
*Since all VMs used in this course are intended to be servers, the presence of a GUI in not recommended - servers are typically managed from the command line.
* Make it boot by default to the command line only
**Fedora 17 and onward do not use '/etc/inittab' to set the default run level but rather use targets as a more flexible replacement. Note the output of the following command:
ll /etc/systemd/system/*.target
lrwxrwxrwx. 1 root root 36 Dec 3 09:35 /etc/systemd/system/default.target -> /lib/systemd/system/runlevel5.target
and
ll /lib/systemd/system/*.target
Systemd uses symbolic links to point to the default runlevel in use. To change the default runlevel you must first remove the existing symlink.
rm /etc/systemd/system/default.target
To change your system to boot in multi-user mode by default:
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
Make note of the command that would be needed to change the default 'runlevel' (or 'target' as it is now referred to when using systemd) to graphical or runlevel 5.
Test your VM to make sure that it boots correctly before moving on to the next step.
 
===Managing a Service===
*Before you start, if you are more familiar with the chkconfig or service commands, you may wish to review the [http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet SysVinit to Systemd Cheatsheet].
*You will want to be able to communicate with your machines using ssh.
**Check the ip address of the virtual machine
ip address show
**Start the ssh service on the virtual machine. Also set the service to start automatically when the machine boots.
**Use ssh to connect from your host to the virtual machine.
***You will be prompted to store the virtual machine's identification. Choose yes (we will cover this in more detail later).
**Reboot the virtual machine and check the status of your ssh service.
===Cloning a Virtual Machine===
932
edits

Navigation menu