SlideShare une entreprise Scribd logo
1  sur  30
Introduction to Virtualization
Hwanju Kim
1
Outline
• Goals
• Understanding the benefits of virtualization in IT
industry and how to virtualize HW resources
• Schedule
• Introduction to virtualization
• OS vs. VMM
• CPU virtualization and scheduling
• Memory virtualization and management
• I/O virtualization
• Live VM migration
• Introduction to Systemtap
2/30
How to Learn Virtualization?
• Conference proceedings
• SOSP
• Symposium on Operating Systems Principles
• OSDI
• Symposium on Operating Systems Design and Implementation
• ASPLOS
• International Conference on Architectural Support for Programming
Languages and Operating Systems
• USENIX ATC
• USENIX Annual Technical Conference
• EUROSYS
• European Conference on Computer Systems
• VEE
• International Conference on Virtual Execution Environments
• SOCC
• ACM Symposium on Cloud Computing
• Open source software
• Xen, KVM, VirtualBox
3/30
What is Virtualization?
• Multiple OSes on a single machine
• Giving an illusion that each OS is running on real HW
• Virtual Machine Monitor (VMM)
• Another layer of kernel to virtualize multiple OSes
• Also called “hypervisor”
• An OS as a supervisor is no more HW-dictator!
Hardware
Virtual Machine Monitor
Windows
App App
App
Linux
App App
App
Mac
App App
4/30
History – Born and Died (1/4)
• 1960s-1970s
• High cost of computing machines
• IBM VM/370: A VMM for IBM mainframe
• 1980s-1990s
• But, lost attentions since PC era (1980s)
• Cheap HW  No need to share hardware
• CPU did not support virtualization well
• High engineering cost and overhead
Powerful &
expensive
hardware
5/30
History - Reborn (2/4)
• The late 1990s
• Regain attention for “server consolidation”
• Toward cost-effective large-scale computing
• Stanford’s research project: Disco
• They founded VMware in 1998
Disco: Running Commodity Operating Systems on Scalable Multiprocessors [SOSP’97]
6/30
History - Renaissance (3/4)
• 1998-2002
• VMware
• “Full-virtualization”
• Running unmodified OS
• Starting with SW-based binary translation
• Success in industry and academia
• VMware‘s state-of-the-art techniques in SOSP and OSDI
• 2003
• Xen
• University of Cambridge’s project: Open source!!!
• “Xen and Art of Virtualization” [SOSP’03]
• “Para-virtualization”
• Modified OS for near-native performance: Linux on x86
• 2003-
• Virtualization research renaissance based on Xen
• 2007: Acquired by Citrix
7/30
History - Ubiquitous (4/4)
• 2005-2006
• HW-assisted virtualization
• x86 virtualization
• Intel VT-x & AMD-V
• Running unmodified OS with near-native performance
• Default functionality now
• 2006-now
• Cloud computing
• Infrastructure-as-a-Service (IaaS)
• Virtual desktop infrastructure (VDI)
• Mobile virtualization
• ARM virtualization technology (Cortex-A15)
8/30
Why Virtualization? (1/6)
• Efficient resource utilization
• Low resource utilization of each server machine
• Low total cost of ownership (TCO)
• Low cost of infrastructure and energy
VM
VM
VM
VMM
CPU
CPU
CPU
CPU
The Case for Energy-Proportional Computing [IEEE Computer’07]
Average CPU utilization of 5000+ Google’s servers
Mostly 0-50% utilization
9/30
Why Virtualization? (2/6)
• Flexible VM relocation
• “Live VM migration”
• Flexible VM relocation with near-zero downtime
• Flexible load balancing
• Relieving resource bottleneck
VM
VM
VM
CPU
CPU
CPU
CPU
10/30
Why Virtualization? (3/6)
• Flexible VM relocation
• “Live VM migration”
• Flexible VM relocation with near-zero downtime
• High availability
VM
SW or HW maintenance
(upgrade or fix)
11/30
Why Virtualization? (4/6)
• Strong isolation
• Strong isolation between co-located VMs
• Fault containment or isolation
• Safe from bugs and malicious attacks
VMM
VM
Hardware
VM
Safe
OS OS
An empirical study of operating systems errors [SOSP’01]
Hardware
App
OS
App
VMM is much smaller than OS
 Low trusted computing base (TCB)
