IT344 – Operating Systems Winter 2011, Dale Rowe.

Slides:



Advertisements
Similar presentations
Virtualization Dr. Michael L. Collard
Advertisements

Virtualization Technology
Virtualisation From the Bottom Up From storage to application.
Introduction to Virtualization
Virtualization and Cloud Computing
CS-3013 & CS-502, Summer 2006 Virtual Machine Systems1 CS-502 Operating Systems Slides excerpted from Silbershatz, Ch. 2.
Disco Running Commodity Operating Systems on Scalable Multiprocessors.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
ELEC6200, Fall 07, Oct 29 Westrom: Virtual Machines 1 Kenneth Westrom ELEC-6620.
© 2001 VMware, Inc. All rights reserved. The Future of Virtual Machines: A VMware Perspective Ed Bugnion Co-founder, VMware Inc. JUGS September 27, 2001.
Virtualization Technology Prof. Dan Connors. Copyright © 2006, Intel Corporation. All rights reserved. Prices and availability subject to change without.
Virtualization for Cloud Computing
Virtual Machine Monitors CSE451 Andrew Whitaker. Hardware Virtualization Running multiple operating systems on a single physical machine Examples:  VMWare,
CIS 700 Machine Virtualization Autumn 2004.
A Brief Introduction To Virtualization Technologies Yin Yunqiao HP.
Distributed Systems CS Virtualization- Overview Lecture 22, Dec 4, 2013 Mohammad Hammoud 1.
Introduction to Virtual Machines. Administration Presentation and class participation: 40% –Each student will present two and a half times this semester.
CSE 451: Operating Systems Winter 2012 Module 18 Virtual Machines Mark Zbikowski and Gary Kimura.
A Survey on Virtualization Technologies
Virtualization Technology Prof D M Dhamdhere CSE Department IIT Bombay Moving towards Virtualization… Department of Computer Science and Engineering, IIT.
Tanenbaum 8.3 See references
Virtualization Concept. Virtualization  Real: it exists, you can see it.  Transparent: it exists, you cannot see it  Virtual: it does not exist, you.
Operating System Virtualization
Zen and the Art of Virtualization Paul Barham, et al. University of Cambridge, Microsoft Research Cambridge Published by ACM SOSP’03 Presented by Tina.
An Introduction to Xen Prof. Chih-Hung Wu
A Survey on Virtualization Technologies Susanta K Nanda.
Microkernels, virtualization, exokernels Tutorial 1 – CSC469.
Virtual Machines: Versatile Platforms for Systems and Processes
A Survey on Virtualization Technologies. Virtualization is “HOT” Microsoft acquires Connectix Corp. EMC acquires VMware Veritas acquires Ejascent IBM,
Virtualization Concepts Presented by: Mariano Diaz.
Virtualization Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation is licensed.
Introduction 1-1 Introduction to Virtual Machines From “Virtual Machines” Smith and Nair Chapter 1.
Disco: Running Commodity Operating Systems on Scalable Multiprocessors Edouard et al. Madhura S Rama.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
Cloud Operating System Unit 09 Cloud OS Core Technology M. C. Chiang Department of Computer Science and Engineering National Sun Yat-sen University Kaohsiung,
Introduction to virtualization
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Full and Para Virtualization
Lecture 12 Virtualization Overview 1 Dec. 1, 2015 Prof. Kyu Ho Park “Understanding Full Virtualization, Paravirtualization, and Hardware Assist”, White.
Introduction Why are virtual machines interesting?
Protection of Processes Security and privacy of data is challenging currently. Protecting information – Not limited to hardware. – Depends on innovation.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
CSE 451: Operating Systems Winter 2015 Module 25 Virtual Machine Monitors Mark Zbikowski Allen Center 476 © 2013 Gribble, Lazowska,
Cloud Computing – UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary->
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
Virtualization Neependra Khare
1 Virtualization "Virtualization software makes it possible to run multiple operating systems and multiple applications on the same server at the same.
CS 695 Topics in Virtualization and Cloud Computing, Autumn 2012 CS 695 Topics in Virtualization and Cloud Computing More Introduction + Processor Virtualization.
Virtualization for Cloud Computing
A move towards Greener Planet
Introduction to Virtualization
Virtualization.
Virtual Machine Monitors
Virtualization Technology
Operating System & Application Software
Virtualization Dr. Michael L. Collard
Virtual Machines: Versatile Platforms for Systems and Processes
Unit OS2: Operating System Principles
Virtual Servers.
OS Virtualization.
Virtualization Techniques
A Survey on Virtualization Technologies
Virtual Machines (Introduction to Virtual Machines)
Virtual machines benefits
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Introduction to Virtual Machines
Introduction to Virtual Machines
Virtualization Dr. S. R. Ahmed.
CSE 451: Operating Systems Autumn Module 24 Virtual Machine Monitors
Hypervisor A hypervisor or virtual machine monitor (VMM) is computer software, firmware or hardware that creates and runs virtual machines. A computer.
Presentation transcript:

