SlideShare a Scribd company logo
L2- Virtualization Technology
Objectives
Overview and various terminologies.
Types of Virtualization.
How virtualization is achieved.
Virtualization
Virtualization refers to the act of creating a virtual (rather than actual) version
of something, including virtual computer hardware platforms, operating
systems, storage devices, and computer network resources.
It offers a layer of abstraction between the computing resources and the
applications running over it.
Few Relevant Terms
Virtual Machine: its is a closely detached software device that could run its own
operating system and application as if it is running on a physical machine. It
contains its own virtual RAM,CPU,Disk,Network etc.
Guest operating system: Operating system running in a VM environment.
Hypervisor: It is a thin layer of software that provides virtual partitioning abilities
that run directly on hardware, but underneath higher-level virtualization services.
Virtual machine monitor: this can be a part of hypervisor or can be a separate
software entity, that runs between the host operating system and hypervisor.
Hosted Virtualization: A method where virtualization and partitioning services run
on top of a typical OS.
Before Virtualization(x86)
There is one OS image pre machine
Software and hardware are tightly bound.
Multiple application that run on the same
machine usually creates complexity
Resources are not used optimally
Infrastructure is neither flexible nor
economically effective
After Virtualization(x86)
Provisioning of VMs can be done on
any system
OS and application work as a single
unit
OS and applications are independent
of hardware
Traditional Scenario- 2 server & its utilization
Moving from traditional scenario → virtualized
Utilization levels in Virtualized server
Lets use legos
Typical Physical Infrastructure for Enterprise
Virtualized Infrastructure for Enterprise
Virtualization Types
CPU Virtualization
Memory Virtualization
Device & I/O Virtualization
OS level Virtualization
Network Virtualization
Server Virtualization
Client/Desktop Virtualization
Application Virtualization
x86 Hardware Virtualization
The x86 architecture offers four levels of privilege known as Ring 0, 1, 2 and 3 to
operating systems and applications to manage access to the computer hardware.
While user level applications typically run in Ring 3, the operating system needs to
have direct access to the memory and hardware and must execute its privileged
instructions in Ring 0.
x86 privilege level architecture without virtualization
Technique 1: Full Virtualization using Binary
Translation
This approach relies on binary translation to trap (into the VMM) and to virtualize
certain sensitive and non-virtualizable instructions with new sequences of instructions
that have the intended effect on the virtual hardware. Meanwhile, user level code is
directly executed on the processor for high performance virtualization.
Binary translation approach to x86 virtualization
Full Virtualization using Binary Translation
This combination of binary translation and direct execution provides Full
Virtualization as the guest OS is completely decoupled from the underlying
hardware by the virtualization layer.
The guest OS is not aware it is being virtualized and requires no
modification.
The hypervisor translates all operating system instructions at run-time on
the fly and caches the results for future use, while user level instructions run
unmodified at native speed.
VMware’s virtualization products such as VMWare ESXi and Microsoft
Virtual Server are examples of full virtualization.
Full Virtualization using Binary Translation
The performance of full virtualization may not be ideal because it involves
binary translation at run-time which is time consuming and can incur a large
performance overhead.
The full virtualization of I/O – intensive applications can be a challenge.
Binary translation employs a code cache to store translated hot instructions
to improve performance, but it increases the cost of memory usage.
The performance of full virtualization on the x86 architecture is typically 80%
to 97% that of the host machine.
Technique 2: OS Assisted Virtualization
or Paravirtualization (PV)
Paravirtualization refers to communication between the guest OS and the
hypervisor to improve performance and efficiency.
Paravirtualization involves modifying the OS kernel to replace
nonvirtualizable instructions with hypercalls
the virtualization layer hypervisor.
that communicate directly with
The hypervisor also provides hypercall
interfaces for other critical kernel
operations such as memory
management, interrupt
handling and time keeping.
Paravirtualization approach to x86 Virtualization
Technique 3: Hardware Assisted Virtualization
(HVM)Intel’s Virtualization Technology (VT-x) (e.g. Intel Xeon) and AMD’s AMD-V
both target privileged instructions with a new CPU execution mode feature
that allows the VMM to run in a new root mode below ring 0, also referred to
as Ring 0P (for privileged root mode)
(for de-privileged non-root mode).
while the Guest OS runs in Ring 0D
Privileged and sensitive calls are
set to automatically trap to the
hypervisor and handled by
hardware, removing the need
for either binary translation or
para-virtualization.
Vmware only takes advantage
of these first generation
hardware features in limited
Summary Comparison of the Current
State of x86 Virtualization Techniques
Full Virtualization vs. Paravirtualization
Paravirtualization is different from full virtualization, where the unmodified
OS does not know it is virtualized and sensitive OS calls are trapped using
binary translation at run time. In paravirtualization, these instructions are
handled at compile time when the non-virtualizable OS instructions are
replaced with hypercalls.
The advantage of paravirtualization is lower virtualization overhead, but the
performance advantage of paravirtualization over full virtualization can vary
greatly depending on the workload. Most user space workloads gain very
little, and near native performance is not achieved for all workloads.
As paravirtualization cannot support unmodified operating systems (e.g.
Windows 2000/XP), its compatibility and portability is poor.
Full Virtualization vs. Paravirtualization
Paravirtualization can also introduce significant support and maintainability
issues in production environments as it requires deep OS kernel
modifications. The invasive kernel modifications tightly couple the guest OS
to the hypervisor with data structure dependencies, preventing the modified
guest OS from running on other hypervisors or native hardware.
The open source Xen project is an example of paravirtualization that
virtualizes the processor and memory using a modified Linux kernel and
virtualizes the I/O using custom guest OS device drivers.
Memory Virtualization
This involves sharing the physical system memory and dynamically
allocating it to virtual machines. VM memory virtualization is very similar to
the virtual memory support provided by modern operating systems.
The operating system keeps mappings of virtual page numbers to physical
page numbers stored in page tables. All modern x86 CPUs include a
memory management unit (MMU) and a translation lookaside buffer (TLB)
to optimize virtual memory performance.
To run multiple virtual machines on a single system, another level of
memory virtualization is required. In other words, one has to virtualize the
MMU to support the guest OS.
Memory Virtualization
The guest OS continues to control the mapping of virtual addresses to the
guest memory physical addresses, but the guest OS cannot have direct
access to the actual machine memory.
The VMM is responsible for mapping guest physical memory to the actual
machine memory, and it uses shadow page tables to accelerate the
mappings.
The VMM uses TLB hardware to map the virtual memory directly to the
machine memory to avoid the two levels of translation on every access.
I/O Virtualization
I/O Virtualization involves managing the routing of I/O requests between
virtual devices and the shared physical hardware.
The hypervisor virtualizes the physical hardware and presents each virtual
machine with a standardized set of virtual devices.
These virtual devices effectively emulate well-known hardware (with device
drivers) and translate the virtual machine requests to the system hardware.
This standardization on consistent device drivers also helps with virtual
machine standardization and portability across platforms as all virtual
machines are configured to run on the same virtual hardware regardless of
the actual physical hardware in the system.
I/O Virtualization in Xen: Indirect
driver model
Xen uses an indirect driver design that routes virtual machine I/O through
device drivers in the Windows or Linux management operating systems.
Xen uses an indirect split driver model consisting of a front-end driver
running in Domain U (user VMs) and the backend driver running in Domain
0. These two drivers interact with each other via a block of shared memory.
The front-end driver manages the I/O requests of the guest OS and the
backend driver is responsible for managing the real I/O devices and
multiplexing the I/O data of different VMs. These generic (standard)
backend drivers installed in Linux or Windows OS can be overtaxed by the
activity of multiple virtual machines and
are not optimized for multiple VM workloads.
There is also CPU overhead associated
with this approach because I/O is proxied
via Domain 0.
I/O Virtualization in VMWare ESXi:
Direct driver model
ESXi uses a direct driver model that locates the device drivers that link
virtual machines to physical devices directly in the ESXi hypervisor.
With the drivers in the hypervisor, VMware ESXi uses optimized and
hardened device drivers and provides special treatment, in the form of CPU
scheduling and memory resources, that they need to process I/O loads from
multiple virtual machines.
Network Virtualization
Types of Hypervisors
Virtualized Environment
Virtualization Solutions by Entreprise
VMware ESX and ESXi
Citrix Xen Server
Hyper-V
Oracle Virtual Box
KVM
Virtual PC
Queries?

