Cloud^H^H^H^H^H Virtualization Technology. Andrew Jones (drjones@redhat.com) May 2011



Similar documents
Full and Para Virtualization

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

Virtualization Technology. Zhiming Shen

Architecture of the Kernel-based Virtual Machine (KVM)

RPM Brotherhood: KVM VIRTUALIZATION TECHNOLOGY

KVM KERNEL BASED VIRTUAL MACHINE

Virtualization. Types of Interfaces

Introduction to Virtualization & KVM

Advanced Computer Networks. Network I/O Virtualization

Virtual Machines. COMP 3361: Operating Systems I Winter

Virtualization. Pradipta De

BHyVe. BSD Hypervisor. Neel Natu Peter Grehan

KVM: A Hypervisor for All Seasons. Avi Kivity avi@qumranet.com

kvm: Kernel-based Virtual Machine for Linux

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

Virtualization: Know your options on Ubuntu. Nick Barcet. Ubuntu Server Product Manager

Using Linux as Hypervisor with KVM

Performance tuning Xen

2972 Linux Options and Best Practices for Scaleup Virtualization

COS 318: Operating Systems. Virtual Machine Monitors

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Virtualization. Jia Rao Assistant Professor in CS

KVM: Kernel-based Virtualization Driver

Virtualization Technologies

Virtualization. Dr. Yingwu Zhu

Virtualization in Linux KVM + QEMU

KVM Architecture Overview

The QEMU/KVM Hypervisor

Virtual Machines. Virtualization

Virtualization and Performance NSRC

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

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

Introduction to Virtual Machines

Beyond the Hypervisor

KVM on S390x. Revolutionizing the Mainframe

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

Intel Virtualization Technology Overview Yu Ke

Cloud Computing CS

Nested Virtualization

Nested Virtualization

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

Compromise-as-a-Service

Virtualization VMware Inc. All rights reserved

Hypervisors and Virtual Machines

RED HAT ENTERPRISE VIRTUALIZATION & CLOUD COMPUTING

Brian Walters VMware Virtual Platform. Linux J. 1999, 63es, Article 6 (July 1999).

Basics of Virtualisation

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

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

Hardware Based Virtualization Technologies. Elsie Wahlig Platform Software Architect

IOS110. Virtualization 5/27/2014 1

Enterprise-Class Virtualization with Open Source Technologies

Knut Omang Ifi/Oracle 19 Oct, 2015

A quantitative comparison between xen and kvm

Scaling Microsoft Exchange in a Red Hat Enterprise Virtualization Environment

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM

SUSE Virtualization Technologies Roadmap

Nested Virtualization

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

Virtualization System Vulnerability Discovery Framework. Speaker: Qinghao Tang Title:360 Marvel Team Leader

The Art of Virtualization with Free Software

Xen Project 4.4: Features and Futures. Russell Pavlicek Xen Project Evangelist Citrix Systems

Networking for Caribbean Development

Intro to Virtualization

Installing & Using KVM with Virtual Machine Manager COSC 495

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

Virtualization. Jukka K. Nurminen

OS Virtualization Frank Hofmann

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

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

Distributed Systems. Virtualization. Paul Krzyzanowski

NoHype: Virtualized Cloud Infrastructure without the Virtualization

Virtualization for Cloud Computing

Virtualization benefits Introduction to XenSource How Xen is changing virtualization The Xen hypervisor architecture Xen paravirtualization

Virtualization with Windows

Virtual machines and operating systems

Panoramica su Cloud Computing targata Red Hat AIPSI Meeting 2010

VMware Server 2.0 Essentials. Virtualization Deployment and Management

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

Virtualization Overview

Professional Xen Visualization

Data Centers and Cloud Computing

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

IBM. Kernel Virtual Machine (KVM) Best practices for KVM

RCL: Software Prototype

KVM Virtualization Roadmap and Technology Update

RED HAT ENTERPRISE VIRTUALIZATION

Distributed and Cloud Computing

Developing a dynamic, real-time IT infrastructure with Red Hat integrated virtualization

COS 318: Operating Systems. Virtual Machine Monitors

VIRTUALIZATION 101. Brainstorm Conference 2013 PRESENTER INTRODUCTIONS

CSE 501 Monday, September 09, 2013 Kevin Cleary

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

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

