Class 2
Class 2
Class 2
Virtualization
Content
§ Introduction to virtualization
§ Some problems you are facing in Cloud Computing
§ Cloud computing vs virtualization
§ Hypervisor
§ A hardware virtualization reference model
§ Taxonomy of virtualization techniques
§ Hardware virtualization techniques
§ Why Virtualize?
§ Types of Virtualization
§ Benefits of Virtualization 2
Introduction to virtualization
3
Some problems you are facing in Cloud Computing
n Some problems you are facing in Cloud Computing ?
n Clients will request different operating system.
n Clients will …
requests.
n or …
4
Some problems you are facing in Cloud Computing
n What if we allocate a new physical machine for each
incomer ?
5
Some problems you are facing in Cloud Computing
6
Cloud computing vs virtualization
§ Cloud Computing
§ On demand provision of computational resources
(Infrastructure, Platform, Software).
§ Requires high availability of resources and optimum use.
7
Cloud computing vs virtualization
n Virtualization is the ability to run multiple operating systems
on a single physical system and share the underlying
hardware resources.
n It is the process by which one computer hosts the appearance
of many computers.
n One physical hardware can run multiple OS and applications
through a hypervisor.
Applications
Application
Application
Application
Application
Operating
Operating
OperatingSystem
Operating
Operating System
System
System
System
Hypervisor
Hardware
8
Virtualization in Cloud Computing
• Cloud computing have ability to virtualize and share resources among
different applications.
• Virtual workspaces:
• An abstraction of an execution environment available to authorized clients
• Use protocols, Resource (CPU, memory share) and Software configuration .
12
Server without virtualization
§ Only one OS can run at a time
within a server.
§ Under utilization of resources. Multiple Software
§ Hardware changes require Applications
manual effort and access to Hardware
Operating System
the physical server.
13
Server with virtualization
§ Can run multiple OS
simultaneously.
§ Each OS can have different
hardware configuration.
§ Efficient utilization of hardware
resources.
§ Each virtual machine is
independent.
§ Save electricity, initial cost to buy
servers, space etc.
§ Easy to manage and monitor
virtual machines centrally.
14
Hardware virtualization reference model
§ The machine on which the virtual
machine is created is known as host
machine (original environment where
guest runs).
§ Virtualmachine is referred as
a guest machine (system component
that interacts with Virtualization Layer).
16
Taxonomy of Virtualization Techniques
17
Hypervisor TYPE
n Type I Hypervisor.(known as
native or bare-metal
hypervisors)
§ This type of hypervisor runs
directly on the host computer’s
hardware in order to control the
hardware resources and also to
manage the guest OSs.
§ Examples include VMware ESXi,
Citrix XenServer, and Microsoft
Hyper-V hypervisor.
18
Hypervisor TYPE
n Type II Hypervisor.(known as the
hosted hypervisors)
§ Require the support of an operating
system to provide virtualization services.
§ Runs virtual machines on top of a host OS
(windows, Unix etc.)
§ Relies on host OS for physical resource
management.
§ Host operating system provides drivers
for communicating with the server
hardware.
§ E.g.: VirtualBox, VMware Workstation.
19
HYPERVISOR implementation approaches
Full virtualization
§ In full virtualization, the entire
system is emulated (BIOS, drive,
and so on).
§ Guest OS is not aware that it is
being virtualized.
§ Execute and binary translation
techniques to achieve full
virtualization of server systems.
20
Advantages and disadvantage of Full virtualization
Full virtualization
§ The advantages of the full virtualization include isolation
among the various VMs, isolation between the VMs and the
hypervisor.
§ Concurrent execution of multiple OSs, and no change
required in the guest OS.
§ A disadvantage is that the overall system performance may
be affected due to binary translation.
21
HYPERVISOR implementation approaches
Para virtualization
§ Special API that a modified guest OS
§ In this type of virtualization, partial
simulation of the underlying hardware
infrastructure is achieved.
§ Guest OS is aware of the fact that it is
running in a virtualized environment.
§ In this case, hypercalls are used for
the direct communication between the
guest OS and the hypervisor.
22
Advantages and disadvantage of Paravirtualization
Paravirtualization
23
Hardware-Assisted Virtualization
§ In this type of virtualization, hardware
products supporting the virtualization are
used.
§ Intel has released its processor with its
virtualization technology VT-x, and AMD
have released its processor with its
virtualization technology AMD-v to
support the virtualization.
§ An advantage of this approach could be
that it eliminates the overhead of binary
translation and paravirtualization.
§ A disadvantage includes the lack of
support from all vendors
24
Why need Virtualization?
n More powerful hardware, allowing each machine to
run multiple applications simultaneously.
n Pressure to lower IT costs and simplify IT
administration.
n Need to manage large-scale installations and clusters,
such as server farms.
n Improved security, reliability, scalability, and device
independence.
n Ability to mix multiple operating systems on same
hardware.
25
Types of Virtualization
§ OS Virtualization
§ In OS virtualization, a desktop’s main OS is moved into a virtual
environment. The computer that is used by the service consumers
remains on their desk, but the OS is hosted on a server elsewhere.
§ Usually, there is one version of the OS on the server, and copies of that
individual OS are given to the individual user. Various users can then
modify the OS as they wish, without affecting the other users.
Types of Virtualization
§ Server Virtualization
§ In server virtualization, existing physical servers are moved into a virtual
environment, which is then hosted on a physical server.
§ Modern servers can host more than one server simultaneously, which
allows the users to reduce the number of servers to be reserved for
various purposes.
§ Also, the main memory consolidation in the virtualized cloud DCs could
be performed by the hypervisor
§ In cloud DCs, high availability and backup of the user’s data are
achieved through storage virtualization technology.
Types of Virtualization
§ Network Virtualization
§ In network virtualization (NV), logical virtual networks are created from
the underlying physical network.