SlideShare a Scribd company logo
   
Introduction to
Cloud Computing and Virtualization
By
Mayank Mishra
Sujesha Sudevalayam
PhD Students
CSE, IIT Bombay
   
Talk Layout
 Cloud Computing
 Need
 Features
 Feasibility
 Virtualization of Machines
 What is it
 Implementation techniques
 Benefits
 XEN's internals
 Domains
 CPU Sharing
 HyperCall
 Memory Sharing
 IO Sharing
 Conclusion
   
Resource Provisioning –
Company's/Customer's View
Big Headache
Image source [1]
Resource Wastage Unserved Requests
Loss of Customers
   
Resource Provisioning –
DataCenter/Cloud Provider's View
2000 2050
3000
00
0
Company ­ BLUE Company ­ RED
Cloud Provider
Charge for 4050 machines, Work with 3000
Good Business
Computing as a service or utility.
   
scale your infrastructure on demand within minutes or even seconds, instead of days or 
weeks, thereby avoiding under­utilization (idle servers) and over­utilization 
a broad array of web­based services aimed at allowing users to obtain a wide range of 
functional capabilities on a 'pay­as­you­go' basis 
Cloud computing really is accessing resources and services needed to perform functions 
with dynamically changing needs. ... The cloud is a virtualization of resources that 
maintains and manages itself.
Source : Internet
Cloud Computing
 On-demand service : User not worried about maintenance and setup
issues etc.
 Networked Shared Resources : Large capacity distributed/multiplexed
over several users
 Flexible Provisioning : Dynamically scale resources
 Fine-grained metering : pay-as-you-use model
   
What is required
By Cloud Provider
 Fast scalability – Quick addition and removal of servers
 Service to customers should not be denied.
 SLA should not be Violated
 Efficient Resource Utilization
Constraints with physical machines
 High Provisioning time.
 Lower Resource Utilization.
 Space, Power, Cooling.
 Low fault tolerance
 Less Isolation - misbehaving application can affect all others.
 High downtime.
   
What is Virtualization
Wikipedia says “Virtualization, in computing, is
the creation of a virtual (rather than actual)
version of something, such as a hardware
platform, operating system, a storage device or
network resources”
 Concept is not new.
Multi Programming – Each Process thinks it has
complete control on all of the resources.
 Virtual Memory
 CPU Sharing
   
Similarities and Differences with
Multiprogramming
 Multi Programming
 CPU is shared among
processes
 Memory is shared
using Page Tables.
 Process knows it is
being managed- uses
system calls.
 Virtualization
 CPU is shared among
OSs.
 Memory is shared using
more level of indirections.
Multiple Page tables.
 OS may or may not know
that it is being managed.
   
Virtualization Architecture
 OS assumes complete control of the underlying hardware.
 Virtualization architecture provides this illusion through a hypervisor/VMM.
 Hypervisor/VMM is a software layer which:
 Allows multiple Guest OS (Virtual Machines) to run simultaneously on a
single physical host
 Provides hardware abstraction to the running Guest OSs and efficiently
multiplexes underlying hardware resources.
Hardware
   
Physical vs. Virtual Machine
 Single OS
 h/w + s/w tightly coupled
 Application crashes affect all
 Resource under-utilization
 Machine view to OS is
independent of hardware
 Multiple OS (isolated apps)
 Safely multiplex resources
across VMs
image source: vmware.com
   
Types of Virtual Machines
 Process view of
machine
 memory, user-level
instr., system calls for
OS functions
 OS interface to
hardware defines view
of process
 Process VM
 e.g. Java, .Net,
Emulators
 System view of
machine
 environment to support
multiple processes
 sharing resources
 hardware characteristics
defines system view
 System VM
 e.g.,Xen, kvm, VMware,
VirtualBox, UMLinux
Source [3]
   
Benefits of using Virtual
Machines
 Instant provisioning - fast scalability
 Live Migration is possible
 Load balancing and consolidation in a Data Center is
