W2 Installing linux in a virtual machine
Download
Report
Transcript W2 Installing linux in a virtual machine
Linux Virtual Machine
CSC227: Operating Systems
Fall 2016
Tutorial 1
1
Afnan Algobail
An Overview of the Linux Operating
System
Linux is an open-source operating system.
It is Unix-Like that can run on PCs. Unix cannot because of its
complexity.
A Linux distribution is a collection of software (package) built
around the Linux Kernel.
Different distribution are available such as Ubuntu, openSUSE,
Debian, Sugar (Linux for kids), and many others.
Explore Linux distribution on:
http://www.slant.co/topics/871/~linux-distributions-fordesktops
Linux provides both graphical and command-line interfaces.
It is recommended that you create an account on the Linux
forum such as:
http://www.linuxforums.org/
2
Operating System Virtualization
Virtualization can be defined as “installing multiple operating
systems on the top of an existing one.”
For example, you can install Linux on top of Windows. In such case,
you can work under both operating systems.
More than one operating system can be installed on top of Windows.
In order to install Linux on top of Windows, we need the following
software:
A) Windows
B) Linux
C) A software that enables us to install Linux on top of Windows
Guest OS
Guest OS
Guest OS
Host OS
Hardware
3
What is a Virtual Machine?
A Virtual Machine (VM) is a software program or operating
system that capable of performing tasks such as running
applications and programs like a separate computer.
Virtual machines allow you to run any operating system in a
window on your desktop.
A virtual machine, usually known as a guest is created within
another computing environment referred as a host.
Multiple virtual machines can exist within a single host at one
time.
4
How to create a VM
In order to create the VM, you need to:
1.
Install the free VirtualBox or VMware Player.
2.
Download an ISO file for a Linux distribution such as
Ubuntu.
3.
Install that Linux distribution inside the virtual
machine like you would install it on a standard
computer.
5
Installing Linux Virtual Machine
Step 1: Obtaining Virtual Box
Visit www.virtualbox.org and click on the download tab.
Download the virtualbox platform packages for your appropriate
system.
6
Installing Linux Virtual Machine(Cont.)
Step 1: Obtaining Virtual Box
Install the software by double-clicking on the downloaded file. This
will open the following window
Click on the Continue button.
7
Installing Linux Virtual Machine(Cont.)
Step 1: Obtaining Virtual Box
Then click on the Install button.
8
Installing Linux Virtual Machine(Cont.)
Step 2: Installation as a VirtualBox Appliance
Visit http://people.westminstercollege.edu/faculty/ggagne/osc/vm/OSC-2016.ova to download
the file OSC-2016.ova.
Double-click on the downloaded file. This will open the following
window
9
Installing Linux Virtual Machine(Cont.)
Step 3: Running Linux
Highlight the virtual machine you wish to run (OSC-2016) and
click on the Start button.
10
Installing Linux Virtual Machine(Cont.)
Step 3: Running Linux
The default username is oscreader and the password is osc as
well
There is a root user and the password is osc
11
Running Applications
If you click on the Activities button, a side bar will appear with a
list of useful applications
12
Running Applications (Cont.)
There are no graphical development tools built-in. Rather, you
will have to use a command line where you will find gcc, our C
compiler.
Applications -> Terminal
There is also an editor – gedit. However this is a text editor only. You
can use it to edit your C files, yet you will have to compile it using
the command line.
Applications -> gedit Text Editor
13