IT344 – Operating Systems Winter 2011, Dale Rowe

IT344: Operating Systems Winter : Virtualization Dale Rowe 265C CTB Office Hours: Wed 10:00 – 11:00 Thurs 9:00 – 11:00 Fri 10:00 – 12:00 TA: Wade Boden (Tues: 9-11, Thurs 9-11, Fri 10-2)

Administrative This week’s labs: Wrap up! Last day for late lab submissions. Next week: Case study presentations (Mon/Weds in class) – all be ready to present on Monday. Next week’s labs: BYOOS Presentations. (Slide 8)

Virtualization Was first developed in 1960’s for more efficient use of mainframes. Abandoned in 1980’s-1990’s as PC’s became cheap, “distributed” computing. Rebirth in 1990’s on the x86 architecture.

Major Events 2003: Microsoft acquires Connectix  Microsoft Virtual PC 6 months later 2004: EMC Corporation acquires VMWare $635M 2004: Veritas acquires Ejascent $59M IBM was a pioneer in the ‘60’s 2006: Virtual PC 2006 and VMWare Server go ‘free’ 2006: HP – Integrity Virtual Machines 2006: Virtual Iron (bare metal) 2006: Wyse introduces VDI 2007: innoTek releases VirtualBox Open Source

Major Events 2007: Sun ‘Solaris 8 Containers’ (run Solaris 8 in Solaris 10). 2008: DirectX and OpenGL available to VM Platforms. 2008: Sun buys innoTek 2008: Microsoft release HyperV (free) 2008: Microsoft release AppV 2009: Microsoft release Windows Server 2008R2 – first MS OS to run on Hypervisor 2009: Microsoft release HyperV R2 and Virtual Machine Manager : VMM 2008R2

What is Virtualization? Real vs. Virtual – Similar essence, effect – ”Formally” different A framework that combines or divides [computing] resources to present a transparent view of one or more environments – Hardware/software partitioning (or aggregation) – Partial or complete machine simulation – Emulation (again, can be partial or complete) – Time-sharing (in fact, sharing in general) – In general, can be M-to-N mapping (M “real” resources, N “virtual” resources) – Examples: VM (M-N), Grid Computing (M-1), Multitasking (1-N)

Why? Server consolidation Application Consolidation Sandboxing Multiple execution environments Virtual hardware Debugging Software migration (Mobility) Appliance (software) Testing/Quality Assurance

Implementation Issues Only one “bare” machine interface Virtualizable Architecture “A virtualizable architecture allows any instruction inspecting/modifying machine state to be trapped when executed in any but the most privileged mode” - Popek & Goldberg (1974) x86 required complex software as was not natively supportive of virtualization. (Intel VT-X/VT-I/VT-D/AMD-V) Hard to optimize [from below] – Unused memory pages – Idle CPU Difficult to know what NOT to do – Example: Page faults (VMM), System Calls (OS level)

