Professional Documents
Culture Documents
Virtualization and Cloud Computing: Vera Asodi Vmware
Virtualization and Cloud Computing: Vera Asodi Vmware
Vera Asodi
VMware
2
History
3
Virtual Machine
4
Traditional vs. Virtual Architecture
5
Benefits of Virtualization
Resource management
Easy Management
6
Virtual Center
7
Types of Virtualization
Host OS VMM
8
Types of Virtualization (cont.)
9
Running a VM
10
Emulation
Emulation:
• Do what the CPU does in SW.
• Example:
addl %ebx, %eax
is emulated as:
enum {EAX=0, EBX=1, ECX=2, EDX=3, …};
unsigned long regs[8];
regs[EAX] += regs[EBX];
Pro: simple
Con: slow
11
The Difficulty of Virtualization
Ring 2 Ring 2
12
Trap and Emulate
Pros:
• Efficient
Cons:
• Harder to implement
• Need hardware support - not all sensitive instructions cause a trap
when executed in a non-privileged mode.
13
Binary Translation
Translation:
• Most of the instructions translate identically.
• Sensitive instructions are translated into safe ones.
Pros:
• More efficient than emulation
• No need for hardware support
Cons:
• Less efficient than trap and emulate
• Hard to implement
14
Paravirtualization
Pros:
• Efficient
• No need for hardware support
Cons:
• Need a modified version of the guest OS, that is aware to the fact that
it runs on a VM.
15
Running a VM - Summary
Paravirtualization:
• OS modified and aware.
• Improved performance.
The technologies used in the industry are mainly trap and emulate and
binary translation, or a combination of both.
16
I/O Virtualization
Types of I/O:
• Block (hard disk)
• Network
• User input: keyboard, mouse
• Sound
• Video
17
NIC – Network Interface Card
18
I/O Virtualization - Emulation
19
I/O Virtualization – Emulation (cont.)
Pros:
• Unmodified guest (guest already has drivers for Intel NICs…).
Cons:
• Slow – every access to every NIC register causes a VM exit (trap to
hypervisor).
• Hypervisor needs to emulate complex hardware.
20
I/O Virtualization - Paravirtualization
pNIC
21
I/O Virtualization – Paravirtualization (cont.)
Paravirtual protocol:
• Instead of writing to registers, guest calls the hypervisor, passes it start
address and length as arguments
• Hypervisor knows what it should do
22
I/O Virtualization – Direct Access
23
I/O Virtualization – SR-IOV
24
I/O Virtualization – SR-IOV (cont.)
Pros:
• As fast as possible
• Need only one NIC (as opposed to direct assignment)
Cons:
• Few hypervisors fully support it
• Expensive
• Requires new hardware
• Cannot encapsulate guest packets, monitor or modify them at the
hypervisor level.
25
Live Migration
HP HP
1 2 P o
r L ia n t 1 2 P o
r L ia n t
1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6 1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6
O WE
P R P O WE
R O WE
P R P O WE
R
Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P
O WE
P RCP
A O WE
P RCP
A
D IM M S D IM M S
A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A
2 6 2 6
D4
2 B6
H F
8 F 6
8 H B2
4 D D4
2 B6
H F
8 F 6
8 H B2
4 D
1 ON
E
R
A
P
S IE
L 2 1 ON
E
R
A
P
S IE
L 2
R O C M IR
P OR ROC
P R O C M IR
P OR ROC
P
N S
A
F 3 7 N S
A
F 3 7
1 2 3 4 5 6 1 2 3 4 5 6
4 8 4 8
26
Global Performance Optimization
HP HP
1 2 P o
r L ia n t 1 2 P o
r L ia n t
1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6 1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6
O WE
P R P O WE
R O WE
P R P O WE
R
Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P
O WE
P RCP
A O WE
P RCP
A
D IM M S D IM M S
A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A
2 6 2 6
D4
2 B6
H F
8 F 6
8 H B2
4 D D4
2 B6
H F
8 F 6
8 H B2
4 D
1 ON
E
R
A
P
S IE
L 2 1 ON
E
R
A
P
S IE
L 2
R O C M IR
P OR ROC
P R O C M IR
P OR ROC
P
N S
A
F 3 7 N S
A
F 3 7
1 2 3 4 5 6 1 2 3 4 5 6
4 8 4 8
Imbalanced
Balanced
Giant Computer
HP
Heavy Load 1 2
HP
P o
r L a
i n t
1 2 P o
r L ia n t 1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6
O WE
P R P O WE
R
1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6 S
Y
L
P
U Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P
O WE
P R P O WE
R O WE
P RAC
P
Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P D IM M S
O WE
P RCP
A A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A
D IM M S
A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A 2 6
2 6 D4
2 B6
H F
8 F 6
8 H B2
4 D
1 ON
E
R
A
P
S IE
L 2
D4
2 BH
6 8
F F 6
8 H BD
4 2
1 ON
E
R
A
P
S IE
L 2 R O C M IR
P OR ROC
P
N S
A
F 3 7
Lighter Load
R O C M IR
P OR ROC
P 1 2 3 4 5 6
N S
A
F 3 7
1 2 3 4 5 6
4 8
4 8
27
Global Power Optimization
20% Average
Power Savings
HHP P HP
11 22 P Pro roL Lia ian nt t 1 2 P o
r L ia n t
11 22 OT
M
E
TOP
M
ERP
E
V R
E
V 11 55 DDL L3 38 80 0GG6 6 1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6
OP
P OWEWE
RR POPOWE
WE
RR O WE
P R P O WE
R
YS
L
P
U
S Y
L
P
U YS
L
P
U
S Y
L
P
U OIN
L
R
E
T
INOC
L
R
E
TKCK RP
E
Y
A
L
P R
E
Y
A
L Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P
OP
P OWEWE
RRC
PC
AP
A O WE
P RCP
A
DDIMIMMMSS D IM M S
A1
1 A3
G3G 5E5
E7
C7C 9
i9i9
i9i7
C7C 5 E5
E3
G3G 1 A1
A A 3
1 G E7
5 C i 9
9 i 7
C E3
5 G 1 A
22 66 2 6
D2
2 D4
B4B6
H6H 8
F8F F8
8 F6
H6H 4
B4B2
D2D D4
2 B6
H F
8 F 6
8 H B2
4 D
11 SOS
E
R
A
P ON
E
R
A
PIEN
L IE
L 22 1 ON
E
R
A
P
S IE
L 2
RP
PROOCC MMIR
OIR
ORR RP
PROOCC R O C M IR
P OR ROC
P
NF
A
FNSS
A 33 77 N S
A
F 3 7
11 22 33 44 55 66 1 2 3 4 5 6
44 88 4 8
P WE
O
Y
L
P
U
S
O WE
P
A 3
1 G
RA
1
R P
C
P
U
S
E7
5 C
2
O WE
Y
L
P
R
1
i 9
9 i 7
C
2
OP
M
E
T R
E
V
OC
L
R
E
T
IN
E3
5
K
D IM M S
G 1 A
1 5
R
E
Y
A
L
P
HP
P o
r L ia n t
D L 3 8 0 G6 PWR APPs P WE
O
Y
L
P
U
S
O WE
P
A 3
1 G
RA
1
R P
C
P
Y
L
P
U
S
E7
5 C
2
O WE
R
1
i 9
9 i 7
C
2
OP
M
E
T R
E
V
OC
L
R
E
T
IN
E3
5
K
D IM M S
G 1 A
1 5
R
E
Y
A
L
P
HP
P o
r L ia n t
D L 3 8 0 G6
2 6 2 6
D4
2 B6
H F
8 F 6
8 H B2
4 D D4
2 B6
H F
8 F 6
8 H B2
4 D
1 ON
E
R
A
P
S IE
L 2 1 ON
E
R
A
P
S IE
L 2
R O C M IR
P OR ROC
P R O C M IR
P OR ROC
P
N S
A
F 3 7 N S
A
F 3 7
1 2 3 4 5 6 1 2 3 4 5 6
4 8 4 8
28
Live Migration
HP HP
1 2 P o
r L ia n t 1 2 P o
r L ia n t
1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6 1 2 OP
M
E
T R
E
V 1 5 D L 3 8 0 G6
O WE
P R P O WE
R O WE
P R P O WE
R
Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P Y
L
P
U
S Y
L
P
U
S OC
L
R
E
T
IN K R
E
Y
A
L
P
O WE
P RCP
A O WE
P RCP
A
D IM M S D IM M S
A 3
1 G E7
5 C i 9
9 i 7
C EG
5 3 A
1 A 3
1 G E7
5 C i 9
9 i 7
C EG
5 3 A
1
2 6 2 6
D4
2 B6
H F
8 F 6
8 H B2
4 D D4
2 B6
H F
8 F 6
8 H B2
4 D
1 ON
E
R
A
P
S IE
L 2 1 ON
E
R
A
P
S IE
L 2
R O C M IR
P OR ROC
P R O C M IR
P OR ROC
P
N S
A
F 3 7 N S
A
F 3 7
1 2 3 4 5 6 1 2 3 4 5 6
4 8 4 8
State
1
Continue until n
is small enough 2
(depends on the
desired downtime)
n
29
HW/SW Separation
30
Cloud Computing
31
Cloud Computing
Internal Cloud
33
Types of Clouds
34
SaaS
Software as a Service
The cloud provider provides a SW that is available for use over the
internet.
The user only pays for usage rather than buy the SW.
The user does not have to worry about installation, upgrades, and the
infrastructure needed for the SW.
35
IaaS
Infrastructure as a Service
The cloud provider provides the user a computer with CPU, memory,
storage, network, etc. that is available for use through the internet.
The user pays for the CPU cycles and network usage.
The user does not have to buy the HW and provide the space, electricity
maintenance, etc.
36
PaaS
Platform as a Service
37
Benefits of Cloud Computing
High availability
Scalability
Eco-friendly
38
39