Xen Live Migration. Networks and Distributed Systems Seminar, 24 April 2006. Matúš Harvan Xen Live Migration 1



Similar documents
A Migration of Virtual Machine to Remote System

Live Migration of Virtual Machines in Cloud

Xen and the Art of. Virtualization. Ian Pratt

A SURVEY ON VIRTUALIZATION TECHNOLOGY IN CLOUD COMPUTING

COS 318: Operating Systems. Virtual Machine Monitors

Enabling Technologies for Distributed Computing

INFO5010 Advanced Topics in IT: Cloud Computing

Dynamic Load Balancing of Virtual Machines using QEMU-KVM

Models For Modeling and Measuring the Performance of a Xen Virtual Server

Performance Isolation of a Misbehaving Virtual Machine with Xen, VMware and Solaris Containers

How To Compare Performance Of A Router On A Hypervisor On A Linux Virtualbox 2.5 (Xen) To A Virtualbox (Xeen) Xen-Virtualization (X

Enabling Technologies for Distributed and Cloud Computing

Virtual Machine Migration with an Open Source Hypervisor

Migration of Virtual Machines for Better Performance in Cloud Computing Environment

A Novel Method for Resource Allocation in Cloud Computing Using Virtual Machines

Full and Para Virtualization

Downtime Analysis of Virtual Machine Live Migration

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

Live and Incremental Whole-System Migration of Virtual Machines Using Block-Bitmap

Infrastructure as a Service (IaaS)

Virtualization. Dr. Yingwu Zhu

The Xen of Virtualization

A Survey Paper: Cloud Computing and Virtual Machine Migration

Virtualization. Nelson L. S. da Fonseca IEEE ComSoc Summer Scool Trento, July 9 th, 2015

Comparing Free Virtualization Products

vsphere Networking ESXi 5.0 vcenter Server 5.0 EN

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Windows Server 2008 R2 Hyper-V Live Migration

Xen and the Art of Distributed Virtual Machine Management

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

Chapter 14 Virtual Machines

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

A Hybrid Approach To Live Migration Of Virtual Machines

Bosch Video Management System High Availability with Hyper-V

IOS110. Virtualization 5/27/2014 1

Virtualization. Types of Interfaces

Virtualizare sub Linux: avantaje si pericole. Dragos Manac

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

vsphere Networking vsphere 6.0 ESXi 6.0 vcenter Server 6.0 EN

How To Create A Cloud Based System For Aaas (Networking)

4-2 A Load Balancing System for Mitigating DDoS Attacks Using Live Migration of Virtual Machines

COS 318: Operating Systems. Virtual Machine Monitors

Virtualization. Pradipta De

Google

Virtual Switching Without a Hypervisor for a More Secure Cloud

1 Data Center Infrastructure Remote Monitoring

I/O Virtualization Using Mellanox InfiniBand And Channel I/O Virtualization (CIOV) Technology

Microsoft SQL Server 2012 on Cisco UCS with iscsi-based Storage Access in VMware ESX Virtualization Environment: Performance Study

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

vsphere Networking vsphere 5.5 ESXi 5.5 vcenter Server 5.5 EN

Black-box and Gray-box Strategies for Virtual Machine Migration

Windows Server 2008 R2 Hyper-V Live Migration

Virtualization Technologies (ENCS 691K Chapter 3)

Dynamic resource management for energy saving in the cloud computing environment

VMWARE VSPHERE 5.0 WITH ESXI AND VCENTER

VMware vsphere 5.1 Advanced Administration

Operating Systems Virtualization mechanisms

Resource Availability Based Performance Benchmarking of Virtual Machine Migrations

Is Virtualization Killing SSI Research?

Microkernels, virtualization, exokernels. Tutorial 1 CSC469

Enterprise-Class Virtualization with Open Source Technologies

Virtualization Technology. Zhiming Shen

Feature Comparison. Windows Server 2008 R2 Hyper-V and Windows Server 2012 Hyper-V

IOmark- VDI. HP HP ConvergedSystem 242- HC StoreVirtual Test Report: VDI- HC b Test Report Date: 27, April

Preparation Guide. How to prepare your environment for an OnApp Cloud v3.0 (beta) deployment.

ZEN LOAD BALANCER EE v3.02 DATASHEET The Load Balancing made easy

Virtualization of the MS Exchange Server Environment

Windows Server 2012 R2 Hyper-V: Designing for the Real World

Data Centers and Cloud Computing

Chapter 2 Addendum (More on Virtualization)

CLOUD COMPUTING. Virtual Machines Provisioning and Migration Services Mohamed El-Refaey

ZEN LOAD BALANCER EE v3.04 DATASHEET The Load Balancing made easy

VMware vsphere Design. 2nd Edition

Remus: High Availability via Asynchronous Virtual Machine Replication

Virtual Machine Dynamic Provision and Image Management for UniCloud

Best Practices for Monitoring Databases on VMware. Dean Richards Senior DBA, Confio Software

What s New with VMware Virtual Infrastructure

Dynamic memory Allocation using ballooning and virtualization in cloud computing

Network Virtualization: Delivering on the Promises of SDN. Bruce Davie, Principal Engineer

Intro to Virtualization

A Dynamic Resource Management with Energy Saving Mechanism for Supporting Cloud Computing

2972 Linux Options and Best Practices for Scaleup Virtualization

Basics of Virtualisation

VMware vsphere 5.0 Boot Camp

Transcription:

Xen Live Migration Matúš Harvan Networks and Distributed Systems Seminar, 24 April 2006 Matúš Harvan Xen Live Migration 1

Outline 1 Xen Overview 2 Live migration General Memory, Network, Storage Migration Overview Writable Working Set Evaluation Matúš Harvan Xen Live Migration 2

Virtualization abstraction layer that decouples hardware full virtualization guests are presented with a virtual machine identical to the real hardware paravirtualization presenting a virtual machine abstraction, not identical to the underlying hardware, offering a special API several solutions/products available (VMware, User-Mode Linux, Xen) Matúš Harvan Xen Live Migration 3

Xen Xen Hypervisor virtual machine monitor paravirtualization provides idealized virtual machine abstraction allows for high performance virtualization operating systems have to be ported to Xen Matúš Harvan Xen Live Migration 4

Xen domains Xen hypervisor only basic control operations, exported to authorized domains complex policy decisions performed in a guest OS in a domain domain0 special management domain with additional privileges device drivers creates and manages domus domu guest domus access only simple, virtualized hardware abstractions possible to give a domu access to specific PCI devices so that a device driver would run in a domu rather than domain0 Matúš Harvan Xen Live Migration 5

Xen Details CPU level protection using x86 CPU rings CPU ensures that the domains have to use the Xen hypervisor to do privileged operations memory memory allocations from a reserved pool page table updates validated by hypervisor Device I/O real hardware handled by device drivers in domain0 Xen exports a simple abstraction interface for domus to use devices I/O data transferred using shared-memory, asynchronous buffer-descriptor rings interrupts replaced with a lightweight event-delivery mechanism Matúš Harvan Xen Live Migration 6

Device I/O Virtual Network Interfaces creation and deletion validated by Xen filtering rules - changes validated by Xen prevent source address spoofing Virtual Block Device associated access-control information (which domain) and restrictions (i.e. read-only) Matúš Harvan Xen Live Migration 7

Live Migration migrating whole OS with running applications (kernel-internal state and application-level) rather than single processes avoid residual dependencies clusters, data centers load balancing, hardware maintenance separation of concern between users and operators (no need for operators to access domus) Matúš Harvan Xen Live Migration 8

Live Migration minimize downtime service unavailable as no currently executing VM available total migration time duration from migration initiation to being able to discard original VM disruption of active services through resource contention (CPU, network bandwidth) virtual machine encapsulates access to HW memory network (disk) storage Matúš Harvan Xen Live Migration 9

Memory Possible approaches for memory transfer: Push phase The source VM continues running while certain pages are pushed across the network to the new destination. To ensure consistency, pages modified during this process must be re-sent. Stop-and-copy phase The source VM is stopped, pages are copied across to the destination VM, then the new VM is started. Pull phase The new VM executes and, if it accesses a page that has not yet been copied, this page is faulted in (pulled) across the network from the source VM. Matúš Harvan Xen Live Migration 10

Memory Xen uses a pre-copy phase iteratively copying modified pages in rounds, then stops VM and copies remaining memory pages (stop-and-copy phase) dynamic rate-limiting algorithm to minimize resource contention and decide when to end pre-copy phase and enter stop-and-copy phase Matúš Harvan Xen Live Migration 11

Network connections maintain all open network connections without relying on forwarding mechanisms on the original host migrated VM keeps protocol state and IP address, advertising that the IP address has moved generate an unsolicited ARP reply after migration some routers do not accept broadcast ARP replies can send directed replies only to entries in its own ARP cache alternatively, keep original MAC address, network switch has to figure out it moved to a different port works only within a single switched LAN wide-area network migration not supported Matúš Harvan Xen Live Migration 12

Storage local-disk storage not migrated need network-attached storage (NAS), e.g. iscsi uniformly accessible from all hosts in the cluster alternative for experimenting: ram disk Matúš Harvan Xen Live Migration 13

Migration Overview at any time at least one host has a consistent VM image migration process is viewed as a transactional interaction between two hosts VM not exposed more to system failure than when running on original single host Matúš Harvan Xen Live Migration 14

Migration Overview Figure: Migration timeline [2] Matúš Harvan Xen Live Migration 15

Writable Working Set pre-copy migration of not so often modified pages rapidly modified pages get transferred after VM is stopped writable working set (WWS) pages modified so often that it does not make sense to move them during pre-copy phase using Xen s shadow page tables to trace WWS performed several experiments with different benchmarks to track WWS conclusions: pre-copy migration performs better than a naive stop-and-copy decreased downtime, but diminishing returns w.r.t. increasing number of iterations hottest pages dirtied faster than transferred limit on minimum possible downtime makes sense to increase bandwidth limit for later (and shorter) rounds Matúš Harvan Xen Live Migration 16

Dynamic Rate-Limiting dynamically adapt the bandwidth limit during each pre-copying round administrator selects a minimum and maximum first round uses minimum bandwidth further rounds increase bandwidth limit by certain amount (50Mbit/sec empirically found) terminate pre-copying when calculated bandwidth limit greater then maximum or less than 256KB remains to transfer final stop-and-copy uses maximum bandwidth for memory transfer to minimize downtime bandwidth remains low while transferring most pages, increasing only at the end for the hottest pages balances short downtime with low average network contention and CPU usage rapid page dirtying page transferred if modified during previous round, but not during this round (otherwise likely to be modified again) Matúš Harvan Xen Live Migration 17

Paravirtualized Optimizations Stunning Rogue Processes monitor WWS of individual processes limit each process to 40 write faults Freeing Page Cache Pages return free and cold buffer pages to Xen rather than migrating them Matúš Harvan Xen Live Migration 18

Evaluation Simple Web Server Figure: Migrating a running web server VM[2] Apache 1.3 web server serving a static 512KB file 165ms downtime Matúš Harvan Xen Live Migration 19

Evaluation Complex Web Workload: SPECweb99 Figure: Migrating a running SPECweb VM[2] running at 90% of maximum load 210ms downtime no decrease in number of conformant clients Matúš Harvan Xen Live Migration 20

Evaluation Low-Latency Server: Quake 3 Figure: Migrating a running Quake3 VM[2] VM with 64MB of memory, network game with six players downtime of 60ms, observed as a 50ms increase in response time not noticed by players Matúš Harvan Xen Live Migration 21

Evaluation A Diabolic Workload: MMuncher Figure: Migrating a VM running a diabolical workload[2] VM with 512MB of memory, C program constantly writing to a 256MB memory region downtime of 3.5s rare in real workloads Matúš Harvan Xen Live Migration 22

Further Work Cluster Management develop cluster control software capable of making informed decisions for placement and movement of VMs Wide Are Network Redirection layer 2 redirection not possible outside a local subnet use Mobile IP connection migration at TCP level use Dynamic DNS to locate host after move Migrating Block Devices total migration time would be significantly extended if transferring a complete local disk mirroring disk contents on remote hosts RAID system across several machines, multiple hosts acting as storage target for one another copy-on-write filesystems Matúš Harvan Xen Live Migration 23

Conclusion live OS migration with Xen SPECweb99 210ms downtime Quake3 60ms downtime dynamic bandwidth adaptation minimizes impact on running services while minimizing total downtime below discernable thresholds suitable for well-connected data-center or cluster with network-accessed storage Matúš Harvan Xen Live Migration 24

References P. Barham, B. Dragovic, K. Fraser, S. Hand, T. Harris, A. Ho, R. Neugebauer, I. Pratt, and A. Warfield Xen and the Art of Virtualization In Proceedings of the 19th ACM Symposium on Operating Systems Principles, October 2003. C. Clark, K. Fraser, S. Hand, J. G. Hansen, E. Jul, C. Kimpach, I. Pratt, and W. Warfield Live Migration of Virtual Machines In 2nd USENIX Symposium on Networked Systems, Design and Implementation (NSDI 05), pages 273286, May 2005. Matúš Harvan Xen Live Migration 25