HARDWARE KERNEL USER LEVEL LIBRARIES APPLICATIONS API Calls System Calls Instructions User Space Kernel Space Machines: Stacked Architecture

Possible Abstraction Levels Instruction Set Architecture – Emulate the ISA in software Interprets, translates to host ISA (if required) Device abstractions implemented in software Inefficient – Optimizations: Caching? Code reorganization? – Applications: Debugging, Teaching, multiple OS Hardware Abstraction Layer (HAL) – Ring Compression – Between “real machine” and “emulator” (maps to real hardware) – Handling non-virtualizable architectures (scan, insert code?) – Applications: Fast and usable, virtual hardware (in above too), consolidation, migration

Possible Abstraction Levels cont’d Operating System Level – Virtualized SysCall Interface (may be same) – May or may not provide all the device abstractions – Easy to manipulate (create, configure, destroy) Library (user-level API) Level – Presents a different subsystem API to application – Complex implementation, if kernel API is limited – User-level device drivers Application (Programming Language) Level – Virtual architecture (ISA, registers, memory, …) – Platform-independence (  highly portable) – Less control on the system (extremely high-level)

Overall Picture ISAHALOSLibraryPL Performance************** Flexibility************* Ease of Impl ********** Degree of Isolation************** (more stars are better)

Instruction Set Architecture Level Virtualization Technologies – Emulation: Translates guest ISA to native ISA – Emulates h/w specific IN/OUT instructions to mimic a device – Translation Cache: Optimizes emulation by making use of similar recent instructions – Code rearrangement – Speculative scheduling (alias hardware) Issues – Efficient Exception handling – Self-modifying code

ISA Level Virtualization: Examples Bochs: Open source x86 emulator – Emulates whole PC environment x86 processor and most of the hardware (VGA, disk, keyboard, mouse, …) Custom BIOS, emulation of power-up, reboot Host ISAs: x86, PowerPC, Alpha, Sun, and MIPS Crusoe (Transmeta) – “Code morphing engine” – dynamic x86 emulator on VLIW processor – 16 MB “translation cache” – Shadow registers: Enables easy exception handling QEMU: – Full Implementation Multiple target ISAs: x86, ARM, PowerPC, Sparc Supports self-modifying code Full-software and simulated (using mmap()) MMU – User-space only: Useful for Cross-compilation and cross-debugging

0 VMM Virtualization through Ring Compression user Virtual Machine Monitor (VMM) runs at ring 0 Kernel(s) run at ring 1 Requires that CPU is virtualizable kernel

HAL Virtualization Techniques Standalone vs. Hosted – Drivers – Host and VMM worlds – I/O Protection Rings – Multilevel privilege domains Handling “silent” fails – Scan code and insert/replace artificial traps – Cache results to optimize

HyperV Architecture

Classification of processor architectures Strictly virtualizable processor architectures – Can build a VMM based on trap emulation exclusively No software running inside the VM cannot determine the presence of the VMM (short of timing attacks) – Examples: IBM S/390, DEC Compaq Intel Alpha, PowerPC (Non-strictly) virtualizable processor architectures – Trap emulation alone is not sufficient and/or not complete E.g. instructions have different semantics at various levels (sufficient) E.g Some software sequences can determine the presence of the VMM (complete) – Examples: IA-32, IA-64 Non virtualizable processor architectures – Basic component missing (e.g. MMU, …)

VMware Architecture

VMware: I/O Virtualization VMM does not have access to I/O I/O in “host world” – Low level I/O instructions (issued by guest OS) are merged to high-level I/O system calls – VM Application executes I/O SysCalls VM Driver works as the communication link between VMM and VM Application World switch needs to “save” and “restore” machine state Additional techniques to increase efficiency