ADVERTISE HERE

Microsoft Live Migration – A High Level Overview

Title: Microsoft Live Migration – A High Level Overview
Author(s): Xtravirt (Paul Buckle)
Target Audience: Technical - Intermediate
Current Revision: 1.0 August 2009
First Published: 25 August 2009
Products: Microsoft Windows Server 2008 R2, Microsoft Hyper-V Server 2008 R2
UID: XD10125
Information
Title: 
Microsoft Live Migration – A High Level Overview
Author(s): 
Xtravirt (Paul Buckle)
Target Audience: 
Technical - Intermediate
First Published: 
25 August 2009
Products: 
Microsoft Windows Server 2008 R2, Microsoft Hyper-V Server 2008 R2
UID: 
XD10125

This document provides a high level overview of Microsoft Live Migration. Live Migration gives Microsoft a direct equivalent to its competitor’s features, specifically VMware VMotion and Citrix XenMotion; indeed, under the covers, all three employ a very similar means of operation.

VMotion for Hyper-V. So how does it work then?

1.0 Introduction

Live Migration is arguably the most eagerly anticipated new feature of Microsoft Windows Server 2008 R2 Hyper-V and Hyper-V Server 2008 R2. This builds on, and is in addition to, the Quick Migration feature first introduced in Windows Server 2008 Hyper-V and Hyper-V Server 2008.

It gives Microsoft a direct equivalent to its competitor’s features, specifically VMware VMotion and Citrix XenMotion; indeed, under the covers, all three employ a very similar means of operation. 

2.0 Live Migration

2.1 Description

While Quick Migration enables the moving of a running Virtual Machine (VM) from one Hyper-V host to another, a disadvantage of the “save, move and restore the VM” technique it uses is that the VM is unavailable for a period of time (around 10 to 60 seconds) and hence service is interrupted.

Live Migration takes a completely different approach, enabling the same VM-relocation capability but with the benefit of no perceived downtime. Why perceived? Because while the Live Migration process requires a period of downtime (for the transfer of execution of the VM between the hosts), it is negligible and typically less than the TCP timeout, so no service interruption is apparent to remote users.

2.2 Benefits

This key feature of Live Migration offers numerous agility, cost and productivity benefits, including:

  • VMs can be migrated to a specific host at any time in order to optimise VM performance, cluster balancing or consolidation ratios, without negatively impacting users.
  • A host requiring maintenance can have the VMs migrated from it, the work performed and be put back into service during normal business hours, without interrupting service.
  • Power savings can be made during periods of lower processing demand by migrating VMs from a host and powering it off until the extra capacity is required again.

2.3 Requirements

The requirements for Live Migration are similar to those for Quick Migration and are set out below:

  • Two or more Hyper-V hosts running Windows Server 2008 R2 x64 (Enterprise or Datacenter edition) or Hyper-V Server 2008 R2
  • Each host uses the same make and model of processor (A feature called Processor Compatibility Mode gives a degree of flexibility but is beyond the scope of this article. More information is available in the document referenced in the Useful Links section below).
  • Each host is configured for Microsoft Failover Clustering
  • Each host has access to the same networks and shared storage
  • The cluster is configured with a dedicated network for Live Migration traffic

Additionally, it is strongly recommended to:

  • Create a Clustered Shared Volume (CSV) for the storage of VMs (CSV is also a new feature of Microsoft Windows Server 2008 R2 Hyper-V and Hyper-V Server 2008 R2).
  • Dedicate a 1 Gigabit Ethernet connection on each host for Live Migration traffic

2.4 Implementation

This is beyond the scope of this article. Detailed Live Migration implementation steps are available in the document referenced in the Useful Links section below.

2.5 Initiation

The Live Migration of a VM can be initiated in three ways:

  • Via the Failover Cluster Management console
  • Via the Virtual Machine Manager administration console
  • Via a Windows Management Instrumentation (WMI) or PowerShell script

Note: The maximum supported number of simultaneous Live Migrations is limited to half the number of hosts in the cluster.

2.6 Operation

When the Live Migration of a VM has been initiated, Hyper-V takes the following actions:

  • Preparation:
    The source host establishes a network connection to the destination host and defines a “skeleton” VM on it with an identical configuration to the VM to be Live Migrated.
  • Transfer:
    All the memory pages for the VM are transferred from the source to the destination. Any source memory pages changed during this process are tracked and, when the first transfer is complete, these are sent in a second pass. This process is repeated until the number of changed pages to send is below a certain threshold and can be transferred in negligible amount of time.
  • Handover:
    A final memory transfer pass is made before control of the VMs storage and responsibility for its execution is transferred from the source to the destination. The VM has been Live Migrated and is running on the destination host.
  • Cleanup:
    A network broadcast is issued which forces the physical switch to learn the new location of the VM and the now redundant VM configuration on the source host is removed.

References

Useful Links

Tags
Hyper-V Server 2008 R2
Live Migration
Microsoft
Windows Server 2008 R2
Hypervisor

Spotlight:

Microsoft Volume Licensing in Virtualized Environments

If you are a Microsoft volume licensing customer then this paper is a 'must have'

Tape Backup Integration with VMware Data Recovery (VDR)

Move VDR backup data to tape the easy way with Powershell

Beginners Guide to Managing VMware using PowerShell

Release the power...go forth and manage VMware using Microsoft's PowerShell

Technology Exchange:

Paul Davey, Xtravirt CTO - Blog

virtualboy - Matt McSpirit on Windows Server & Virtualisation

Simon Long - The Slog

ICT-Freak – VMware, Windows, Citrix, Linux, Scripting...

Virtu-Al – Virtually everything is poshable

Download the FREE SolarWinds VM Monitor for Instant Visibility into VMware!

Add3 – Technology Driven Consultancy

Dan Eason is Virtually Insane

<!--[if gte mso 9]> Normal 0 false false false EN-GB X-NONE X-NONE MicrosoftInternetExplorer4 <![endif]--><!--[if gte mso 9]> <![endif]--><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --><!--[if gte mso 10]> <! /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} --> <!--[endif]-->

ICT-Freak – VMware, Windows, Citrix, Linux, Scripting...