OSes, especially drivers, are error-prone
12/30
Why Virtualization? (5/6)
• Multiple OSes on a single device
• OS dependency of legacy SW
• Linux + Windows, Android + iOS
• Different requirements of SW
• Virtualization for embedded or mobile systems
• RTOS + GPOS
• Building secure systems
• Security-enhanced OS + GPOS
Allowing for GPOS and RTOS:
The unique virtualization
needs of mission-critical
embedded systems,
TenASysTerra: A Virtual Machine-Based Platform for Trusted Computing [SOSP’03]
Trusted VMM
13/30
Why Virtualization? (6/6)
• Other benefits
• Strong security monitoring
• Security monitoring outside OSes
• Ease of deployment
• Virtual appliance
• A bundle of OS and applications
• Flexible testing and debugging
• Building distributed environments on a single machine
• Kernel development and debugging
• VM-based recording and replaying
14/30
Use Cases
• Cloud computing
• Virtual desktop infrastructure
• Mobile virtualization
15/30
Virtualization & Cloud Computing
• Virtualized data centers
Virtualization 1.x: Near term
Virtualization 2.0: Emerging
Virtualization 3.0: Future Virtualization 3.0
The fully virtualized datacenter
for cloud services
2013+
Virtualization 1.x
Virtualization 2.0
2009
출처: IDC 2010 report
16/30
Virtualization & Cloud Computing
• VM-based resource pool for various demands
• Infrastructure-as-a-Service (IaaS)
17/30
Virtualization & Cloud Computing
• Many providers use commercial & open-source
VMMs
Virtualization Solutions Cloud Providers
18/30
Virtual Desktop Infrastructure (VDI)
• Desktop provisioning
Dedicated workstations
VM VM
VM
VM
VM
- Energy wastage by idle desktops
- Resource underutilization
- High management cost
- High maintenance cost
- Low level of security
+ Energy savings by consolidation
+ High resource utilization
+ Low management cost
(flexible HW/SW provisioning)
+ Low maintenance cost
(dynamic HW/SW upgrade)
+ High level of security
(centralized data containment)
VM-based shared environments
19/30
Virtual Desktop Infrastructure (VDI)
• VDI is also hot in Korea
20/30
Virtual Desktop Infrastructure (VDI)
• VMware VDI
• Pioneer of VDI
21/30
Mobile Virtualization
• Trends of consumer electronics
• Digital convergence
• What do consumer electronics(CE) devices want to achieve?
Reliability
Trustworthiness for primary functions
Extensibility
Flexibility for adding features as needed
Business
Phone
Personal
Phone
22/30
Mobile Virtualization
• BYOD: Bring Your Own Device
• Consolidating business and personal
computing environments on a single device
Business
VM
Personal
VM
Hypervisor
Managed
domain
23/30
Mobile Virtualization
• Academia
• Columbia university’s projects
• Cells [SOSP’11]
• KVM for ARM [OLS’10]
• Cortex-A8, A9
• Now running on A15
Cells: A Virtual Mobile Smartphone Architecture [SOSP’11]
Linaro Ubuntu 11.04 for ARM
running in VM by KVM/ARM
(Cortex-A15 in Fast Model 6.1)
OS-level virtualization
24/30
Mobile Virtualization
• Embracing all apps in a unified market
• iOS + Android + Windows
• Technically possible, but not yet by industry
• Currently, not much attractive.
• Multiple Androids
• Android + RTOS
• Issues
• Performance, performance, performance…
• Graphics acceleration  Challenging
• CPU, memory limitation
• High-end smartphones can resolve this limitation
25/30
Basic Terminologies
• Types of VMMs
• Type-1 vs. Type-2
• Virtualization methods
• Full-virtualization vs. Para-virtualization
26/30
Type-1 vs. Type-2
• Depending on what sits right on HW
Guest VM
Guest OS
Host OS
VMM
HW
Guest VM
Guest OS
VMM
Guest VM
Guest OS
HW
Guest VM
Guest OS
Type-1: VMM on HW Type-2: Host OS on HW
• Xen, VMware ESX server, Hyper-V
• Mostly for server, but not limited
• VMM by default
• OS-independent VMM
• KVM, VMware Workstation, VirtualBox
• Mostly for client devices, but not limited
• VMM on demand
• OS-dependent VMM
27/30
Xen: Type-1 VMM
• Type-1 VMM
• Para-virtualization and full-virtualization
• Domain0
• Privileged VM for guest VM (domainU) management
• Handling I/O operations requested from domainUs
• Including native device drivers to directly access HW
DomainU
(Guest VM)
Guest OS
Xen VMM
DomainU
Guest VM
Guest OS
Domain0
(Privileged VM)
Linux
28/30
KVM: Type-2 VMM
• Type-2 VMM for Linux as a host OS
• Based on HW-assisted virtualization
• Linux kernel mainline (2.6.20~)
Guest VM
Guest OS
Host OS
(Linux)
KVM VMM (kernel module)
QEMU
vCPU vCPU
User space
Kernel space
Linux Process
Linux Thread Linux Thread
Linux
Thread
I/O
emulation
29/30
Full- vs. Para-virtualization
• Depending on whether OS source is modified
• Full-virtualization = No OS source modification
• SW-based full virtualization
• Emulation
• HW-based full virtualization
• HW-assisted virtualization
• Para-virtualization = OS source modification
• Virtualization-aware OS
• Bridging semantic gap between VMM and OS
• Mostly for performance
Today’s virtualization solutions adopt both approaches
for optimized performance
30/30

