Share via


Hyper-V Migration Guide

Updated: February 11, 2010

Applies To: Windows Server 2008, Windows Server 2008 R2

Hyper-V enables you to create a virtualized server computing environment using a technology that is part of Windows Server 2008 and Windows Server 2008 R2. This guide provides information and instructions about migrating the Hyper-V role—including virtual machines, data, and operating system settings—from the source server to the destination server that is running Windows Server 2008 R2.

About this guide

Note

Your detailed feedback is very important, and helps us to make Windows Server Migration Guides as reliable, complete, and easy to use as possible. Please take a moment to rate this topic by clicking the stars in the upper-right corner of the page (1=poor, 5=excellent), and then add comments that support your rating. Describe what you liked, did not like, or want to see in future versions of the topic. To submit additional suggestions about how to improve Migration guides or utilities, post on the Windows Server Migration forum.

This guide describes how to migrate the Hyper-V role by providing preparation, migration, and verification steps.

Migration documentation and tools ease the migration of server role settings and data from an existing server to a destination server that is running Windows Server 2008 R2. By using the tools that are described in this guide, you can simplify the migration process, reduce migration time, increase the accuracy of the migration process, and help to eliminate possible conflicts that might otherwise occur during the migration process.

Target audience

This document is intended for information technology (IT) professionals who are responsible for operating and deploying Hyper-V in a managed environment.

What this guide does not provide

The following items are not covered in this guide because they are not supported by the migration tools:

Supported migration scenarios