possible.
 Low downtime for maintenance
 Virtual hardware supports legacy operating systems
efficiently
 Security and fault isolation
   
VM Migration
A A BB
   
Load Balancing
­ Better Response time
Consolidation
­Reduces number of Physical 
Machine requirement
B C CA
B BAA
   
Importance of Virtualization in
Cloud Computing
 Cloud can exist without Virtualization, although
it will be difficult and inefficient.
 Cloud makes notion of “Pay for what you use”,
“infinite availability- use as much you want”.
 These notions are practical only if we have
 lot of flexibility
 efficiency in the back-end.
 This efficiency is readily available in Virtualized
Environments and Machines.
   
Requirement for Virtualizability
Popek and Goldberg mentioned a set of requirements that must be met in
their 1974 paper.
 They divided instructions into three categories:
 Privileged instructions: execute in a privileged mode, but will trap
otherwise.
 Control sensitive instructions: attempt to change the config of resources
 Behavior sensitive instructions: are those that behave in a different way
depending on the config of resources
 They said that all sensitive instructions must also be privileged instructions.
 Hypervisor must be able to intercept any instructions that changes the state
of the machine in a way that impacts other processes.
   
Privilege Rings
 Memory page has a 2 bit code which is checked by CPU before
executing the instruction.
 If privilege level is insufficient the CPU does not executes the
instruction.
0 – Highest Privilege
   
VM Implementation Techniques
1.Binary Translation
2.Paravirtualization
3.Hardware Supported Virtualization
   
1. Binary Translation
Used in VMWare
 Binary image of OS is manipulated at the
runtime.
 Privileged instructions are rewritten to point to
their emulated versions.
 Performance from this approach is not ideal,
particularly when doing anything I/O intensive.
 Caching of the locations of unsafe instructions
can speed Up
   
2. Paravirtualization
Used in XEN
 Make OS aware of underlying Virtualization env.
 OS's code is manipulated.
 Important system calls are changed to point to the implementation
provided by the VMM.
   
3. HW Supported Virtualization
 Added new instructions which makes Virtualization considerably easier for x86.
 Intel – IVT(Intel Virtualization Technology)
 AMD – introduced AMD-V
 OS stays in its original privilege level 0.
 Attempts to access the hardware directly are caught and passed to VMM.
 In other words a new privilege ring is setup for the VMM.
“­1” ring of VMM
   
XEN
 XEN Domains
 CPU Sharing
 Hyper Calls
 Memory Sharing
 IO Sharing
 XEN Split Driver Technique
 IO Ring
   
XEN Domains
 Xen runs guests in environments known as domains which encapsulate a
complete running virtual environment
 There are two types pf Domains:

DomU -
 the “U” stands for unprivileged.
 Guest OSs run in this domain.
 Dom0
 has elevated privileges
 Provides device drivers
 Provides tools/mechanisms to configure Virtualization environment
DOM0 DOMU DOMU
XEN
Hardware
Privileged Domain Un­Privileged Domains
   
CPU Sharing
 VMM or Hypervisor provides a virtual view of CPU to VMs.
 In multi processing, CPU is alloted to the different
processes in form of time slices by the OS.
 Similarly VMM or Hypervisor allots CPU to different VMs.
VM1 VM2 VM3
CPU Time
APP1 APP2 APP1 APP2 APP1 APP2APP3
VMM
VM1 OS VM2 OS VM3 OS
   
XEN Hypercall
   
Memory Sharing
Applications use Virtual 
Addresses
Kernel translates Virtual 
Addresses to Pseudo­Physical
Addresses
Hypervisor translates Pseudo­
Physical Addresses to Machine 
addresses
 In Multiprogramming there is a single level of indirection maintained
by Kernel.
 In case of Virtual Machines there is one more level of indirection
maintained by VMM
Page Table
Page Table
   
IO Sharing
 DMA Problem
 Device needs to use Physical Memory location.
 In a virtualized environment, the kernel is running in a hypervisor-
provided virtual address space
 Allowing the guest kernel to convey an arbitrary location to device for