Contenu connexe

Tendances

Tendances (20)

Server virtualization by VMWare
Server virtualization by VMWareServer virtualization by VMWare
Server virtualization by VMWare
 
Virtual Machines
Virtual MachinesVirtual Machines
Virtual Machines
 
What is Virtualization
What is VirtualizationWhat is Virtualization
What is Virtualization
 
What is Virtualization and its types & Techniques.What is hypervisor and its ...
What is Virtualization and its types & Techniques.What is hypervisor and its ...What is Virtualization and its types & Techniques.What is hypervisor and its ...
What is Virtualization and its types & Techniques.What is hypervisor and its ...
 
Virtualization 101
Virtualization 101Virtualization 101
Virtualization 101
 
Virtualization and cloud computing
Virtualization and cloud computingVirtualization and cloud computing
Virtualization and cloud computing
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
Vitualisation
VitualisationVitualisation
Vitualisation
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Virtualization basics
Virtualization basics Virtualization basics
Virtualization basics
 
VMware vSphere 6.0 - Troubleshooting Training - Day 1
VMware vSphere 6.0 - Troubleshooting Training - Day 1VMware vSphere 6.0 - Troubleshooting Training - Day 1
VMware vSphere 6.0 - Troubleshooting Training - Day 1
 
cloud virtualization technology
 cloud virtualization technology  cloud virtualization technology
cloud virtualization technology
 
Virtualization in cloud computing ppt
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing ppt
 
Server virtualization
Server virtualizationServer virtualization
Server virtualization
 
VMWARE ESX
VMWARE ESXVMWARE ESX
VMWARE ESX
 
Virtualization in cloud
Virtualization in cloudVirtualization in cloud
Virtualization in cloud
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Virtualization vs. Cloud Computing: What's the Difference?
Virtualization vs. Cloud Computing: What's the Difference?Virtualization vs. Cloud Computing: What's the Difference?
Virtualization vs. Cloud Computing: What's the Difference?
 
Virtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMwareVirtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMware
 
Virtualization & cloud computing
Virtualization & cloud computingVirtualization & cloud computing
Virtualization & cloud computing
 

