Live und in Farbe Live Migration. André Przywara ap@amd64.org CLT 2010



Similar documents
An Oracle Technical White Paper June Oracle VM Windows Paravirtual (PV) Drivers 2.0: New Features

Virtualization with Windows

Enabling Technologies for Distributed Computing

RED HAT ENTERPRISE VIRTUALIZATION

Intro to Virtualization

Parallels Desktop 4 for Windows and Linux Read Me

Basics of Virtualisation

Enabling Technologies for Distributed and Cloud Computing

VIRTUALIZATION 101. Brainstorm Conference 2013 PRESENTER INTRODUCTIONS

Getting the Most Out of Virtualization of Your Progress OpenEdge Environment. Libor Laubacher Principal Technical Support Engineer 8.10.

LiveBackup. Jagane Sundar

FOR SERVERS 2.2: FEATURE matrix

Virtualizare sub Linux: avantaje si pericole. Dragos Manac

Dynamic Load Balancing of Virtual Machines using QEMU-KVM

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


Xen Virtualization: Xen (source) and XenServer

Introduction to KVM. By Sheng-wei Lee #

Distributed Systems. Virtualization. Paul Krzyzanowski

IOS110. Virtualization 5/27/2014 1

Table of Contents. Server Virtualization Peer Review cameron : modified, cameron

Hyper-V vs ESX at the datacenter

The future is in the management tools. Profoss 22/01/2008

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

VMware Server 2.0 Essentials. Virtualization Deployment and Management

SMART Sync 2011 software

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

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE FEATURES

Copyright by Parallels Holdings, Ltd. All rights reserved.

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

friendlyway composer network services server

Comparing Free Virtualization Products

Set Up Panorama. Palo Alto Networks. Panorama Administrator s Guide Version 6.0. Copyright Palo Alto Networks

PassTest. Bessere Qualität, bessere Dienstleistungen!

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

Citrix Application Streaming. Universal Application Packaging and Delivery Breaking Away from Traditional IT

Servervirualisierung mit Citrix XenServer

What s New with VMware Virtual Infrastructure

Selling Virtual Private Servers. A guide to positioning and selling VPS to your customers with Heart Internet

StarWind iscsi SAN: Configuring Global Deduplication May 2012

HAVmS: Highly Available Virtual machine Computer System Fault Tolerant with Automatic Failback and close to zero downtime

Enterprise-Class Virtualization with Open Source Technologies

HRG Assessment: Stratus everrun Enterprise

PARALLELS SERVER BARE METAL 5.0 README

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

Virtualizing a Virtual Machine

Virtualization. Dr. Yingwu Zhu

A Highly Versatile Virtual Data Center Ressource Pool Benefits of XenServer to virtualize services in a virtual pool

Citrix XenServer Product Frequently Asked Questions

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

Monitoring Databases on VMware

Workstation Virtualization Software Review. Matthew Smith. Office of Science, Faculty and Student Team (FaST) Big Bend Community College

Virtualization and Performance NSRC

Upgrading Client Security and Policy Manager in 4 easy steps

VMware Certified Professional 5 Data Center Virtualization (VCP5-DCV) Exam

Citrix XenServer 5.6 Feature Pack 1 Quick Start Guide. Published Monday, 17 January Edition

README.TXT

Silver Peak Virtual Appliances

Xen and the Art of. Virtualization. Ian Pratt

Remus: : High Availability via Asynchronous Virtual Machine Replication

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

A+ Practical Applications Solution Key

Server and Storage Sizing Guide for Windows 7 TECHNICAL NOTES

SUSE Virtualization Technologies Roadmap

Virtualization. Types of Interfaces

Red Hat enterprise virtualization 3.0 feature comparison

RPM Brotherhood: KVM VIRTUALIZATION TECHNOLOGY

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

Virtualization for Cloud Computing

Efficient Load Balancing using VM Migration by QEMU-KVM

Handling Multimedia Under Desktop Virtualization for Knowledge Workers

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

SCO Virtualization Presentation to Customers

SUSE Virtualization Technologies Roadmap

Parallels Cloud Server 6.0 Readme

Version 3.7 Technical Whitepaper

A quantitative comparison between xen and kvm

Imaging Computing Server User Guide

Windows Server 2008 R2 Hyper-V Live Migration

Virtual Systems with qemu

Report on virtualisation technology as used at the EPO for Online Filing software testing

Scaling in a Hypervisor Environment

Parallels Cloud Server 6.0

The Art of Virtualization with Free Software

Architecture of the Kernel-based Virtual Machine (KVM)

Getting Started with VMware Fusion

Running Windows on a Mac. Why?

The Future of Virtualization Technology. Stephen Alan Herrod VP of Technology VMware

Proposal for Virtual Private Server Provisioning

CITRIX 1Y0-A14 EXAM QUESTIONS & ANSWERS

Mitel Virtual Solutions

Virtualization Technology (or how my Windows computer gave birth to a bunch of Linux computers)

KVM: Kernel-based Virtualization Driver

