














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Type 1 hypervisors - Operating-system-like software built to provide virtualization. Runs on 'bare metal”. ▫. Including VMware ESX, Joyent SmartOS, and Citrix ...
Typology: Slides
1 / 22
This page cannot be seen from the preview
Don't miss anything!















Chapter 5 — Large and Fast: Exploiting Memory Hierarchy — 2
§ 5.6 Virtual Machines
Chapter 5 — Large and Fast: Exploiting Memory Hierarchy — 4 Virtual Machine Monitor (Hypervisor)
Chapter 5 — Large and Fast: Exploiting Memory Hierarchy — 5
User mode and Kernel (supervisor) mode
“Sensitive instructions”
“Privileged instructions”
Intel’s 386 did not always do that. Several sensitive 386 instructions were ignored if executed in user mode. Fixed in 2005 Intel CPUs: VT (Virtualization Technology) AMD CPUs: SVM (Secure Virtual Machine)
Implementation of VMMs Type 1 hypervisors - Operating-system-like software built to provide virtualization. Runs on ‘bare metal”. Including VMware ESX, Joyent SmartOS, and Citrix XenServer Also includes general-purpose operating systems that provide standard functions as well as VMM functions Including Microsoft Windows Server with HyperV and RedHat Linux with KVM Type 2 hypervisors - Applications that run on standard operating systems but provide VMM features to guest operating systems Includeing VMware Workstation and Fusion, Parallels Desktop, and Oracle VirtualBox All 3 are Type 1 http://www.virtualizationsoftware.com/top- 5 - enterprise-type- 1 - hypervisors/
Implementation of VMMs
Terms
The OS running on top of the hypervisor
For a type 2 hypervisor: the OS that runs on the hardware.
Virtual Machine (VM) as a set of files
server definition, how many virtual processors (vCPUs) how much RAM is allocated, which I/O devices the VM has access to, how many network interface cards (NICs) are in the virtual server the storage that the VM can access
Virtualization benefits Run multiple, OSes on a single machine Consolidation , app dev, … Security: Host system protected from VMs, VMs protected from each other Sharing though shared file system volume, network communication Freeze, suspend , running VM Then can move or copy somewhere else and resume Live migration Snapshot of a given state, able to restore back to that state Clone by creating copy and running both original and copy Hence – cloud computing
Sensitive instructions
Sensitive instructions Consider Intel x86 popf instruction If CPU in privileged mode - > all flags replaced If CPU in user mode - > on some flags replaced No trap is generated
Type 1 Hypervisors Guest OSs believe they are running on bare metal, are unaware of hypervisor are not modified Better performance Choice for data centers Consolidation of multiple OSes and apps onto less HW Move guests between systems to balance performance Snapshots and cloning Create run and manage guest OSes Run in kernel mode Implement device drivers Also provide other traditional OS services like CPU and memory management Examples: VMWare esx (dedicated) , Windows with Hyper-V (includes OS)
Full vs Para-virtualization Full virtualization: Guest OS is unaware of the hypervisor. It thinks it is running on bare metal. Para-virtualization: Guest OS is modified and optimized. It sees underlying hypervisor.
Modifications needed: Linux 1.36%, XP: 0.04% of code base
Live Migration Running guest can be moved between systems, without interrupting user access to the guest or its apps for resource management, maintenance downtime windows, etc Migration from source VMM to target VMM Needs to migrate all pages gradually, without interrupting execution (details in next slide) Eventually source VMM freezes guest, sends vCPU’s final state, sends other state details, and tells target to start running the guest Once target acknowledges that guest running, source terminates guest