More Related Content

What's hot

Automated paravitualization of device drivers in xen
Automated paravitualization of device drivers in xenAutomated paravitualization of device drivers in xen
Automated paravitualization of device drivers in xenMPNIKHIL
 
Xen Euro Par07
Xen Euro Par07Xen Euro Par07
Xen Euro Par07congvc
 
Virtualization ppt1
Virtualization ppt1Virtualization ppt1
Virtualization ppt1
abdulrubbinmohsin
 
Virtual Pc Seminar
Virtual Pc SeminarVirtual Pc Seminar
Virtual Pc Seminarguest5b5549
 
Virtualization Technology Overview
Virtualization Technology OverviewVirtualization Technology Overview
Virtualization Technology Overview
OpenCity Community
 
Intro to virtualization
Intro to virtualizationIntro to virtualization
Intro to virtualization
Kalpna Saharan
 
Virtualization Questions
Virtualization QuestionsVirtualization Questions
Virtualization Questions
Trupti Jethva
 
Virtual Machine
Virtual MachineVirtual Machine
Virtual Machine
Mehul Boghra
 
SYSAD323 Virtualization Basics
SYSAD323 Virtualization BasicsSYSAD323 Virtualization Basics
SYSAD323 Virtualization BasicsDon Bosco BSIT
 
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
vwchu
 