writing is a serious security hole
 Detecting a DMA instruction is nontrivial. Each device defines its own
protocol for talking to drivers.
 XEN Follows Split Driver Model: Dom 0 does the IO on behalf of
all the other guests.
 As DOM0 is privileged the IO has no problem
   
XEN IO Split Device Driver
   
IO Ring
Shared memory is used with event based synchronization
   
Conclusions
 Notion of Cloud is possible without
Virtualization, but it will be inefficient and
inflexible.
 Virtualization is an attempt to manage OS.
 There are many levels and many ways to
implement Virtualization.
   
References
[1] Amburst et al. “Above the Clouds: A
Berkeley view of cloud computing”
[2]David Chisnall. “The Definitive Guide to XEN
Hypervisor”.
[3] Prof. Purushottam Kulkarni, CSE, IITB, His
Presentation.
[4] Vmware “ www.vmware.com”
[5] Wikipedia and Internet.

More Related Content

What's hot

Paravirtualization
ParavirtualizationParavirtualization
Paravirtualization
Shahbaz Sidhu
 
Presentation cloud computing workshop - virtualization
Presentation   cloud computing workshop - virtualizationPresentation   cloud computing workshop - virtualization
Presentation cloud computing workshop - virtualization
xKinAnx
 
Xen & the Art of Virtualization
Xen & the Art of VirtualizationXen & the Art of Virtualization
Xen & the Art of Virtualization
Tareque Hossain
 
Mid term report
Mid term reportMid term report
Mid term report
lokesh039
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
Nikunj Dhameliya
 
Overview of VMware & VMware Education from IBM
Overview of VMware & VMware Education from IBMOverview of VMware & VMware Education from IBM
Overview of VMware & VMware Education from IBM
ctc TrainCanada
 
A510840101 24982 23_2020_lecture_2
A510840101 24982 23_2020_lecture_2A510840101 24982 23_2020_lecture_2
A510840101 24982 23_2020_lecture_2
Krishna Kumar Singh
 
Virtualization Questions
Virtualization QuestionsVirtualization Questions
Virtualization Questions
Trupti Jethva
 
Open source hypervisors in cloud
Open source hypervisors in cloudOpen source hypervisors in cloud
Open source hypervisors in cloud
Chetna Purohit
 
Virtualization basics
Virtualization basics Virtualization basics
Virtualization basics
Chandrani Ray Chowdhury
 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & Hypervisors
Arun Shukla
 
Virtualisation overview
Virtualisation overviewVirtualisation overview
Virtualisation overview
sagaroceanic11
 
Virtualization using VMWare Workstation
Virtualization using VMWare WorkstationVirtualization using VMWare Workstation
Virtualization using VMWare Workstation
Hitesh Gupta
 
Virtual Machine
Virtual MachineVirtual Machine
Virtual Machine
Mehul Boghra
 
VMware vSphere 5.1 Overview
VMware vSphere 5.1 OverviewVMware vSphere 5.1 Overview
VMware vSphere 5.1 Overview
ESXLab
 
APP-V 5.0 Service Pack 3, виртуализация Microsoft Office
APP-V 5.0 Service Pack 3, виртуализация Microsoft OfficeAPP-V 5.0 Service Pack 3, виртуализация Microsoft Office
APP-V 5.0 Service Pack 3, виртуализация Microsoft Office
Виталий Стародубцев
 
Virtualization
VirtualizationVirtualization
Virtualization
Mehdi Poustchi Amin
 
Parth virt
Parth virtParth virt
Parth virt
Parth Monga
 
Vmware Certified Professional 6 2V0-621 Dumps
Vmware Certified Professional 6 2V0-621 DumpsVmware Certified Professional 6 2V0-621 Dumps
Vmware Certified Professional 6 2V0-621 Dumps
Shamar41
 
VMware Paravirtualization
VMware ParavirtualizationVMware Paravirtualization
VMware Paravirtualization
iTawy Community
 

What's hot (20)