En vedette

Evaluation of Virtual Clusters Performance on a Cloud Computing Infrastructure
Evaluation of Virtual Clusters Performance on a Cloud Computing InfrastructureEvaluation of Virtual Clusters Performance on a Cloud Computing Infrastructure
Evaluation of Virtual Clusters Performance on a Cloud Computing Infrastructure
EuroCloud
 

En vedette (6)

Network virtualization
Network virtualizationNetwork virtualization
Network virtualization
 
Evaluation of Virtual Clusters Performance on a Cloud Computing Infrastructure
Evaluation of Virtual Clusters Performance on a Cloud Computing InfrastructureEvaluation of Virtual Clusters Performance on a Cloud Computing Infrastructure
Evaluation of Virtual Clusters Performance on a Cloud Computing Infrastructure
 
An Implementation of Virtual Cluster on a Cloud
An Implementation of Virtual Cluster on a CloudAn Implementation of Virtual Cluster on a Cloud
An Implementation of Virtual Cluster on a Cloud
 
Cs6703 grid and cloud computing unit 3
Cs6703 grid and cloud computing unit 3Cs6703 grid and cloud computing unit 3
Cs6703 grid and cloud computing unit 3
 
Cloud computing using virtualization (Virtual Data Center)
Cloud computing using virtualization (Virtual Data Center)Cloud computing using virtualization (Virtual Data Center)
Cloud computing using virtualization (Virtual Data Center)
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud Computing
 

Similaire à 1.Introduction to virtualization

Client Side Hypervisors - Victoria Russell
Client Side Hypervisors - Victoria RussellClient Side Hypervisors - Victoria Russell
Client Side Hypervisors - Victoria Russell
russvd1
 
Cloud Computing vs Virtualization From Desktop to Server
Cloud Computing vs Virtualization From Desktop to ServerCloud Computing vs Virtualization From Desktop to Server
Cloud Computing vs Virtualization From Desktop to Server
Fadly Rizal Ahmad Fadzil
 
Server Virtualization
Server VirtualizationServer Virtualization
Server Virtualization
webhostingguy
 
Overview of System Virtualization
Overview of System VirtualizationOverview of System Virtualization
Overview of System Virtualization
Andre Odendaal
 

Similaire à 1.Introduction to virtualization (20)

Virtualizacao de Servidores - Windows
Virtualizacao de Servidores - WindowsVirtualizacao de Servidores - Windows
Virtualizacao de Servidores - Windows
 
Client Side Hypervisors - Victoria Russell
Client Side Hypervisors - Victoria RussellClient Side Hypervisors - Victoria Russell
Client Side Hypervisors - Victoria Russell
 
101 Virtualization and Private Cloud
101 Virtualization and Private Cloud101 Virtualization and Private Cloud
101 Virtualization and Private Cloud
 
Virtualization, the cloud enabler
Virtualization, the cloud enablerVirtualization, the cloud enabler
Virtualization, the cloud enabler
 
Cloud Computing vs Virtualization From Desktop to Server
Cloud Computing vs Virtualization From Desktop to ServerCloud Computing vs Virtualization From Desktop to Server
Cloud Computing vs Virtualization From Desktop to Server
 
Esx short presentation
Esx short presentationEsx short presentation
Esx short presentation
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
VIRTUALIZATION
VIRTUALIZATIONVIRTUALIZATION
VIRTUALIZATION
 
Virtualization-the Cloud Enabler by INSPIRE-groups
Virtualization-the Cloud Enabler by INSPIRE-groupsVirtualization-the Cloud Enabler by INSPIRE-groups
Virtualization-the Cloud Enabler by INSPIRE-groups
 
Cloud Computing Virtualization and containers
Cloud Computing Virtualization and containersCloud Computing Virtualization and containers
Cloud Computing Virtualization and containers
 
What's new in System Center 2012 R2: Virtual Machine Manager
What's new in System Center 2012 R2: Virtual Machine ManagerWhat's new in System Center 2012 R2: Virtual Machine Manager
What's new in System Center 2012 R2: Virtual Machine Manager
 