Hypervisors
HypervisorsHypervisors
Hypervisors
Inzemamul Haque
 
IT109 Microsoft Windows 7 Operating Systems Unit 02
IT109 Microsoft Windows 7 Operating Systems Unit 02IT109 Microsoft Windows 7 Operating Systems Unit 02
IT109 Microsoft Windows 7 Operating Systems Unit 02blusmurfydot1
 
Virtualization
VirtualizationVirtualization
Virtualization
raulverma
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answers
vivaankumar
 
Hypervisor seminar
Hypervisor seminarHypervisor seminar
Hypervisor seminar용환 노
 
Virtualization using VMWare Workstation
Virtualization using VMWare WorkstationVirtualization using VMWare Workstation
Virtualization using VMWare Workstation
Hitesh Gupta
 
Hypervisor comparison 201212
Hypervisor comparison 201212Hypervisor comparison 201212
Hypervisor comparison 201212Chang kil Lee
 

What's hot (20)

Automated paravitualization of device drivers in xen
Automated paravitualization of device drivers in xenAutomated paravitualization of device drivers in xen
Automated paravitualization of device drivers in xen
 
Xen Euro Par07
Xen Euro Par07Xen Euro Par07
Xen Euro Par07
 
Virtualization ppt1
Virtualization ppt1Virtualization ppt1
Virtualization ppt1
 
Virtual Pc Seminar
Virtual Pc SeminarVirtual Pc Seminar
Virtual Pc Seminar
 
TenAsys.Fall07
TenAsys.Fall07TenAsys.Fall07
TenAsys.Fall07
 
Virtualization Technology Overview
Virtualization Technology OverviewVirtualization Technology Overview
Virtualization Technology Overview
 
Intro to virtualization
Intro to virtualizationIntro to virtualization
Intro to virtualization
 
Virtualization Questions
Virtualization QuestionsVirtualization Questions
Virtualization Questions
 
Virtual Machine
Virtual MachineVirtual Machine
Virtual Machine
 
SYSAD323 Virtualization Basics
SYSAD323 Virtualization BasicsSYSAD323 Virtualization Basics
SYSAD323 Virtualization Basics
 
2011 10-19
2011 10-192011 10-19
2011 10-19
 
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
 
Hypervisors
HypervisorsHypervisors
Hypervisors
 
IT109 Microsoft Windows 7 Operating Systems Unit 02
IT109 Microsoft Windows 7 Operating Systems Unit 02IT109 Microsoft Windows 7 Operating Systems Unit 02
IT109 Microsoft Windows 7 Operating Systems Unit 02
 
Virtualization
VirtualizationVirtualization
Virtualization
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answers
 
Hypervisor seminar
Hypervisor seminarHypervisor seminar
Hypervisor seminar
 