October Gluster Virtual Storage Appliance User Guide

IOmark-VM. DotHill AssuredSAN Pro Test Report: VM a Test Report Date: 16, August

Windows Server 2008 R2 Hyper-V Live Migration

Transcription:

Live und in Farbe Live Migration André Przywara ap@amd64.org CLT 2010

Agenda (Live) Migration explained (Why? Limits!) Xen and KVM usage Details Memory synchronization QEMU device state transfer Host considerations (CPU features) Cross Vendor Migration QEMU block device transfer Project Remus (Xen) Demo!

Guest Migration move a virtual machine from one host to another offline: power down the guest, copy files, restart comparable to a reboot migration: halt the guest, copy state, wake up again minimal downtime live migration: copy state in background, switch at one (almost) no downtime at all

Reasons for migration Load balancing: freeing loaded hosts in favor of idle ones Upgrade / update / planned downtime migrate to a spare machine, rework the host, migrate back to the original one Roaming eternal desktop Uptime, uptime! desktop is running on a server, migrated to the respective client workstation Replacing older machines You name it!

How does it work? Host has full control over the guest Can read/write/protect memory Devices are (usually) also virtualized Host controls CPU usage similar to OS vs. application Steps: host de-schedules the guest host copies memory content over network host copies device state over network old host signals new host to take over

Limits of migration disk images should be accessible through a SAN, NAS, NFS can also be copied / synced (DRBD) no downgrade of CPU features maybe start with features disabled? No device pass-through Network connectivity must prevail Resources should match (memory, vcpus) Matching software versions (devices!)

Xen / KVM usage Xen: via xm tool $ xm migrate <domid> <newhost> xend must be running on both sides KVM: on target: $ qemu incoming tcp:0:<port> on source: via QEMU monitor (qemu) migrate tcp:<host>:<port> Need to have the exact same guest parameters on the command line (management app!)

Memory synchronization Problem: transferring RAM image takes time e.g.: 1GB @ 40 MB/s = 25 sec too long for live migration solution: start copying (in background) write protect already copied pages on page fault: allow r/w again, mark page as dirty repeat: copying dirty pages until no more left number of tries exhausted: halt guest and copy rest 1 2 3' 4

QEMU device state transfer QEMU devices used for Xen and KVM each device has a VMStateDescription describes the data that holds the complete state variables will be dumped to the stream contains version information (backward compatible) QEMU will iterate through all devices sends the device name and instance number executes a pre_save callback function dumps the device' state to the stream (TCP)

QEMU device state dump QEMU magic version stage section ID device name 0000000: 51 45 56 4d 00 00 00 03 01 00 00 00 01 05 62 6c 0000010: 6f 63 6b 00 00 00 00 00 00 00 01 00 00 00 00 00 0000020: 00 00 02 01 00 00 00 03 03 72 61 6d 00 00 00 00 0000030: 00 00 00 03 00 00 00 00 02 87 00 04 00 00 00 00 0000040: 00 00 00 08 01 00 00 00 53 ff 00 f0 c3 e2 00 f0 0000050: 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 53 ff 00 f0 version no. QEVM...bl ock......ram.........s... S...S...S...S... instance no.

QEMU block device transfer Recent QEMUs can transfer the block device No need for a shared storage (qemu) migrate -b tcp:<host>:<port> Can also migrate overlay only (-i) Uses same approach like RAM transfer Works like this: Transfer data in chunks of 1 MB Each chunk is preceded by a 64bit address Allows gaps Each chunk has the block device name in it

Project Remus (Xen) High availability using migration Continuously migrating the guest Avoids slowdown by snapshotting Only commits results when transmitted Snapshot frequency about every 25ms Running machine slightly in the past part of Xen 4.0

Host considerations Applications and libraries rely on a consistent set of CPU features (like SSEx) CPU instruction set may change at migration no downgrade! (loss of a feature) upgrade can be hidden (CPUID masking) least common denominator in a migration pool dictates the feature set of all guests KVM: use -cpu kvm64 migration pool should be well defined before starting the guest

Cross Vendor Migration Migrating from an Intel box to an AMD box (and vice versa ;-) allows for bigger migration pools avoids vendor lock in maps mostly to different CPU generations but subtle differences: x87 FPU rounding on some instructions (e.g. for fsin, deprecated) sysenter/syscall support in compat mode (emulation upstream) slightly different guest state checks (fixed) Model specific registers (MSRs) (fixed) Both Xen and KVM support it now!

Demo! Live! In Color! Using KVM (qemu-kvm 0.12.3, kernel 2.6.33) Migration between servers, using VNC Windows XP 32 guest with running Passmark stress test application Between Intel C2Q and AMD Opteron

Demo screenshot

References Project Remus: http://dsg.cs.ubc.ca/remus/ Cross Vendor Migration: http://developer.amd.com/assets/crossvendormigration.pdf QEMU live migration: http://kvm.et.redhat.com/wiki/images/5/5a/kvmforum2007$kvm_live_migration_forum_2007.pdf