This guide provides you with instructions for migrating an existing server that is running the Hyper-V role on an earlier version of Windows Server to a server that is running Windows Server 2008 R2. You can also use this guide to migrate the Hyper-V role from one computer running Windows Server 2008 R2 to another computer running Windows Server 2008 R2. As mentioned above, this guide does not contain instructions for migration when the source server is running multiple roles. If your server is running multiple roles, we recommend that you design a custom migration procedure specific to your server environment, based on the information provided in other role migration guides. For migration guides for additional roles, see Migrate Server Roles to Windows Server 2008 R2 in the Windows Server 2008 and Windows Server 2008 R2 Technical Library (https://go.microsoft.com/fwlink/?LinkID=128554).

Warning

If your source server is running multiple roles, some migration steps in this guide, such as those for computer name and IP configuration, can cause other roles that are running on the source server to fail.

Supported operating systems

Source server processor Source server operating system Destination server operating system Destination server processor

x64-based

Windows Server 2008, full installation option only

Windows Server 2008 R2, both full and Server Core installation options

x64-based

x64-based

Windows Server 2008 R2

Windows Server 2008 R2, both full and Server Core installation options

x64-based

x64-based

Server Core installation option of Windows Server 2008 R2

Windows Server 2008 R2, both full and Server Core installation options

x64-based

The versions of operating systems shown in the preceding table are the oldest combinations of operating systems and service packs that are supported. Newer service packs, if available, are supported. If an operating system is not listed, then it is not supported. The stand-alone product Microsoft Hyper-V Server is not supported.

Standard, Enterprise, and Datacenter editions of Windows Server are supported as either source or destination servers.

Migration from a source server to a destination server that is running an operating system in a different system UI language (that is, the installed language) than the source server is not supported. For example, you cannot use Windows Server Migration Tools to migrate roles, operating system settings, data, or shared resources from a computer that is running Windows Server 2008 in the French system UI language to a computer that is running Windows Server 2008 R2 in the German system UI language.

Note

The system UI language is the language of the localized installation package that was used to set up the Windows operating system.

Roles that are running on Server Core installations of Windows Server 2008 cannot be migrated because there is no Microsoft .NET Framework available on Server Core installations of Windows Server 2008.

Supported role configurations and settings

This section identifies the configurations and settings that can be migrated by using the migration tools, and the configurations and settings that must be migrated manually. The following table provides a summary.

Configurations and settings Type of migration

Virtual machine (configuration and data)

Automated, except as noted below

Hyper-V settings

Automated

Virtual network adapter settings in the management operating system

Automated

External virtual networks

Partially automated, as described below

Virtual machine queue (VMQ) and chimney networking settings

Automated

Customized remote administration settings

Manual

The following configurations and settings can be migrated automatically:

  • Most virtual machine configurations. Virtual machines and their data are moved as part of the migration, but some configurations require manual intervention, as described below.

  • Hyper-V settings. These include the system-wide settings and the authorization store.

Note

If you are migrating from a source server running Windows Server 2008 R2 and have set a MAC address range, that value also is automatically migrated to the destination server.

  • Internal and private virtual networks.

  • Virtual network adapter settings in the management operating system. When Hyper-V is configured to use a physical network adapter as a bridge that virtual machines can use to access a physical network, a virtual network adapter is created in the management operating system (which runs the Hyper-V role). For this virtual network adapter, the migration process automatically migrates the IP settings, bindings, and MAC address of this virtual network adapter. However, the connection between the virtual network adapter and the physical network adapter must be re-established manually, as described in the migration steps.

  • Virtual machine queue (VMQ) and chimney settings for networking.

The following configurations and settings require manual intervention after the migration tools are used:

  • Firewall settings. Firewall settings are recreated on the destination server using the default values that Hyper-V is installed with. If you have modified any of the firewall settings from these default values, you will need to make the same modifications on the destination server.

  • External virtual networks. The migration tool recreates the virtual networks on the destination server, but recreates external virtual networks as internal virtual networks. You will need to modify each of these networks to connect it to the appropriate physical network adapter on the destination server, as described in the migration steps.

  • VFD and ISO files. These files are not migrated because they are not required for the virtual machine to operate and are not supported by the Import and Export cmdlets. To make them available to a migrated virtual machine, manually copy these files to the destination server and then reattach them to the virtual machine after it is migrated.

  • Connections to physical disks directly attached to virtual machines. These connections (sometimes referred to as “pass-through disks”) are not migrated because the disk references might not be valid on the destination server. To make a physical disk available to a migrated virtual machine, connect the disk to the destination server and then to the virtual machine after it is migrated, as described in the migration steps.

  • Customized remote administration settings. If you have customized Hyper-V for remote access, you will need to perform some additional procedures to recreate the DCOM and WMI Namespace settings. The migration steps identify the point at which you should take perform these procedures, as well as provide a recommended tool or script to complete the procedure.

Migration Dependencies

The Hyper-V role is not dependent on any other roles. As a best practice, we recommend that no other roles are installed on a server running Hyper-V.

Migration scenarios that are not supported

The following migration scenarios are not supported:

  • The saved state of a virtual machine under one of the following conditions:

    • When moving from Hyper-V in Windows Server 2008 to Hyper-V in Windows Server 2008 R2.

    • When moving between physical computers that have different processor steppings or vendors—for example, migrating from a computer with an Intel processor to a computer with an AMD processor.

  • Virtual machine configuration under one of the following conditions:

    • When the number of virtual processors configured for the virtual machine is more than the number of logical processors on the destination server.

    • When the memory configured for a virtual machine is greater than the available memory on the destination server.

  • Consolidation of physical servers to virtual machines, or consolidation of multiple instances of Hyper-V to one instance.

Hyper-V migration overview

Hyper-V role migration involves moving the virtual machines, virtual networks, and all the associated settings from one physical computer to another physical computer in the enterprise. The process supports moving from a server running Hyper-V in Windows Server 2008 or Windows Server 2008 R2 to a server running Hyper-V in Windows Server 2008 R2. The Hyper-V role is not dependent on any other roles.

The migration tools include cmdlets that you use to perform some of the tasks required to migrate the Hyper-V role. The Export cmdlet captures the majority of the Hyper-V settings that are required to perform a successful migration, including the virtual machine configurations, virtual networks, and virtual hard disks. The DCOM and WMI namespace security settings must be migrated separately. The instructions for this are provided later in the guide. On the destination server, the import cmdlets will recreate the virtual machines.

Impact of migration

The following section describes the impact of migration on the source server and on other computers in the enterprise.

Impact of migration on the source server

The source server should be turned off or removed from the network before you run the import cmdlets on the destination server so that there are no conflicts between the virtual machines running on the source server and the virtual machines that will be recreated on the destination server. The point at which you should perform this task is identified in the migration steps, later in this guide.

Impact of migration on other computers in the enterprise

This migration may impact any computer (either virtual or physical) that relies on the applications or workloads running in the virtual machines to be migrated as part of the Hyper-V role migration, because the virtual machines will be offline for the duration of the migration. For example, if a virtual machine hosts a database, any applications in the enterprise that require access to that database will be impacted. As a result, you will need to plan for this downtime by either scheduling a planned outage or by redirecting traffic to other servers to provide the services.

Permissions required to complete migration

The user account that runs the cmdlets and tools must be a member of the local Administrators group on the source server and the destination server.

Estimated duration

The length of time it takes to migrate the Hyper-V role depends on the size of the data to be transferred. Of the various types of files to be transferred, the .vhd files have the largest file sizes (from a few gigabytes to many gigabytes in size). The length of time is affected by the size of the .vhd files and by the network bandwidth.

See Also

Concepts

Hyper-V Migration Guide: Preparing to Migrate
Hyper-V Migration Guide: Migrating Hyper-V
Hyper-V Migration Guide: Verifying the Migration
Hyper-V Migration Guide: Post-Migration Tasks