incs775_lect6.ppt
incs775_lect6.pptincs775_lect6.ppt
incs775_lect6.ppt
 
Virtualization using VMWare Workstation
Virtualization using VMWare WorkstationVirtualization using VMWare Workstation
Virtualization using VMWare Workstation
 
Hypervisor comparison 201212
Hypervisor comparison 201212Hypervisor comparison 201212
Hypervisor comparison 201212
 

Similar to A510840101 24982 23_2020_lecture_2

Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
ImXaib
 
Unit II.ppt
Unit II.pptUnit II.ppt
Unit II.ppt
HARISHK762704
 
Virtualization
VirtualizationVirtualization
Virtualization
vishnurk
 
VIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxVIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docx
kumari36
 
CloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdfCloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdf
khan593595
 
CloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdfCloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdf
khan593595
 
Live VM Migration
Live VM MigrationLive VM Migration
Live VM Migration
Shivam Singh
 
Cloud Computing Virtualization and containers
Cloud Computing Virtualization and containersCloud Computing Virtualization and containers
Cloud Computing Virtualization and containers
Selvaraj Kesavan
 
Vcp6.7 episode 1
Vcp6.7 episode 1Vcp6.7 episode 1
Vcp6.7 episode 1
sajjad mirsane
 
APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...
APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...
APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...
Neha417639
 
Virtualization technology and an application of building vm ware
Virtualization technology and an application of building vm wareVirtualization technology and an application of building vm ware
Virtualization technology and an application of building vm ware
Yeditepe University
 
Virtualization: Force driving cloud computing
Virtualization: Force driving cloud computingVirtualization: Force driving cloud computing
Virtualization: Force driving cloud computing
Mayank Aggarwal
 
Chapter 3.4.pptx
Chapter 3.4.pptxChapter 3.4.pptx
Chapter 3.4.pptx
kalavathisugan
 
Unit 3 Virtualization.pdf
Unit 3 Virtualization.pdfUnit 3 Virtualization.pdf
Unit 3 Virtualization.pdf
PrachiKurhade3
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
IGZ Software house
 
virtual-machine-150316004018-conversion-gate01.pdf
virtual-machine-150316004018-conversion-gate01.pdfvirtual-machine-150316004018-conversion-gate01.pdf
virtual-machine-150316004018-conversion-gate01.pdf
KowsalyaJayakumar2
 
virtualization and hypervisors
virtualization and hypervisorsvirtualization and hypervisors
virtualization and hypervisorsGaurav Suri
 
virtualization.pptx
virtualization.pptxvirtualization.pptx
virtualization.pptx
NeenaReji1
 

Similar to A510840101 24982 23_2020_lecture_2 (20)

Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
 
Unit II.ppt
Unit II.pptUnit II.ppt
Unit II.ppt
 
Virtualization
VirtualizationVirtualization
Virtualization
 
VIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docxVIRTUALIZATION STRUCTURES TOOLS.docx
VIRTUALIZATION STRUCTURES TOOLS.docx
 
CloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdfCloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdf
 
CloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdfCloudComputing_UNIT 2.pdf
CloudComputing_UNIT 2.pdf
 
Live VM Migration
Live VM MigrationLive VM Migration
Live VM Migration
 
Cloud Computing Virtualization and containers
Cloud Computing Virtualization and containersCloud Computing Virtualization and containers
Cloud Computing Virtualization and containers
 
Vcp6.7 episode 1
Vcp6.7 episode 1Vcp6.7 episode 1
Vcp6.7 episode 1
 
Virtualization
VirtualizationVirtualization
Virtualization
 
APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...
APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...
APznzaamT18LaGRvfDd3vc6XGHHoq2hlFqHYsO9vYeEQXTa-sAm9oMvLFaeBQkqdEEa1z4UJVAboW...
 
Virtualization technology and an application of building vm ware
Virtualization technology and an application of building vm wareVirtualization technology and an application of building vm ware
Virtualization technology and an application of building vm ware
 
Virtualization: Force driving cloud computing
Virtualization: Force driving cloud computingVirtualization: Force driving cloud computing
Virtualization: Force driving cloud computing
 