Paravirtualization
ParavirtualizationParavirtualization
Paravirtualization
 
Presentation cloud computing workshop - virtualization
Presentation   cloud computing workshop - virtualizationPresentation   cloud computing workshop - virtualization
Presentation cloud computing workshop - virtualization
 
Xen & the Art of Virtualization
Xen & the Art of VirtualizationXen & the Art of Virtualization
Xen & the Art of Virtualization
 
Mid term report
Mid term reportMid term report
Mid term report
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
Overview of VMware & VMware Education from IBM
Overview of VMware & VMware Education from IBMOverview of VMware & VMware Education from IBM
Overview of VMware & VMware Education from IBM
 
A510840101 24982 23_2020_lecture_2
A510840101 24982 23_2020_lecture_2A510840101 24982 23_2020_lecture_2
A510840101 24982 23_2020_lecture_2
 
Virtualization Questions
Virtualization QuestionsVirtualization Questions
Virtualization Questions
 
Open source hypervisors in cloud
Open source hypervisors in cloudOpen source hypervisors in cloud
Open source hypervisors in cloud
 
Virtualization basics
Virtualization basics Virtualization basics
Virtualization basics
 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & Hypervisors
 
Virtualisation overview
Virtualisation overviewVirtualisation overview
Virtualisation overview
 
Virtualization using VMWare Workstation
Virtualization using VMWare WorkstationVirtualization using VMWare Workstation
Virtualization using VMWare Workstation
 
Virtual Machine
Virtual MachineVirtual Machine
Virtual Machine
 
VMware vSphere 5.1 Overview
VMware vSphere 5.1 OverviewVMware vSphere 5.1 Overview
VMware vSphere 5.1 Overview
 
APP-V 5.0 Service Pack 3, виртуализация Microsoft Office
APP-V 5.0 Service Pack 3, виртуализация Microsoft OfficeAPP-V 5.0 Service Pack 3, виртуализация Microsoft Office
APP-V 5.0 Service Pack 3, виртуализация Microsoft Office
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Parth virt
Parth virtParth virt
Parth virt
 
Vmware Certified Professional 6 2V0-621 Dumps
Vmware Certified Professional 6 2V0-621 DumpsVmware Certified Professional 6 2V0-621 Dumps
Vmware Certified Professional 6 2V0-621 Dumps
 
VMware Paravirtualization
VMware ParavirtualizationVMware Paravirtualization
VMware Paravirtualization
 

Similar to Intro to virtualization

cloud basics.
cloud basics.cloud basics.
cloud basics.
Mercy joy
 
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
 
CH14-Virtual Machines.pptx
CH14-Virtual Machines.pptxCH14-Virtual Machines.pptx
CH14-Virtual Machines.pptx
AmirZaman21
 
Cloud Computing Virtualization and containers
Cloud Computing Virtualization and containersCloud Computing Virtualization and containers
Cloud Computing Virtualization and containers
Selvaraj Kesavan
 
Virtualization
VirtualizationVirtualization
Virtualization
vishnurk
 
Virtualization for Cloud Environment
Virtualization for Cloud EnvironmentVirtualization for Cloud Environment
Virtualization for Cloud Environment
Dr. Sunil Kr. Pandey
 
Unit II.ppt
Unit II.pptUnit II.ppt
Unit II.ppt
HARISHK762704
 
Unit 2
Unit 2Unit 2
Unit 2
cheepusowmya
 
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
 
Server Virtualization Seminar Presentation
Server Virtualization Seminar PresentationServer Virtualization Seminar Presentation
Server Virtualization Seminar Presentation
shabi_hassan
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
ImXaib
 
Slide final
Slide finalSlide final
Slide final
Nikita Gupta
 
virtualization.pptx
virtualization.pptxvirtualization.pptx
virtualization.pptx
ssuser6e6eec
 
Chapter 5 – Cloud Resource Virtua.docx
Chapter 5 – Cloud Resource                        Virtua.docxChapter 5 – Cloud Resource                        Virtua.docx
Chapter 5 – Cloud Resource Virtua.docx
madlynplamondon
 
