ch 2 cloud computing
ch 2 cloud computing
School of Computing
Department of Software Engineering
Fundamentals of Cloud computing
“Chapter 2 : Basics of Virtualization”
By Abebaw S.
12/6/2024 1
Outline
12/6/2024 2
Introduction
Virtualization example
• Dividing your actual hard drive into
different partitions.
• A partition is the logical division of a
12/6/2024
hard disk drive (e.g. C:, D:, E: etc.) 5
Traditional Vs. Virtual Server Model
12/6/2024 6
Why Virtualization?
12/6/2024 8
Types of Virtualization
Hardware
Virtualizati
Operating
ons y s t e m
Application
Virtualizati
Virtualizati
N eon
twork
on
Virtualizati
on Desktop
Virtualizati
Storage
on Virtualizati
Server Virtualization on
Data Virtualization
12/6/2024 9
Hardware Virtualization
12/6/2024 11
Application Virtualization
The ability to run multiple virtual networks with each has a separate
control and data plan
Like worker bees in a hive, the servers operate without knowing the
precise location of their data
12/6/2024 15
Server Virtualization
12/6/2024 17
Implementations Levels Virtualization
4. Library Level
5. Application Level
12/6/2024 18
Instruction Set Architecture Level (ISA)
ISA virtualizaticanon work through ISA
emulation.
12/6/2024 21
Library Level Virtualization
12/6/2024 22
Application Level Virtualization
API hooks are used
to control the
Applications utilize
communication
the user-level APIs
between application
Examples WINE / vCUDA from the libraries
and the rest of the
when the operating
system.
system is
What is API?
unmanageable.
• A P I s •t aSince
n d s API
for
A p p l i interfaces
c a t i o n are
P r o g r agood
m m icandidates
ng
Interface.for virtualization.
12/6/2024
• Interface can be 23
Virtualization Structures /Tools and
Mechanism
In general, there are three typical classes of VM architecture.
12/6/2024 25
Virtualization Structures /Tools and Mechanism
Type 1
• It is also known as a Native or Bare metal
hypervisor
Type
• Runs2 directly on the host’s hardware
It does
• Also not require
called Hostedany base server operating
Hypervisor
• system
Run over a host operating system
•• It
It has direct
is the access
second layertoover
hardware resources.
the hardware
• Guest OS run a layer over the hypervisor.
12/6/2024
• The OS is usually unaware of the virtualization 28
12/6/2024 29
Binary Translation with Full Virtualization
12/6/2024 30
Binary Translation of Guest OS Requests Using a VMM
12/6/2024 31
Host-based virtualization
I n s t a l l a
virtualization layer
on top of the host
OS.
Advantages.
• The user can
install VM without
Disadvantages
modifying the host
• P erformance is
OS.
low to be useful in
• Flexible
practice. When an
application
requests hardware
12/6/2024 32
access, it involves
Para-virtualization
It needs to
VM provides
modify the
special APIs
guest OS
t o O S
modification
sPerformance
in user
applications.
degradation
is a critical
issue
12/6/2024 33
CPU, Memory, and I/O Virtualization
To support virtualization, processors such as the
x86 utilize a special running mode and instructions,
known as hardware-assisted virtualization.
In this way:
• The VMM and guest OS run in different modes and,
• All sensitive instructions of the guest OS and its
applications are trapped in the VMM.
To save processor states, mode switching is completed
by hardware.
12/6/2024 40
Memory Virtualization
12/6/2024 41
I/O Virtualization
12/6/2024 45