Chapter 3.4.pptx
Chapter 3.4.pptxChapter 3.4.pptx
Chapter 3.4.pptx
 
Unit 3 Virtualization.pdf
Unit 3 Virtualization.pdfUnit 3 Virtualization.pdf
Unit 3 Virtualization.pdf
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
virtual-machine-150316004018-conversion-gate01.pdf
virtual-machine-150316004018-conversion-gate01.pdfvirtual-machine-150316004018-conversion-gate01.pdf
virtual-machine-150316004018-conversion-gate01.pdf
 
virtualization and hypervisors
virtualization and hypervisorsvirtualization and hypervisors
virtualization and hypervisors
 
Parth virt
Parth virtParth virt
Parth virt
 
virtualization.pptx
virtualization.pptxvirtualization.pptx
virtualization.pptx
 

Recently uploaded

growbilliontrees.com-Trees for Granddaughter (1).pdf
growbilliontrees.com-Trees for Granddaughter (1).pdfgrowbilliontrees.com-Trees for Granddaughter (1).pdf
growbilliontrees.com-Trees for Granddaughter (1).pdf
yadavakashagra
 
alhambra case study Islamic gardens part-2.pptx
alhambra case study Islamic gardens part-2.pptxalhambra case study Islamic gardens part-2.pptx
alhambra case study Islamic gardens part-2.pptx
CECOS University Peshawar, Pakistan
 
Sustainable Rain water harvesting in india.ppt
Sustainable Rain water harvesting in india.pptSustainable Rain water harvesting in india.ppt
Sustainable Rain water harvesting in india.ppt
chaitaliambole
 
Artificial Reefs by Kuddle Life Foundation - May 2024
Artificial Reefs by Kuddle Life Foundation - May 2024Artificial Reefs by Kuddle Life Foundation - May 2024
Artificial Reefs by Kuddle Life Foundation - May 2024
punit537210
 
ppt on beauty of the nature by Palak.pptx
ppt on  beauty of the nature by Palak.pptxppt on  beauty of the nature by Palak.pptx
ppt on beauty of the nature by Palak.pptx
RaniJaiswal16
 
How about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shopHow about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shop
laozhuseo02
 
Celebrating World-environment-day-2024.pdf
Celebrating  World-environment-day-2024.pdfCelebrating  World-environment-day-2024.pdf
Celebrating World-environment-day-2024.pdf
rohankumarsinghrore1
 
Environmental Science Book By Dr. Y.K. Singh
Environmental Science Book By Dr. Y.K. SinghEnvironmental Science Book By Dr. Y.K. Singh
Environmental Science Book By Dr. Y.K. Singh
AhmadKhan917612
 
Sustainable farming practices in India .pptx
Sustainable farming  practices in India .pptxSustainable farming  practices in India .pptx
Sustainable farming practices in India .pptx
chaitaliambole
 
"Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for...
"Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for..."Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for...
"Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for...
MMariSelvam4
 
Daan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like itDaan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like it
a0966109726
 
Presentación Giulio Quaggiotto-Diálogo improbable .pptx.pdf
Presentación Giulio Quaggiotto-Diálogo improbable .pptx.pdfPresentación Giulio Quaggiotto-Diálogo improbable .pptx.pdf
Presentación Giulio Quaggiotto-Diálogo improbable .pptx.pdf
Innovation and Technology for Development Centre
 
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdfUNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
JulietMogola
 
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
zm9ajxup
 
Navigating the complex landscape of AI governance
Navigating the complex landscape of AI governanceNavigating the complex landscape of AI governance
Navigating the complex landscape of AI governance
Piermenotti Mauro
 
Summary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of AustraliaSummary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of Australia
yasmindemoraes1
 
International+e-Commerce+Platform-www.cfye-commerce.shop
International+e-Commerce+Platform-www.cfye-commerce.shopInternational+e-Commerce+Platform-www.cfye-commerce.shop
International+e-Commerce+Platform-www.cfye-commerce.shop
laozhuseo02
 
Q&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service PlaybookQ&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service Playbook
World Resources Institute (WRI)
 
DRAFT NRW Recreation Strategy - People and Nature thriving together
DRAFT NRW Recreation Strategy - People and Nature thriving togetherDRAFT NRW Recreation Strategy - People and Nature thriving together
DRAFT NRW Recreation Strategy - People and Nature thriving together
Robin Grant
 