Cloud-computing.ppt
Cloud-computing.pptCloud-computing.ppt
Cloud-computing.ppt
 
Server Virtualization
Server VirtualizationServer Virtualization
Server Virtualization
 
Overview of System Virtualization
Overview of System VirtualizationOverview of System Virtualization
Overview of System Virtualization
 
5. IO virtualization
5. IO virtualization5. IO virtualization
5. IO virtualization
 
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVMHypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
 
Virtualization using VMWare Workstation
Virtualization using VMWare WorkstationVirtualization using VMWare Workstation
Virtualization using VMWare Workstation
 
2014-09-15 cloud platform master class
2014-09-15 cloud platform master class2014-09-15 cloud platform master class
2014-09-15 cloud platform master class
 
virtual machine.ppt
virtual machine.pptvirtual machine.ppt
virtual machine.ppt
 

Plus de Hwanju Kim

Plus de Hwanju Kim (8)

CPU Scheduling for Virtual Desktop Infrastructure
CPU Scheduling for Virtual Desktop InfrastructureCPU Scheduling for Virtual Desktop Infrastructure
CPU Scheduling for Virtual Desktop Infrastructure
 
6. Live VM migration
6. Live VM migration6. Live VM migration
6. Live VM migration
 
4. Memory virtualization and management
4. Memory virtualization and management4. Memory virtualization and management
4. Memory virtualization and management
 
3. CPU virtualization and scheduling
3. CPU virtualization and scheduling3. CPU virtualization and scheduling
3. CPU virtualization and scheduling
 
2. OS vs. VMM
2. OS vs. VMM2. OS vs. VMM
2. OS vs. VMM
 
Demand-Based Coordinated Scheduling for SMP VMs
Demand-Based Coordinated Scheduling for SMP VMsDemand-Based Coordinated Scheduling for SMP VMs
Demand-Based Coordinated Scheduling for SMP VMs
 
Scheduler Support for Video-oriented Multimedia on Client-side Virtualization
Scheduler Support for Video-oriented Multimedia on Client-side VirtualizationScheduler Support for Video-oriented Multimedia on Client-side Virtualization
Scheduler Support for Video-oriented Multimedia on Client-side Virtualization
 
Task-aware Virtual Machine Scheduling for I/O Performance
Task-aware Virtual Machine Scheduling for I/O PerformanceTask-aware Virtual Machine Scheduling for I/O Performance
Task-aware Virtual Machine Scheduling for I/O Performance
 

Dernier

+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Dernier (20)

kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

