Virtualization. Types of Interfaces

Similar documents
Uses for Virtual Machines. Virtual Machines. There are several uses for virtual machines:

COS 318: Operating Systems. Virtual Machine Monitors

Virtualization. Pradipta De

Full and Para Virtualization

Distributed and Cloud Computing

Basics in Energy Information (& Communication) Systems Virtualization / Virtual Machines

Virtualization. Jia Rao Assistant Professor in CS

COM 444 Cloud Computing

Virtual Machines. COMP 3361: Operating Systems I Winter

Chapter 16: Virtual Machines. Operating System Concepts 9 th Edition

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Virtualization. Jukka K. Nurminen

Virtualization. Dr. Yingwu Zhu

Virtual Machine Monitors. Dr. Marc E. Fiuczynski Research Scholar Princeton University

Anh Quach, Matthew Rajman, Bienvenido Rodriguez, Brian Rodriguez, Michael Roefs, Ahmed Shaikh

The Art of Virtualization with Free Software

Virtualization Technology. Zhiming Shen

Virtual Machines. Virtualization

Data Centers and Cloud Computing. Data Centers. MGHPCC Data Center. Inside a Data Center

Cloud Computing CS

VMware Server 2.0 Essentials. Virtualization Deployment and Management

CPET 581 Cloud Computing: Technologies and Enterprise IT Strategies. Virtualization of Clusters and Data Centers

Virtualization and the U2 Databases

Data Centers and Cloud Computing. Data Centers

Hypervisors and Virtual Machines

Hypervisors. Introduction. Introduction. Introduction. Introduction. Introduction. Credits:

Distributed Systems. Virtualization. Paul Krzyzanowski

nanohub.org An Overview of Virtualization Techniques

Cloud Computing #6 - Virtualization

IOS110. Virtualization 5/27/2014 1

Virtualization Technologies

COS 318: Operating Systems. Virtual Machine Monitors

Virtualization Technologies and Blackboard: The Future of Blackboard Software on Multi-Core Technologies

Enabling Technologies for Distributed Computing

Cloud Architecture and Virtualisation. Lecture 4 Virtualisation

Clouds Under the Covers. Elgazzar - CISC Fall

Xen and the Art of. Virtualization. Ian Pratt

Introduction to Virtual Machines

Hypervisor Software and Virtual Machines. Professor Howard Burpee SMCC Computer Technology Dept.

Understanding Full Virtualization, Paravirtualization, and Hardware Assist. Introduction...1 Overview of x86 Virtualization...2 CPU Virtualization...

Virtualization. ! Physical Hardware. ! Software. ! Isolation. ! Software Abstraction. ! Encapsulation. ! Virtualization Layer. !

Lecture 2 Cloud Computing & Virtualization. Cloud Application Development (SE808, School of Software, Sun Yat-Sen University) Yabo (Arber) Xu

Introduction to Virtualization

Enabling Technologies for Distributed and Cloud Computing

Virtualization. Michael Tsai 2015/06/08

Basics of Virtualisation

VMware and CPU Virtualization Technology. Jack Lo Sr. Director, R&D

RPM Brotherhood: KVM VIRTUALIZATION TECHNOLOGY

Cloud^H^H^H^H^H Virtualization Technology. Andrew Jones May 2011

A cure for Virtual Insanity: A vendor-neutral introduction to virtualization without the hype

Virtualization with Windows

Cloud Computing. Dipl.-Wirt.-Inform. Robert Neumann

Networking for Caribbean Development

Virtual Machines Fact Sheet

Outline. Outline. Why virtualization? Why not virtualize? Today s data center. Cloud computing. Virtual resource pool

kvm: Kernel-based Virtual Machine for Linux

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Virtual machines and operating systems

Solaris Virtualization and the Xen Hypervisor Frank Hofmann

Chapter 14 Virtual Machines

Knut Omang Ifi/Oracle 19 Oct, 2015

Practical Applications of Virtualization. Mike Phillips IAP 2008 SIPB IAP Series

Virtualization Overview

Data Centers and Cloud Computing

Virtualization. Explain how today s virtualization movement is actually a reinvention

Virtualization: What does it mean for SAS? Karl Fisher and Clarke Thacher, SAS Institute Inc., Cary, NC

Virtualization for Cloud Computing

Virtualization. Introduction to Virtualization Virtual Appliances Benefits to Virtualization Example Virtualization Products

OPEN SOURCE VIRTUALIZATION TRENDS. SYAMSUL ANUAR ABD NASIR Warix Technologies / Fedora Community Malaysia

How To Understand The Power Of A Virtual Machine Monitor (Vm) In A Linux Computer System (Or A Virtualized Computer)

CSE 501 Monday, September 09, 2013 Kevin Cleary

Virtual Machines.

Regional SEE-GRID-SCI Training for Site Administrators Institute of Physics Belgrade March 5-6, 2009

Comparing Virtualization Technologies

Analysis of Virtualization Tools and Techniques

Virtualization Concepts And Applications. Yash Jain DA-IICT (DCOM Research Group)

Intel s Virtualization Extensions (VT-x) So you want to build a hypervisor?

Virtualization and Other Tricks.

Virtualization Technologies (ENCS 691K Chapter 3)

Introduction to Virtualization & KVM

PERFORMANCE ANALYSIS OF KERNEL-BASED VIRTUAL MACHINE

9/26/2011. What is Virtualization? What are the different types of virtualization.

Satish Mohan. Head Engineering. AMD Developer Conference, Bangalore

KVM KERNEL BASED VIRTUAL MACHINE

Chapter 5 Cloud Resource Virtualization