NRW Board Paper - DRAFT NRW Recreation Strategy
NRW Board Paper - DRAFT NRW Recreation StrategyNRW Board Paper - DRAFT NRW Recreation Strategy
NRW Board Paper - DRAFT NRW Recreation Strategy
Robin Grant
 

Recently uploaded (20)

growbilliontrees.com-Trees for Granddaughter (1).pdf
growbilliontrees.com-Trees for Granddaughter (1).pdfgrowbilliontrees.com-Trees for Granddaughter (1).pdf
growbilliontrees.com-Trees for Granddaughter (1).pdf
 
alhambra case study Islamic gardens part-2.pptx
alhambra case study Islamic gardens part-2.pptxalhambra case study Islamic gardens part-2.pptx
alhambra case study Islamic gardens part-2.pptx
 
Sustainable Rain water harvesting in india.ppt
Sustainable Rain water harvesting in india.pptSustainable Rain water harvesting in india.ppt
Sustainable Rain water harvesting in india.ppt
 
Artificial Reefs by Kuddle Life Foundation - May 2024
Artificial Reefs by Kuddle Life Foundation - May 2024Artificial Reefs by Kuddle Life Foundation - May 2024
Artificial Reefs by Kuddle Life Foundation - May 2024
 
ppt on beauty of the nature by Palak.pptx
ppt on  beauty of the nature by Palak.pptxppt on  beauty of the nature by Palak.pptx
ppt on beauty of the nature by Palak.pptx
 
How about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shopHow about Huawei mobile phone-www.cfye-commerce.shop
How about Huawei mobile phone-www.cfye-commerce.shop
 
Celebrating World-environment-day-2024.pdf
Celebrating  World-environment-day-2024.pdfCelebrating  World-environment-day-2024.pdf
Celebrating World-environment-day-2024.pdf
 
Environmental Science Book By Dr. Y.K. Singh
Environmental Science Book By Dr. Y.K. SinghEnvironmental Science Book By Dr. Y.K. Singh
Environmental Science Book By Dr. Y.K. Singh
 
Sustainable farming practices in India .pptx
Sustainable farming  practices in India .pptxSustainable farming  practices in India .pptx
Sustainable farming practices in India .pptx
 
"Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for...
"Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for..."Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for...
"Understanding the Carbon Cycle: Processes, Human Impacts, and Strategies for...
 
Daan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like itDaan Park Hydrangea flower season I like it
Daan Park Hydrangea flower season I like it
 
Presentación Giulio Quaggiotto-Diálogo improbable .pptx.pdf
Presentación Giulio Quaggiotto-Diálogo improbable .pptx.pdfPresentación Giulio Quaggiotto-Diálogo improbable .pptx.pdf
Presentación Giulio Quaggiotto-Diálogo improbable .pptx.pdf
 
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdfUNDERSTANDING WHAT GREEN WASHING IS!.pdf
UNDERSTANDING WHAT GREEN WASHING IS!.pdf
 
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
一比一原版(UMTC毕业证书)明尼苏达大学双城分校毕业证如何办理
 
Navigating the complex landscape of AI governance
Navigating the complex landscape of AI governanceNavigating the complex landscape of AI governance
Navigating the complex landscape of AI governance
 
Summary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of AustraliaSummary of the Climate and Energy Policy of Australia
Summary of the Climate and Energy Policy of Australia
 
International+e-Commerce+Platform-www.cfye-commerce.shop
International+e-Commerce+Platform-www.cfye-commerce.shopInternational+e-Commerce+Platform-www.cfye-commerce.shop
International+e-Commerce+Platform-www.cfye-commerce.shop
 
Q&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service PlaybookQ&A with the Experts: The Food Service Playbook
Q&A with the Experts: The Food Service Playbook
 
DRAFT NRW Recreation Strategy - People and Nature thriving together
DRAFT NRW Recreation Strategy - People and Nature thriving togetherDRAFT NRW Recreation Strategy - People and Nature thriving together
DRAFT NRW Recreation Strategy - People and Nature thriving together
 
