Sri Raghavendra Educational Institutions Society (R)
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
www.skit.org.in
Module-2: Virtual Machines and Virtualization of Clusters and Data Centers
2
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Module-2: Virtual Machines and Virtualization of Clusters and Data Centers
3
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Implementation Levels of Virtualization
Virtualization allows multiple virtual machines (VMs) to run on the same physical computer, sharing its hardware and resources.
help improve resource utilization, allowing flexibility in running applications.
4
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Levels of Virtualization Implementation
Hardware level – Making the CPU and memory appear separate for each OS.
Operating system level – Allowing multiple OS to run on the same computer.
Application level – Running apps in isolated environments.
5
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
6
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
7
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Code interpretation (slow) – Translates one instruction at a time.
Dynamic binary translation (faster) – Converts multiple instructions at once.
8
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
9
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
10
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
VMM Design Requirements and Providers
11
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
12
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtualization Support at the OS Level
13
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Advantages of OS Extensions
How Does OS-Level Virtualization Work?
Disadvantages of OS Extensions
Same OS Family Required – All containers on one machine must use the same type of OS.
How VMs Access Resources
Why OS-Level Virtualization is a Second Choice
14
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
15
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 1: Virtualization support for Linux platform
16
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Middleware Support for Virtualization
WABI – Helps Windows programs run on Solaris.
Lxrun – Helps Linux programs run on UNIX.
WINE – Lets Windows apps run on Linux or UNIX.
Visual MainWin – Helps Windows programs (made with Visual Studio) run on UNIX.
17
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
18
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 2: The vCUDA for Virtualization of General-Purpose GPUs
19
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
20
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtualization Structures/Tools and Mechanisms
21
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Hypervisor and Xen Architecture
1.Micro-kernel Hypervisor (e.g., Microsoft Hyper-V)
2. Monolithic Hypervisor (e.g., VMware ESX)
22
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
The Xen Architecture
How Xen Works:
Security Issues:
Concern : If Domain 0 is hacked, the attacker can control all VMs.
23
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
i) Binary Translation with Full Virtualization
Full Virtualization
ii) Binary Translation of Guest OS Requests using a VMM
24
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
iii) Host-Based Virtualization
25
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Para-Virtualization with Compiler Support
Compatibility concerns – It may not work with unmodified operating systems.
High maintenance cost – Modifying and maintaining the OS kernel requires effort.
Performance variation – The benefits depend on the workload.
26
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
27
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
ii) Kernel Based VM(KVM):
iii) Para-Virtualization with Compiler Support
28
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 3: VMware ESX Server for Para-Virtualization
29
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
30
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtualization of CPU, Memory and I/O Devices
31
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
36
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 4: Hardware Support for Virtualization in Intel x86 Processor
37
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Hardware Assisted CPU Virtualization
38
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Eg 5: Intel Hardware Assisted CPU Virtualization
39
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Memory Virtualization
40
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Extended Page Table by Intel for Memory Virtualization
41
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
42
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
I/O Virtualization
43
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtualization in Multi-core Processors
44
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
45
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Database workloads run on one cluster of virtual cores.
Web server workloads run on another cluster.
Middleware workloads run on a third cluster.
Each workload operates in isolation to prevent conflicts and improve performance.
Faster data access with reduced delays.
Efficient resource allocation and minimal interference.
Supports virtualization techniques like content-based page sharing.
Improves server consolidation and multiprogramming performance.
46
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtual Clusters and Resource Management
47
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Physical versus Virtual Clusters
48
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
49
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
50
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
51
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
52
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
ii) Live VM Migration Steps and Performance Effects
53
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
a) Guest-based management – The manager runs inside a VM. Example: openMosix.
b) Host-based management – The manager runs on the physical machine and can restart VMs on another host. Example: VMware HA.
c) Independent cluster manager – A separate system manages both physical and virtual resources, but it’s more complex.
d) Integrated cluster management – A system that manages both physical and virtual resources efficiently.
54
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
iii) Migration of Memory, Files and Network Resources
55
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
56
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
a) Live Migration
Moves a VM from one machine to another without stopping applications.
Useful for system maintenance, workload balancing, and performance improvements.
Traditional migration: Pauses the VM, moves it, then restarts it.
57
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
First, copies all memory pages.
Then, only transfers modified pages in later rounds.
Reduces downtime but may slow down performance.
Network bandwidth usage is high, causing performance drops.
Adaptive rate limiting reduces network load but makes migration much slower.
A limit is set on memory copies because not all applications can reduce their data size effectively.
a) Checkpointing/Recovery and Trace/Replay (CR/TR-Motion):
Records system activities in small log files instead of copying full memory.
Faster migration with less downtime.
Works only if logs can be replayed faster than they are created.
58
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
b) Postcopy migration:
Transfers memory pages only once instead of multiple rounds.
Reduces total migration time but increases downtime, as the new machine must wait for missing data.
c) Memory compression for faster migration:
Uses extra CPU power on modern computers to compress memory pages before sending them.
Reduces data transfer size and speeds up migration.
Compression uses little memory and is very fast.
59
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 7: Live Migration of VMs b/w Two Xen-Enabled Hosts
60
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 7: Live Migration of VMs b/w Two Xen-Enabled Hosts
61
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
iv) Dynamic Deployment of Virtual Clusters
62
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
iv) Dynamic Deployment of Virtual Clusters
63
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 8: The Cluster-on-Demand (COD) Project at Duke University
64
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 8: The Cluster-on-Demand (COD) Project at Duke University
65
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 9: The VIOLIN Project at Purdue University
66
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 9: The VIOLIN Project at Purdue University
67
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtualization for Data-Center Automation
68
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Virtualization for Data-Center Automation
69
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
a) Better hardware utilization by combining multiple underused servers.
b) Faster resource deployment using cloned virtual machines (VMs).
c) Reduced costs in buying new servers, power, and maintenance.
d) Improved availability, as a VM crash doesn’t affect others.
70
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
ii) Virtual Storage Management
71
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 10: Parallax Providing Virtual Disks to Client VMs from a Large Common Shared Physical Disk
72
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 10: Parallax Providing Virtual Disks to Client VMs from a Large Common Shared Physical Disk
73
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
iii) Cloud OS for Virtualized Data Centers
74
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 11: Eucalyptus for Virtual Networking of Private Cloud
75
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 11: Eucalyptus for Virtual Networking of Private Cloud
a) Instance Manager – Manages VM execution, monitoring, and termination.
b) Group Manager – Schedules VM execution and manages networking.
c) Cloud Manager – Acts as the main entry point, gathers resource info, and makes scheduling decisions.
76
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 12: VMware vSphere 4 as a Commercial Cloud OS
77
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example 12: VMware vSphere 4 as a Commercial Cloud OS
78
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Full device emulation: The VMM creates a software version of real hardware. It is slow because everything is done in software.
Para-virtualization: Uses two drivers—one in the VM (frontend) and one in the VMM (backend)—to communicate more efficiently. This improves speed but increases CPU usage.
Direct I/O: The VM accesses the hardware directly, giving near-native performance but making resource management difficult.
79
3/17/2025
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology