Quick Migration With Hyper-V
Quick Migration With Hyper-V
White Paper
Published: January 2008
For the latest information, please see www.microsoft.com
Contents
Introduction ..............................................................................................................................3
The Need for High Availability and Quick Migration..............................................................3
What Is Hyper-V Technology?..............................................................................................4
Hyper-V Architecture.............................................................................................................4
Quick Migration.....................................................................................................................5
Conclusion ..............................................................................................................................24
Appendix: Glossary.................................................................................................................25
Related Links...........................................................................................................................27
Introduction
Most mid-sized to large businesses want to implement high availability within their virtual
infrastructures. Quick migration makes this possible. Quick migration takes advantage of the
failover clustering functionality and the Windows Server® Hyper-V™ hypervisor-based
virtualization technology included in many 64-bit editions of Windows Server® 2008. Quick
migration can provide a wide variety of services through a small number of physical servers
and, at the same time, maintain the availability of those provided services. If a physical host
server experiences an unscheduled service disruption or requires scheduled downtime,
another host server is ready to begin supporting services quickly, with minimal downtime.
In this white paper, we begin with an introduction to quick migration and the Hyper-V
technology. We then describe how to apply quick migration to enhance the availability of
services. We explore how you can prepare for planned downtime by using quick migration to
save the state of a running virtual machine, move the storage connectivity from one physical
server to another, and then restore the virtual machine (for unplanned downtime, the virtual
machine is failed over automatically and the state is not saved). We examine a specific
scenario, assuming that Windows Server® 2008 Enterprise or Windows Server® 2008
Datacenter is already installed. We explain how to set up the failover clustering service, how
to configure Hyper-V, and how to use quick migration to fail over a workload and maintain
services.
(Note: this white paper is based on beta code and is subject to change.)
Hyper-V Architecture
Hyper-V supports isolation using partitions in which the operating systems execute. There is a
parent (or root) partition running either a full installation of Windows Server 2008 or a Server
Core installation (which provides a minimal environment for running specific server roles). The
virtualization stack, a collection of software components that work together to support the
virtual machines, runs in the this parent partition and has direct access to the hardware
devices. From the root partition, child partitions can be created; these child partitions can run
different operating systems, including hypervisor-aware operating systems and previous
operating systems. The child partitions do not have direct access to the hardware resources.
Their requests are redirected through the parent partition via a virtual machine bus (VMBus),
a subsystem for exchanging requests and data (see Figure 1).
Quick Migration
With quick migration, you can rapidly migrate a running virtual machine from one physical
host system to another with minimal downtime, taking advantage of the familiar high-
availability capabilities of Windows Server and Microsoft® System Center management tools.
Using Windows Server Hyper-V and the quick migration capability, you can consolidate
physical servers and, at the same time, maintain the availability and flexibility of business-
critical services during scheduled maintenance, or quickly restore services after unplanned
downtime.
In previous versions of Windows®, Windows saw the files that make up the virtual machines
(the virtual hard disk [VHD] files) on the logical unit numbers (LUNs); the Windows Cluster
Administrator saw just the LUNs, and could not recognize that virtual machines were on these
LUNs until they were registered and associated through the use of a script. Windows Server
2008, however, can recognize a virtual machine and therefore does not require a script to
shut down, migrate, and restart the virtual machine as it moves between hosts; this makes
migration of virtual machines faster and easier.
With Windows Server 2008 Enterprise and Windows Server 2008 Datacenter, you can run
each server that provides client services as a guest virtual machine on a physical server and
configure the physical server as a node in a failover cluster (a group of connected computers
that work together to provide high availability for services through redundant nodes). You can
then make the virtual hard disk of the guest virtual machines available to the other nodes
within the cluster, so each server providing client services now runs as a highly available
virtual machine. With this configuration, other physical servers in the cluster are ready to
support the guest virtual machines when needed through quick migration.
For a planned migration, quick migration saves the state of a running guest virtual machine
(memory of original server to disk/shared storage), moves the storage connectivity from one
physical server to another, and then restores the guest virtual machine onto the second
server (disk/shared storage to memory on the new server). The speed of the migration
depends on how much memory needs to be written to disk, and on the speed of the
connectivity to storage; generally, migration takes just a few seconds. In the case of
Software Requirements
Following are the software requirements for the host nodes:
• You must have Windows Server 2008 Enterprise or Windows Server 2008
Datacenter (with Hyper-V) installed on the nodes. Because Hyper-V role is included
with the operating system, you can create the virtual machine and move it between
nodes using quick migration (in conjunction with cluster services).
• You need licensed copies of the operating system and other software that you run on
the guest virtual machine. Windows Server 2008 Enterprise allows four virtual image
use rights, while Windows Server 2008 Datacenter allows unlimited virtual instances.
• Your system must be using a name-resolution service, such as Domain Name
System (DNS), DNS dynamic update protocol, Windows Internet Name Service
(WINS), or Hosts file. In most cases, DNS should be sufficient.
• All nodes in the cluster must be in the same Active Directory® domain. As a best
practice, all nodes should have the same domain role.
(Note: this white paper is based on beta code and is subject to change.)
Set Up a Cluster
To perform quick migration, you must first set up a cluster with your servers. For this
scenario, the cluster will have only two nodes (though up to 16 nodes are supported). Setting
up a cluster in Windows Server 2008 is intuitive, quick, and simple. Setup is streamlined; you
can create the entire cluster in one seamless step. You simply name the cluster, dictate
which servers will be in the cluster, and let the wizard do the rest.
In this scenario, we use only one virtual machine. In general, the number of virtual machines
running per host depends on several things, including physical memory, processor, and
workload running in the guest operating system. With Hyper-V, you define the amount of
memory available to a virtual machine. That memory allocation can be altered to reflect the
needs of the virtual machine. Hyper-V supports both 32-bit and 64-bit systems as guest
operating systems, and supports up to 64 GB of RAM in each guest operating system.
Windows Server Hyper-V also supports allocating up to four physical CPU cores to each
guest operating system.
A rich HTML log showing actionable errors can be displayed for review as well (see Figure 9).
Security Considerations
Firewall and antivirus software running on the host operating system do not protect guest
operating systems. To obtain this protection, you must install firewall and antivirus software
directly on the guest operating systems.
cluster service
Service that facilitates clustering of nodes. Included with Windows Server 2008.
cluster storage
Storage that is attached to all nodes of the cluster. Each disk on the cluster storage is
owned by only one node of the cluster at a time. The ownership of disks moves from one
node to another during failover or when the administrator moves a group of resources to
another node.
failover
The process of taking a group of clustered resources (such as a disk on which data is
stored) offline on one node and bringing them online on another node. The cluster service
ensures that this is done in a predefined, orderly fashion, so that users experience minimal
disruptions in service.
Fibre Channel
A gigabit-speed network technology primarily used for storage networking.
guest
An operating system running as a virtual machine in Windows Server Hyper-V. Multiple
guests can run on one host, and each guest can run one or more applications.
heartbeat
Nodes in a cluster communicate using their cluster service. The cluster service keeps
track of the current state of the nodes within a cluster and determines when a group and
its resources should fail over to an alternate node. This communication takes the form of
messages that are sent regularly between the two nodes' cluster services. These
messages are called heartbeats.
host
A physical server on which a version of Windows Server 2008 is running.
node
A computer system (server or host) that is a member of a cluster.
quick migration
Saves the state of a running virtual machine (memory to disk), moves the storage
connectivity from one physical server to another, and then restores the virtual machine
(disk to memory).
Server Core
An installation option for the Windows Server 2008 operating system which provides a
minimal environment for running specific server roles; this reduces the maintenance and
management requirements and the attack surface for those server roles.
VHD
Virtual hard disks are stored as files accessible by the host operating system; the files can
be local or anywhere the host can access (file server, SAN, etc.).
This is a preliminary document and may be changed substantially prior to final commercial release of the software described herein.
The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date
of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the
part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication.
This white paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS
DOCUMENT.
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this
document may be reproduced, stored in, or introduced into a retrieval system, or transmitted in any form or by any means (electronic,
mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft
Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in
this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not
give you any license to these patents, trademarks, copyrights, or other intellectual property.
© 2007 Microsoft Corporation. All rights reserved.
Microsoft, Active Directory, Hyper-V, Windows, Windows Server, and the Windows logo are either registered trademarks or trademarks
of Microsoft Corporation in the United States and/or other countries.
All other trademarks are property of their respective owners.