1.Introduction to virtualization

  • 2. Outline • Goals • Understanding the benefits of virtualization in IT industry and how to virtualize HW resources • Schedule • Introduction to virtualization • OS vs. VMM • CPU virtualization and scheduling • Memory virtualization and management • I/O virtualization • Live VM migration • Introduction to Systemtap 2/30
  • 3. How to Learn Virtualization? • Conference proceedings • SOSP • Symposium on Operating Systems Principles • OSDI • Symposium on Operating Systems Design and Implementation • ASPLOS • International Conference on Architectural Support for Programming Languages and Operating Systems • USENIX ATC • USENIX Annual Technical Conference • EUROSYS • European Conference on Computer Systems • VEE • International Conference on Virtual Execution Environments • SOCC • ACM Symposium on Cloud Computing • Open source software • Xen, KVM, VirtualBox 3/30
  • 4. What is Virtualization? • Multiple OSes on a single machine • Giving an illusion that each OS is running on real HW • Virtual Machine Monitor (VMM) • Another layer of kernel to virtualize multiple OSes • Also called “hypervisor” • An OS as a supervisor is no more HW-dictator! Hardware Virtual Machine Monitor Windows App App App Linux App App App Mac App App 4/30
  • 5. History – Born and Died (1/4) • 1960s-1970s • High cost of computing machines • IBM VM/370: A VMM for IBM mainframe • 1980s-1990s • But, lost attentions since PC era (1980s) • Cheap HW  No need to share hardware • CPU did not support virtualization well • High engineering cost and overhead Powerful & expensive hardware 5/30
  • 6. History - Reborn (2/4) • The late 1990s • Regain attention for “server consolidation” • Toward cost-effective large-scale computing • Stanford’s research project: Disco • They founded VMware in 1998 Disco: Running Commodity Operating Systems on Scalable Multiprocessors [SOSP’97] 6/30
  • 7. History - Renaissance (3/4) • 1998-2002 • VMware • “Full-virtualization” • Running unmodified OS • Starting with SW-based binary translation • Success in industry and academia • VMware‘s state-of-the-art techniques in SOSP and OSDI • 2003 • Xen • University of Cambridge’s project: Open source!!! • “Xen and Art of Virtualization” [SOSP’03] • “Para-virtualization” • Modified OS for near-native performance: Linux on x86 • 2003- • Virtualization research renaissance based on Xen • 2007: Acquired by Citrix 7/30
  • 8. History - Ubiquitous (4/4) • 2005-2006 • HW-assisted virtualization • x86 virtualization • Intel VT-x & AMD-V • Running unmodified OS with near-native performance • Default functionality now • 2006-now • Cloud computing • Infrastructure-as-a-Service (IaaS) • Virtual desktop infrastructure (VDI) • Mobile virtualization • ARM virtualization technology (Cortex-A15) 8/30
  • 9. Why Virtualization? (1/6) • Efficient resource utilization • Low resource utilization of each server machine • Low total cost of ownership (TCO) • Low cost of infrastructure and energy VM VM VM VMM CPU CPU CPU CPU The Case for Energy-Proportional Computing [IEEE Computer’07] Average CPU utilization of 5000+ Google’s servers Mostly 0-50% utilization 9/30
  • 10. Why Virtualization? (2/6) • Flexible VM relocation • “Live VM migration” • Flexible VM relocation with near-zero downtime • Flexible load balancing • Relieving resource bottleneck VM VM VM CPU CPU CPU CPU 10/30
  • 11. Why Virtualization? (3/6) • Flexible VM relocation • “Live VM migration” • Flexible VM relocation with near-zero downtime • High availability VM SW or HW maintenance (upgrade or fix) 11/30
  • 12. Why Virtualization? (4/6) • Strong isolation • Strong isolation between co-located VMs • Fault containment or isolation • Safe from bugs and malicious attacks VMM VM Hardware VM Safe OS OS An empirical study of operating systems errors [SOSP’01] Hardware App OS App VMM is much smaller than OS  Low trusted computing base (TCB) OSes, especially drivers, are error-prone 12/30
  • 13. Why Virtualization? (5/6) • Multiple OSes on a single device • OS dependency of legacy SW • Linux + Windows, Android + iOS • Different requirements of SW • Virtualization for embedded or mobile systems • RTOS + GPOS • Building secure systems • Security-enhanced OS + GPOS Allowing for GPOS and RTOS: The unique virtualization needs of mission-critical embedded systems, TenASysTerra: A Virtual Machine-Based Platform for Trusted Computing [SOSP’03] Trusted VMM 13/30
  • 14. Why Virtualization? (6/6) • Other benefits • Strong security monitoring • Security monitoring outside OSes • Ease of deployment • Virtual appliance • A bundle of OS and applications • Flexible testing and debugging • Building distributed environments on a single machine • Kernel development and debugging • VM-based recording and replaying 14/30
  • 15. Use Cases • Cloud computing • Virtual desktop infrastructure • Mobile virtualization 15/30
  • 16. Virtualization & Cloud Computing • Virtualized data centers Virtualization 1.x: Near term Virtualization 2.0: Emerging Virtualization 3.0: Future Virtualization 3.0 The fully virtualized datacenter for cloud services 2013+ Virtualization 1.x Virtualization 2.0 2009 출처: IDC 2010 report 16/30
  • 17. Virtualization & Cloud Computing • VM-based resource pool for various demands • Infrastructure-as-a-Service (IaaS) 17/30
  • 18. Virtualization & Cloud Computing • Many providers use commercial & open-source VMMs Virtualization Solutions Cloud Providers 18/30
  • 19. Virtual Desktop Infrastructure (VDI) • Desktop provisioning Dedicated workstations VM VM VM VM VM - Energy wastage by idle desktops - Resource underutilization - High management cost - High maintenance cost - Low level of security + Energy savings by consolidation + High resource utilization + Low management cost (flexible HW/SW provisioning) + Low maintenance cost (dynamic HW/SW upgrade) + High level of security (centralized data containment) VM-based shared environments 19/30
  • 20. Virtual Desktop Infrastructure (VDI) • VDI is also hot in Korea 20/30
  • 21. Virtual Desktop Infrastructure (VDI) • VMware VDI • Pioneer of VDI 21/30
  • 22. Mobile Virtualization • Trends of consumer electronics • Digital convergence • What do consumer electronics(CE) devices want to achieve? Reliability Trustworthiness for primary functions Extensibility Flexibility for adding features as needed Business Phone Personal Phone 22/30
  • 23. Mobile Virtualization • BYOD: Bring Your Own Device • Consolidating business and personal computing environments on a single device Business VM Personal VM Hypervisor Managed domain 23/30
  • 24. Mobile Virtualization • Academia • Columbia university’s projects • Cells [SOSP’11] • KVM for ARM [OLS’10] • Cortex-A8, A9 • Now running on A15 Cells: A Virtual Mobile Smartphone Architecture [SOSP’11] Linaro Ubuntu 11.04 for ARM running in VM by KVM/ARM (Cortex-A15 in Fast Model 6.1) OS-level virtualization 24/30
  • 25. Mobile Virtualization • Embracing all apps in a unified market • iOS + Android + Windows • Technically possible, but not yet by industry • Currently, not much attractive. • Multiple Androids • Android + RTOS • Issues • Performance, performance, performance… • Graphics acceleration  Challenging • CPU, memory limitation • High-end smartphones can resolve this limitation 25/30
  • 26. Basic Terminologies • Types of VMMs • Type-1 vs. Type-2 • Virtualization methods • Full-virtualization vs. Para-virtualization 26/30
  • 27. Type-1 vs. Type-2 • Depending on what sits right on HW Guest VM Guest OS Host OS VMM HW Guest VM Guest OS VMM Guest VM Guest OS HW Guest VM Guest OS Type-1: VMM on HW Type-2: Host OS on HW • Xen, VMware ESX server, Hyper-V • Mostly for server, but not limited • VMM by default • OS-independent VMM • KVM, VMware Workstation, VirtualBox • Mostly for client devices, but not limited • VMM on demand • OS-dependent VMM 27/30
  • 28. Xen: Type-1 VMM • Type-1 VMM • Para-virtualization and full-virtualization • Domain0 • Privileged VM for guest VM (domainU) management • Handling I/O operations requested from domainUs • Including native device drivers to directly access HW DomainU (Guest VM) Guest OS Xen VMM DomainU Guest VM Guest OS Domain0 (Privileged VM) Linux 28/30
  • 29. KVM: Type-2 VMM • Type-2 VMM for Linux as a host OS • Based on HW-assisted virtualization • Linux kernel mainline (2.6.20~) Guest VM Guest OS Host OS (Linux) KVM VMM (kernel module) QEMU vCPU vCPU User space Kernel space Linux Process Linux Thread Linux Thread Linux Thread I/O emulation 29/30
  • 30. Full- vs. Para-virtualization • Depending on whether OS source is modified • Full-virtualization = No OS source modification • SW-based full virtualization • Emulation • HW-based full virtualization • HW-assisted virtualization • Para-virtualization = OS source modification • Virtualization-aware OS • Bridging semantic gap between VMM and OS • Mostly for performance Today’s virtualization solutions adopt both approaches for optimized performance 30/30