Assignment No:2: Virtualization Basics, Benefits of Virtualization in Cloud Using Open Source Operating System
Assignment No:2: Virtualization Basics, Benefits of Virtualization in Cloud Using Open Source Operating System
Theory:
B] Types of Virtualization:
1. Hardware Virtualization.
When the virtual machine software or virtual machine manager (VMM) is directly
installed on the hardware system is known as hardware virtualization. The main job
of hypervisor is to control and monitoring the processor, memory and other
hardware resources. After virtualization of hardware system we can install different
operating system on it and run different applications on those OS.
Usage: Hardware virtualization is mainly done for the server platforms, because
controlling virtual machines is much easier than controlling a physical server.
3. Server Virtualization.
When the virtual machine software or virtual machine manager (VMM) is directly
installed on the Server system is known as server virtualization.
4. Storage Virtualization.
Storage virtualization is the process of grouping the physical storage from multiple network
storage devices so that it looks like a single storage device. Storage virtualization is also
implemented by using software applications.
Usage: Storage virtualization is mainly done for back-up and recovery purposes.
C] Levels of Virtualization:
5. User-Application Level
Virtualization at the application level virtualizes an application as a VM. On a traditional OS, an
application often runs as a process. Therefore, application-level virtualization is also
known as process-level virtualization. Any program written in the HLL and compiled for
this VM will be able to run on it. The Microsoft .NET CLR and Java Virtual Machine
(JVM) are two good examples of this class of VM.
D] Virtualization
Virtualization is not a new concept, but its complexity has been growing, and a number of
new paradigms are rising. Let’s consider three very simple concepts regarding
virtualization: the host operating system, the hypervisor, and the guest operating system.
The host operating system provides a host to one or more virtual machines (or partitions) and
shares physical resources with them. It’s where the virtualization product or the partitioning
product is installed. The guest operating system is the operating system installed inside a virtual
machine (or a partition). In a virtualization solution the guest OS can be completely different from
the host OS. In a partitioning solution the guest OS must be identical to the host OS.
A hypervisor, also called a virtual machine manager (VMM), is a program that allows multiple
operating systems to share a single hardware host. Each operating system appears to have the
host’s processor, memory, and other resources all to itself. The task of this hypervisor is to handle
resource and memory allocation for the virtual machines, ensuring they cannot disrupt each other,
in addition to providing interfaces for higher level administration and monitoring tools.
Type 1 hypervisors, also known as baremetal, are s oftware systems that run directly on the host’s
hardware as a hardware control and guest operating system monitor. Baremetal virtualization is
the current enterprise data center leader. VMware ESX is easily the market leader in enterprise
virtualization at the moment, and it utilizes bare metal virtualization architecture. What is
immediately apparent about this architecture, is the lack of an existing OS; the hypervisor sits
directly on top of the hardware, hence the term “baremetal virtualization”. The reason so many
data centers implement baremetal products, such as ESX, Xen, and HyperV, is because of the
speed it provides due to the decreased overhead from the OS that hosted virtualization uses.
Type 2 hypervisors, also known as hosted, are software applications running within a
conventional operating system environment. This type of hypervisor is typically used in
client side virtualization solutions such as Microsoft s Virtual PC, and VMWare.
The hypervisor runs directly on the hardware of the host system in ring 0. Clearly, with the hypervisor
occupying ring 0 of the CPU, the kernels for any guest operating systems running on the system must
run in less privileged CPU rings. Unfortunately, most operating system kernels are written explicitly to
run in ring 0, for the simple reason that they need to perform tasks that are only
available in that ring, such as the ability to execute privileged CPU instructions and
directly manipulate memory.
The AMDV and IntelVT CPUs use a new privilege lev el called Ring 1 for the VMM to reside,
allowing for better performance as the VMM no longer needs to fool the Guest OS that it is
running in Ring 0.This is not a virtualization scenario; it s here solely for comparison
purposes. Here we see that the OS sits directly above the hardware executing in the ring 0.
Paravirtualization
Under paravirtualization, the kernel of the guest operating system is modified
specifically to run on the hypervisor. This typically involves replacing any privileged
operations that will only run in ring 0 of the CPU with calls to the hypervisor (known as
hypercalls). The hypervisor in turn performs the task on behalf of the guest kernel.
Hosted virtualization
This is the type of virtualization with which most users are familiar with. All of the desktop
virtualization products, such as VMware Workstation, VMware Fusion, and Parallels
Desktop for the Mac, and Microsoft Virtual PC implement hosted virtualization architecture.
There are many benefits to this type of virtualization. Users can install a virtualization
product onto their desktop just as any other application, and continue to use their desktop
OS. Hosted virtualization products also take advantage of the host OS’s device drivers,
resulting in the virtualization product supporting whatever hardware the host does.
4) In the Guest operating system window, choose installer disc image file(iso) option
and iso image file from the disk or any drive. I have put the iso file of ubuntu in D:
drive. So browse your iso image and click on next button.
5) In the easy install information window, provide full name, username,
password and confirm password then click on next button.
6) Set the path for Virtual Machine.
7) In the processor configuration information, you can select number of processors, number of
processor per core. If you don't want to change the default settings, click on next only.
8) In the memory of the virtual machine window, you can set the memory limit. Click
on the next button.
9) Make Necessary Configurations
10) In the specify disk capacity window, you can set the disk size. Click on the next button.
11) In the specify disk file window, you can specify the disk file then click on
the next button.
12) In the ready to create virtual machine window, click on the finish button.
13) Now you will see vmware screen then ubuntu screen.