NRW Board Paper - DRAFT NRW Recreation Strategy
NRW Board Paper - DRAFT NRW Recreation StrategyNRW Board Paper - DRAFT NRW Recreation Strategy
NRW Board Paper - DRAFT NRW Recreation Strategy
 

A510840101 24982 23_2020_lecture_2

  • 2. Objectives Overview and various terminologies. Types of Virtualization. How virtualization is achieved.
  • 3. Virtualization Virtualization refers to the act of creating a virtual (rather than actual) version of something, including virtual computer hardware platforms, operating systems, storage devices, and computer network resources. It offers a layer of abstraction between the computing resources and the applications running over it.
  • 4. Few Relevant Terms Virtual Machine: its is a closely detached software device that could run its own operating system and application as if it is running on a physical machine. It contains its own virtual RAM,CPU,Disk,Network etc. Guest operating system: Operating system running in a VM environment. Hypervisor: It is a thin layer of software that provides virtual partitioning abilities that run directly on hardware, but underneath higher-level virtualization services. Virtual machine monitor: this can be a part of hypervisor or can be a separate software entity, that runs between the host operating system and hypervisor. Hosted Virtualization: A method where virtualization and partitioning services run on top of a typical OS.
  • 5. Before Virtualization(x86) There is one OS image pre machine Software and hardware are tightly bound. Multiple application that run on the same machine usually creates complexity Resources are not used optimally Infrastructure is neither flexible nor economically effective
  • 6. After Virtualization(x86) Provisioning of VMs can be done on any system OS and application work as a single unit OS and applications are independent of hardware
  • 7. Traditional Scenario- 2 server & its utilization
  • 8. Moving from traditional scenario → virtualized
  • 9. Utilization levels in Virtualized server
  • 13. Virtualization Types CPU Virtualization Memory Virtualization Device & I/O Virtualization OS level Virtualization Network Virtualization Server Virtualization Client/Desktop Virtualization Application Virtualization
  • 14. x86 Hardware Virtualization The x86 architecture offers four levels of privilege known as Ring 0, 1, 2 and 3 to operating systems and applications to manage access to the computer hardware. While user level applications typically run in Ring 3, the operating system needs to have direct access to the memory and hardware and must execute its privileged instructions in Ring 0. x86 privilege level architecture without virtualization
  • 15. Technique 1: Full Virtualization using Binary Translation This approach relies on binary translation to trap (into the VMM) and to virtualize certain sensitive and non-virtualizable instructions with new sequences of instructions that have the intended effect on the virtual hardware. Meanwhile, user level code is directly executed on the processor for high performance virtualization. Binary translation approach to x86 virtualization
  • 16. Full Virtualization using Binary Translation This combination of binary translation and direct execution provides Full Virtualization as the guest OS is completely decoupled from the underlying hardware by the virtualization layer. The guest OS is not aware it is being virtualized and requires no modification. The hypervisor translates all operating system instructions at run-time on the fly and caches the results for future use, while user level instructions run unmodified at native speed. VMware’s virtualization products such as VMWare ESXi and Microsoft Virtual Server are examples of full virtualization.
  • 17. Full Virtualization using Binary Translation The performance of full virtualization may not be ideal because it involves binary translation at run-time which is time consuming and can incur a large performance overhead. The full virtualization of I/O – intensive applications can be a challenge. Binary translation employs a code cache to store translated hot instructions to improve performance, but it increases the cost of memory usage. The performance of full virtualization on the x86 architecture is typically 80% to 97% that of the host machine.
  • 18. Technique 2: OS Assisted Virtualization or Paravirtualization (PV) Paravirtualization refers to communication between the guest OS and the hypervisor to improve performance and efficiency. Paravirtualization involves modifying the OS kernel to replace nonvirtualizable instructions with hypercalls the virtualization layer hypervisor. that communicate directly with The hypervisor also provides hypercall interfaces for other critical kernel operations such as memory management, interrupt handling and time keeping. Paravirtualization approach to x86 Virtualization
  • 19. Technique 3: Hardware Assisted Virtualization (HVM)Intel’s Virtualization Technology (VT-x) (e.g. Intel Xeon) and AMD’s AMD-V both target privileged instructions with a new CPU execution mode feature that allows the VMM to run in a new root mode below ring 0, also referred to as Ring 0P (for privileged root mode) (for de-privileged non-root mode). while the Guest OS runs in Ring 0D Privileged and sensitive calls are set to automatically trap to the hypervisor and handled by hardware, removing the need for either binary translation or para-virtualization. Vmware only takes advantage of these first generation hardware features in limited
  • 20. Summary Comparison of the Current State of x86 Virtualization Techniques
  • 21. Full Virtualization vs. Paravirtualization Paravirtualization is different from full virtualization, where the unmodified OS does not know it is virtualized and sensitive OS calls are trapped using binary translation at run time. In paravirtualization, these instructions are handled at compile time when the non-virtualizable OS instructions are replaced with hypercalls. The advantage of paravirtualization is lower virtualization overhead, but the performance advantage of paravirtualization over full virtualization can vary greatly depending on the workload. Most user space workloads gain very little, and near native performance is not achieved for all workloads. As paravirtualization cannot support unmodified operating systems (e.g. Windows 2000/XP), its compatibility and portability is poor.
  • 22. Full Virtualization vs. Paravirtualization Paravirtualization can also introduce significant support and maintainability issues in production environments as it requires deep OS kernel modifications. The invasive kernel modifications tightly couple the guest OS to the hypervisor with data structure dependencies, preventing the modified guest OS from running on other hypervisors or native hardware. The open source Xen project is an example of paravirtualization that virtualizes the processor and memory using a modified Linux kernel and virtualizes the I/O using custom guest OS device drivers.
  • 23. Memory Virtualization This involves sharing the physical system memory and dynamically allocating it to virtual machines. VM memory virtualization is very similar to the virtual memory support provided by modern operating systems. The operating system keeps mappings of virtual page numbers to physical page numbers stored in page tables. All modern x86 CPUs include a memory management unit (MMU) and a translation lookaside buffer (TLB) to optimize virtual memory performance. To run multiple virtual machines on a single system, another level of memory virtualization is required. In other words, one has to virtualize the MMU to support the guest OS.
  • 24. Memory Virtualization The guest OS continues to control the mapping of virtual addresses to the guest memory physical addresses, but the guest OS cannot have direct access to the actual machine memory. The VMM is responsible for mapping guest physical memory to the actual machine memory, and it uses shadow page tables to accelerate the mappings. The VMM uses TLB hardware to map the virtual memory directly to the machine memory to avoid the two levels of translation on every access.
  • 25. I/O Virtualization I/O Virtualization involves managing the routing of I/O requests between virtual devices and the shared physical hardware. The hypervisor virtualizes the physical hardware and presents each virtual machine with a standardized set of virtual devices. These virtual devices effectively emulate well-known hardware (with device drivers) and translate the virtual machine requests to the system hardware. This standardization on consistent device drivers also helps with virtual machine standardization and portability across platforms as all virtual machines are configured to run on the same virtual hardware regardless of the actual physical hardware in the system.
  • 26. I/O Virtualization in Xen: Indirect driver model Xen uses an indirect driver design that routes virtual machine I/O through device drivers in the Windows or Linux management operating systems. Xen uses an indirect split driver model consisting of a front-end driver running in Domain U (user VMs) and the backend driver running in Domain 0. These two drivers interact with each other via a block of shared memory. The front-end driver manages the I/O requests of the guest OS and the backend driver is responsible for managing the real I/O devices and multiplexing the I/O data of different VMs. These generic (standard) backend drivers installed in Linux or Windows OS can be overtaxed by the activity of multiple virtual machines and are not optimized for multiple VM workloads. There is also CPU overhead associated with this approach because I/O is proxied via Domain 0.
  • 27. I/O Virtualization in VMWare ESXi: Direct driver model ESXi uses a direct driver model that locates the device drivers that link virtual machines to physical devices directly in the ESXi hypervisor. With the drivers in the hypervisor, VMware ESXi uses optimized and hardened device drivers and provides special treatment, in the form of CPU scheduling and memory resources, that they need to process I/O loads from multiple virtual machines.
  • 31. Virtualization Solutions by Entreprise VMware ESX and ESXi Citrix Xen Server Hyper-V Oracle Virtual Box KVM Virtual PC