Chapter 5 – Cloud Resource Virtua.docx
Chapter 5 – Cloud Resource                        Virtua.docxChapter 5 – Cloud Resource                        Virtua.docx
Chapter 5 – Cloud Resource Virtua.docx
gertrudebellgrove
 
virtual-machine-ppt 18030 cloud computing.pptx
virtual-machine-ppt 18030 cloud computing.pptxvirtual-machine-ppt 18030 cloud computing.pptx
virtual-machine-ppt 18030 cloud computing.pptx
Zarwashgulrez
 
VSS LEC5.pdf
VSS LEC5.pdfVSS LEC5.pdf
VSS LEC5.pdf
RiyaBatool
 
Handout2o
Handout2oHandout2o
Handout2o
Shahbaz Sidhu
 

Similar to Intro to virtualization (20)

cloud basics.
cloud basics.cloud basics.
cloud basics.
 
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
 
CH14-Virtual Machines.pptx
CH14-Virtual Machines.pptxCH14-Virtual Machines.pptx
CH14-Virtual Machines.pptx
 
Cloud Computing Virtualization and containers
Cloud Computing Virtualization and containersCloud Computing Virtualization and containers
Cloud Computing Virtualization and containers
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Virtualization for Cloud Environment
Virtualization for Cloud EnvironmentVirtualization for Cloud Environment
Virtualization for Cloud Environment
 
Unit II.ppt
Unit II.pptUnit II.ppt
Unit II.ppt
 
Unit 2
Unit 2Unit 2
Unit 2
 
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
 
Server Virtualization Seminar Presentation
Server Virtualization Seminar PresentationServer Virtualization Seminar Presentation
Server Virtualization Seminar Presentation
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
 
Slide final
Slide finalSlide final
Slide final
 
virtualization.pptx
virtualization.pptxvirtualization.pptx
virtualization.pptx
 
Chapter 5 – Cloud Resource Virtua.docx
Chapter 5 – Cloud Resource                        Virtua.docxChapter 5 – Cloud Resource                        Virtua.docx
Chapter 5 – Cloud Resource Virtua.docx
 
Chapter 5 – Cloud Resource Virtua.docx
Chapter 5 – Cloud Resource                        Virtua.docxChapter 5 – Cloud Resource                        Virtua.docx
Chapter 5 – Cloud Resource Virtua.docx
 
virtual-machine-ppt 18030 cloud computing.pptx
virtual-machine-ppt 18030 cloud computing.pptxvirtual-machine-ppt 18030 cloud computing.pptx
virtual-machine-ppt 18030 cloud computing.pptx
 
VSS LEC5.pdf
VSS LEC5.pdfVSS LEC5.pdf
VSS LEC5.pdf
 
Handout2o
Handout2oHandout2o
Handout2o
 

Recently uploaded

假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
cuobya
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
cuobya
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
zyfovom
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
SEO Article Boost
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
bseovas
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
Trending Blogers
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
fovkoyb
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
uehowe
 
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
bseovas
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
Paul Walk
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
hackersuli
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
ukwwuq
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
davidjhones387
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
wolfsoftcompanyco
 

Recently uploaded (20)

假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
 
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
存档可查的(USC毕业证)南加利福尼亚大学毕业证成绩单制做办理
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
 
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
留学学历(UoA毕业证)奥克兰大学毕业证成绩单官方原版办理
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
制作原版1:1(Monash毕业证)莫纳什大学毕业证成绩单办理假
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
 