How To Make A Minecraft Iommus Work On A Linux Kernel (Virtual) With A Virtual Machine (Virtual Machine) And A Powerpoint (Virtual Powerpoint) (Virtual Memory) (Iommu) (Vm) (

Securing Your Cloud with Xen Project s Advanced Security Features

Transcription:

Cloud^H^H^H^H^H Virtualization Technology Andrew Jones (drjones@redhat.com) May 2011

Outline Promise to not use the word Cloud again...but still give a couple use cases for Virtualization Emulation it's not just for games The x86 arch The Dark Ages (before Virt extensions) The Age of Reason (after VT-x / AMD-V) x86 Hypervisors aka why Red Hat likes KVM Quiz Q/A 2

Virtualization: a couple use cases Disk space always too little or too much... Hot plug (without the trip to the server room...) Logical volumes, sparse files (allow over committing) Your mistakes never happened snapshots The new App (Appliances vs. Applications) Debugging kernel code (even HV code? nested virt) Primarily for a word that starts with 'C' No, not Cloud. Consolidation and also for Competitions of uptime (err... RAS) RAS - Reliability, Availability and Serviceability 3

Emulation Not another abstraction layer, but rather a layer of indirection Slipped between well defined abstraction layers (ABI) Some uses: Hardware ahead of software Software ahead of hardware Hardware is just different Support Virtualization BIOS Serial PCI, USB busses 4

x86 Proliferation Maybe not the best instruction set or design, but... Cheap home computers and notebooks Cheap computer labs in schools Cheap servers Cheap clusters for parallel processing Comes with an excellent OS Linux! Which is even free What could be better? All that plus free Virtualization too, of course 5

x86 Virtualization The Dark Ages 1998 VMWare: Binary translation Performance is limited (must read all VM binary code) Not open source 2003 Xen: Paravirt Open source Requires modified guest kernel code (hypercalls) 6

x86 Virtualization The Age of Reason (2005) VT-x and AMD-V New Guest mode VMLAUNCH/VMRESUME Instructions that should trap (privops), now do trap VMEXIT Guest page tables Round 1: Shadowed in the hypervisor Round 2: vmmu (HAP Hardware Assisted Paging) Intel EPT (Extended Page Tables), AMD RVI (Rapid Virt Indexing) ASID (Address Space ID) for TLB sharing Guest Device Access IOMMU (DMA), Device Assignment, SR-IOV x2apic Virt interrupt controller 7

Hypervisors Deal with guest privops Binary translation Paravirt VMEXITs Schedule VMs Manage guest memory Both shadow and HPA need support Grant access to I/O resources Implement core VM management (e.g. launch a VM) Extended management done in userspace (libvirt) 8

Hypervisors What they don't generally do Implement a console Implement I/O and network stacks No I/O? A useless guest? Bring back the emulator But emulation has poor performance... Bring back paravirt Device assignment (IOMMU, SR-IOV) Even both at the same time 9

KVM - Kernel-based Virtual Machine Recall HVs need a scheduler and a memory manager They also need to boot (surprise, surprise...) and enable/drive all the hardware And not just the little box you have at home Also machines with hundreds of cores and Terabytes of memory (even NUMA) KVM (released 2007) does all this already Busy Engineers? Yes, but not that busy Linux already does all the above KVM adds the support for Virt extensions 10

KVM Kernel module that can be loaded on your Linux box Launches/manages VMs (vcpus VMCS structures) VM is a Linux QEMU process (Q emulator) qemu-kvm runs the guest image (kernel + userspace) Guest image can use paravirt drivers (VirtIO) Linux memory manager Swap, shared memory, THP (Transparent Huge Pages) KSM (Kernel Samepage Merging) Ballooning Over committing for fun and profit... 11

KVM kvmclock Current work Guest NUMA awareness Always looking for speedup opportunities More security Nested Virt (looks fun) Keep up with the hardware 12

Quiz The name of the game is 'The answer is C' 13

Quiz What language is the kernel and KVM written in? a) PHP b) Lisp c) C d) What's the kernel? What's KVM? 14

Virtualization is Quiz a) the same as abstraction b) abstraction, but also a multiplexer c) a layer of indirection d) Who care's? If it's just virtual, then it's not real anyway... 15

Quiz Virtualization is good for a) Allowing one VM to move around to other machines b) Allowing multiple VMs to run on the same machine c) Both (a) & (b) d) Nothing, why are we talking about it? 16

Quiz If OS is to syscall, Hypervisor is to? a) event b) libcall c) hypercall (hcall) d) call home 17

Quiz When a guest tries to issue a privileged instruction (privop) what happens? a) runs without the privileges b) traps to the OS c) traps to the Hypervisor d) crashes the system, starting a big fire... 18

Paravirtualization means Quiz a) running an unmodified guest b) running a system without virtualization c) running a guest that implements at least some parts with hypervisor-aware mechanisms d) A virtual parachute...ouch 19

Q/A 20

Thank you! Further Questions? drjones@redhat.com 21

Type 1 vs. Type 2 22