How To Virtualize A Computer System

Introduction to Virtual Machines

Virtualization VMware Inc. All rights reserved

Enterprise-Class Virtualization with Open Source Technologies

Virtualization Technology

Hardware Based Virtualization Technologies. Elsie Wahlig Platform Software Architect

CS 695 Topics in Virtualization and Cloud Computing. More Introduction + Processor Virtualization

x86 ISA Modifications to support Virtual Machines

Virtualization in Linux KVM + QEMU

Compromise-as-a-Service

Virtualization. P. A. Wilsey. The text highlighted in green in these slides contain external hyperlinks. 1 / 16

Virtualization Technology. Zhonghong Ou Data Communications Software Lab, Aalto University

Transcription:

Virtualization Virtualization: extend or replace an existing interface to mimic the behavior of another system. Introduced in 1970s: run legacy software on newer mainframe hardware Handle platform diversity by running apps in VMs Portability and flexibility Lecture 4, page 17 Types of Interfaces Different types of interfaces Assembly instructions System calls APIs Depending on what is replaced /mimiced, we obtain different forms of virtualization Lecture 4, page 18

Types of Virtualization Emulation VM emulates/simulates complete hardware Unmodified guest OS for a different PC can be run Bochs, VirtualPC for Mac, QEMU Full/native Virtualization VM simulates enough hardware to allow an unmodified guest OS to be run in isolation Same hardware CPU IBM VM family, VMWare Workstation, Parallels, Lecture 4, page 19 Types of virtualization Para-virtualization VM does not simulate hardware Use special API that a modified guest OS must use Hypercalls trapped by the Hypervisor and serviced Xen, VMWare ESX Server OS-level virtualization OS allows multiple secure virtual servers to be run Guest OS is the same as the host OS, but appears isolated apps see an isolated OS Solaris Containers, BSD Jails, Linux Vserver Application level virtualization Application is gives its own copy of components that are not shared (E.g., own registry files, global objects) - VE prevents conflicts JVM, Rosetta on Mac (also emulation), WINE Lecture 4, page 20

Types of Hypervisors Type 1: hypervisor runs on bare metal Type 2: hypervisor runs on a host OS Guest OS runs inside hypervisor Both VM types act like real hardware Lecture 4, page 21 How Virtualization works? CPU supports kernel and user mode (ring0, ring3) Set of instructions that can only be executed in kernel mode I/O, change MMU settings etc -- sensitive instructions Privileged instructions: cause a trap when executed in kernel mode Result: type 1 virtualization feasible if sensitive instruction subset of privileged instructions Intel 386: ignores sensitive instructions in user mode Can not support type 1 virtualization Recent Intel/AMD CPUs have hardware support Intel VT, AMD SVM Create containers where a VM and guest can run Hypervisor uses hardware bitmap to specify which inst should trap Sensitive inst in guest traps to hypervisor Lecture 4, page 22

Type 1 hypervisor Unmodified OS is running in user mode (or ring 1) But it thinks it is running in kernel mode (virtual kernel mode) privileged instructions trap; sensitive inst-> use VT to trap Hypervisor is the real kernel Upon trap, executes privileged operations Or emulates what the hardware would do Lecture 4, page 23 Type 2 Hypervisor VMWare example Upon loading program: scans code for basic blocks If sensitive instructions, replace by Vmware procedure Binary translation Cache modified basic block in VMWare cache Execute; load next basic block etc. Type 2 hypervisors work without VT support Sensitive instructions replaced by procedures that emulate them. Lecture 4, page 24

Paravirtualization Both type 1 and 2 hypervisors work on unmodified OS Paravirtualization: modify OS kernel to replace all sensitive instructions with hypercalls OS behaves like a user program making system calls Hypervisor executes the privileged operation invoked by hypercall. Lecture 4, page 25 Virtual machine Interface Standardize the VM interface so kernel can run on bare hardware or any hypervisor Lecture 4, page 26

Memory virtualization OS manages page tables Create new pagetable is sensitive -> traps to hypervisor hypervisor manages multiple OS Need a second shadow page table OS: VM virtual pages to VM s physical pages Hypervisor maps to actual page in shadow page table Two level mapping Need to catch changes to page table (not privileged) Change PT to read-only - page fault Paravirtualized - use hypercalls to inform Lecture 4, page 27 I/O Virtualization Each guest OS thinks it owns the disk Hypervisor creates virtual disks Large empty files on the physical disk that appear as disks to the guest OS Hypervisor converts block # to file offset for I/O DMA need physical addresses Hypervisor needs to translate Lecture 4, page 28

Examples Application-level virtualization: process virtual machine VMM /hypervisor Lecture 4, page 29 Virtual Appliances & Multi-Core Virtual appliance: pre-configured VM with OS/ apps pre-installed Just download and run (no need to install/comfigure) Software distribution using appliances Multi-core CPUs Run multiple VMs on multi-core systems Each VM assigned one or more vcpu Mapping from vcpus to physical CPUs Lecture 4, page 30

Use of Virtualization Today Data centers: server consolidation: pack multiple virtual servers onto a smaller number of physical server saves hardware costs, power and cooling costs Cloud computing: rent virtual servers cloud provider controls physical machines and mapping of virtual servers to physical hosts User gets root access on virtual server Desktop computing: Multi-platform software development Testing machines Run apps from another platform Lecture 4, page 31 Case Study: PlanetLab Distributed cluster across universities Used for experimental research by students and faculty in networking and distributed systems Uses a virtualized architecture Linux Vservers Node manager per machine Obtain a slice for an experiment: slice creation service Lecture 5, page