Intro to virtualization

  • 1.     Introduction to Cloud Computing and Virtualization By Mayank Mishra Sujesha Sudevalayam PhD Students CSE, IIT Bombay
  • 2.     Talk Layout  Cloud Computing  Need  Features  Feasibility  Virtualization of Machines  What is it  Implementation techniques  Benefits  XEN's internals  Domains  CPU Sharing  HyperCall  Memory Sharing  IO Sharing  Conclusion
  • 3.     Resource Provisioning – Company's/Customer's View Big Headache Image source [1] Resource Wastage Unserved Requests Loss of Customers
  • 4.     Resource Provisioning – DataCenter/Cloud Provider's View 2000 2050 3000 00 0 Company ­ BLUE Company ­ RED Cloud Provider Charge for 4050 machines, Work with 3000 Good Business Computing as a service or utility.
  • 5.     scale your infrastructure on demand within minutes or even seconds, instead of days or  weeks, thereby avoiding under­utilization (idle servers) and over­utilization  a broad array of web­based services aimed at allowing users to obtain a wide range of  functional capabilities on a 'pay­as­you­go' basis  Cloud computing really is accessing resources and services needed to perform functions  with dynamically changing needs. ... The cloud is a virtualization of resources that  maintains and manages itself. Source : Internet Cloud Computing  On-demand service : User not worried about maintenance and setup issues etc.  Networked Shared Resources : Large capacity distributed/multiplexed over several users  Flexible Provisioning : Dynamically scale resources  Fine-grained metering : pay-as-you-use model
  • 6.     What is required By Cloud Provider  Fast scalability – Quick addition and removal of servers  Service to customers should not be denied.  SLA should not be Violated  Efficient Resource Utilization Constraints with physical machines  High Provisioning time.  Lower Resource Utilization.  Space, Power, Cooling.  Low fault tolerance  Less Isolation - misbehaving application can affect all others.  High downtime.
  • 7.     What is Virtualization Wikipedia says “Virtualization, in computing, is the creation of a virtual (rather than actual) version of something, such as a hardware platform, operating system, a storage device or network resources”  Concept is not new. Multi Programming – Each Process thinks it has complete control on all of the resources.  Virtual Memory  CPU Sharing
  • 8.     Similarities and Differences with Multiprogramming  Multi Programming  CPU is shared among processes  Memory is shared using Page Tables.  Process knows it is being managed- uses system calls.  Virtualization  CPU is shared among OSs.  Memory is shared using more level of indirections. Multiple Page tables.  OS may or may not know that it is being managed.
  • 9.     Virtualization Architecture  OS assumes complete control of the underlying hardware.  Virtualization architecture provides this illusion through a hypervisor/VMM.  Hypervisor/VMM is a software layer which:  Allows multiple Guest OS (Virtual Machines) to run simultaneously on a single physical host  Provides hardware abstraction to the running Guest OSs and efficiently multiplexes underlying hardware resources. Hardware
  • 10.     Physical vs. Virtual Machine  Single OS  h/w + s/w tightly coupled  Application crashes affect all  Resource under-utilization  Machine view to OS is independent of hardware  Multiple OS (isolated apps)  Safely multiplex resources across VMs image source: vmware.com
  • 11.     Types of Virtual Machines  Process view of machine  memory, user-level instr., system calls for OS functions  OS interface to hardware defines view of process  Process VM  e.g. Java, .Net, Emulators  System view of machine  environment to support multiple processes  sharing resources  hardware characteristics defines system view  System VM  e.g.,Xen, kvm, VMware, VirtualBox, UMLinux Source [3]
  • 12.     Benefits of using Virtual Machines  Instant provisioning - fast scalability  Live Migration is possible  Load balancing and consolidation in a Data Center is possible.  Low downtime for maintenance  Virtual hardware supports legacy operating systems efficiently  Security and fault isolation
  • 15.     Importance of Virtualization in Cloud Computing  Cloud can exist without Virtualization, although it will be difficult and inefficient.  Cloud makes notion of “Pay for what you use”, “infinite availability- use as much you want”.  These notions are practical only if we have  lot of flexibility  efficiency in the back-end.  This efficiency is readily available in Virtualized Environments and Machines.
  • 16.     Requirement for Virtualizability Popek and Goldberg mentioned a set of requirements that must be met in their 1974 paper.  They divided instructions into three categories:  Privileged instructions: execute in a privileged mode, but will trap otherwise.  Control sensitive instructions: attempt to change the config of resources  Behavior sensitive instructions: are those that behave in a different way depending on the config of resources  They said that all sensitive instructions must also be privileged instructions.  Hypervisor must be able to intercept any instructions that changes the state of the machine in a way that impacts other processes.
  • 17.     Privilege Rings  Memory page has a 2 bit code which is checked by CPU before executing the instruction.  If privilege level is insufficient the CPU does not executes the instruction. 0 – Highest Privilege
  • 18.     VM Implementation Techniques 1.Binary Translation 2.Paravirtualization 3.Hardware Supported Virtualization
  • 19.     1. Binary Translation Used in VMWare  Binary image of OS is manipulated at the runtime.  Privileged instructions are rewritten to point to their emulated versions.  Performance from this approach is not ideal, particularly when doing anything I/O intensive.  Caching of the locations of unsafe instructions can speed Up
  • 20.     2. Paravirtualization Used in XEN  Make OS aware of underlying Virtualization env.  OS's code is manipulated.  Important system calls are changed to point to the implementation provided by the VMM.
  • 21.     3. HW Supported Virtualization  Added new instructions which makes Virtualization considerably easier for x86.  Intel – IVT(Intel Virtualization Technology)  AMD – introduced AMD-V  OS stays in its original privilege level 0.  Attempts to access the hardware directly are caught and passed to VMM.  In other words a new privilege ring is setup for the VMM. “­1” ring of VMM
  • 22.     XEN  XEN Domains  CPU Sharing  Hyper Calls  Memory Sharing  IO Sharing  XEN Split Driver Technique  IO Ring
  • 23.     XEN Domains  Xen runs guests in environments known as domains which encapsulate a complete running virtual environment  There are two types pf Domains:  DomU -  the “U” stands for unprivileged.  Guest OSs run in this domain.  Dom0  has elevated privileges  Provides device drivers  Provides tools/mechanisms to configure Virtualization environment DOM0 DOMU DOMU XEN Hardware Privileged Domain Un­Privileged Domains
  • 24.     CPU Sharing  VMM or Hypervisor provides a virtual view of CPU to VMs.  In multi processing, CPU is alloted to the different processes in form of time slices by the OS.  Similarly VMM or Hypervisor allots CPU to different VMs. VM1 VM2 VM3 CPU Time APP1 APP2 APP1 APP2 APP1 APP2APP3 VMM VM1 OS VM2 OS VM3 OS
  • 26.     Memory Sharing Applications use Virtual  Addresses Kernel translates Virtual  Addresses to Pseudo­Physical Addresses Hypervisor translates Pseudo­ Physical Addresses to Machine  addresses  In Multiprogramming there is a single level of indirection maintained by Kernel.  In case of Virtual Machines there is one more level of indirection maintained by VMM Page Table Page Table
  • 27.     IO Sharing  DMA Problem  Device needs to use Physical Memory location.  In a virtualized environment, the kernel is running in a hypervisor- provided virtual address space  Allowing the guest kernel to convey an arbitrary location to device for writing is a serious security hole  Detecting a DMA instruction is nontrivial. Each device defines its own protocol for talking to drivers.  XEN Follows Split Driver Model: Dom 0 does the IO on behalf of all the other guests.  As DOM0 is privileged the IO has no problem
  • 28.     XEN IO Split Device Driver
  • 29.     IO Ring Shared memory is used with event based synchronization
  • 30.     Conclusions  Notion of Cloud is possible without Virtualization, but it will be inefficient and inflexible.  Virtualization is an attempt to manage OS.  There are many levels and many ways to implement Virtualization.
  • 31.     References [1] Amburst et al. “Above the Clouds: A Berkeley view of cloud computing” [2]David Chisnall. “The Definitive Guide to XEN Hypervisor”. [3] Prof. Purushottam Kulkarni, CSE, IITB, His Presentation. [4] Vmware “ www.vmware.com” [5] Wikipedia and Internet.