Virtual Machine Migration Guide: How To Migrate from Virtual Server to Hyper-V
Applies To: Windows Server 2008
This guide explains how to migrate virtual machines running on Virtual Server 2005 R2 Service Pack 1 (SP1) to Hyper-V. A virtual machine running on Virtual Server consists of a configuration file (.vmc) and one or more data files. These data files can include virtual hard disks (.vhd files) and other media files, such as images (.iso files) and virtual floppy disks (.vfd files). Only the .vhd file can be used by Hyper-V. All of the other files used by Virtual PC or Virtual Server are incompatible with Hyper-V.
Migrating your virtual machines that are running on Virtual Server 2005 R2 SP1 to Hyper-V is a straightforward process. To migrate, you do the following general steps:
Prepare the virtual hard disk in Virtual Server.
Move the .vhd file (if necessary).
Create a new virtual machine in Hyper-V using the .vhd file.
There is no import function in Hyper-V for virtual machines running on Virtual Server and Virtual PC.
Alternatively, you can use System Center Virtual Machine Manager (VMM) to convert and manage a virtual machine running on Virtual Server 2005 R2 SP1. VMM 2008 supports migrating virtual machines running on Virtual Server 2005 to Hyper-V (the virtual machines must have Virtual Machine Additions version 13.813 or later installed). VMM 2008 uninstalls Virtual Machine Additions, upgrades the hardware abstraction layer (HAL), and installs the integration components (called “virtual guest services” in VMM). You cannot use VMM to migrate a virtual machine running in (or under) Virtual PC.
For more information about VMM, see http://go.microsoft.com/fwlink/?LinkId=135512. For more information about migrating and managing virtual machines running on Virtual Server, see Moving from Virtual Server to Virtual Machine Manager (http://go.microsoft.com/fwlink/?LinkId=135513).
For information about an alternative (unsupported) way to migrate virtual machines running under Virtual PC, see the VMC to Hyper-V Import Tool (http://go.microsoft.com/fwlink/?LinkId=135683).
You should consider not migrating virtual machines running operating systems that cannot take advantage of Hyper-V integration services. For a list of operating systems that can take advantage of Hyper-V integration services, see About Virtual Machines and Guest Operating Systems (http://go.microsoft.com/fwlink/?LinkID=128037).
For planning help and best practice advice on migrating your infrastructure to Hyper-V, see the Microsoft Assessment and Planning Toolkit (http://go.microsoft.com/fwlink/?LinkID=110948). For additional Hyper-V planning information, see the Hyper-V Planning and Deployment Guide (http://go.microsoft.com/fwlink/?LinkID=108560). You can automate some parts of your migration prep using the PowerShell Management Library for Hyper-V (http://go.microsoft.com/fwlink/?LinkId=135684).
To migrate virtual machines to Hyper-V
Follow these steps to migrate your virtual machines running on Virtual Server 2005 R2 SP1 to Hyper-V.
In Virtual Server, start the virtual machine you want to migrate so that you can document existing configuration settings if you need to recreate them on the new virtual machine in Hyper-V. Settings to review and document include:
- Virtual machine settings—for example, memory, disk, disk type, and CPU settings.
You cannot use a SCSI disk to boot a virtual machine in Hyper-V. If the startup disk of your virtual machine is not IDE, you should change it before migration. You can use a script for changing virtual machine disk type to automate changing the disk controller configuration type from SCSI to IDE. The script is available at http://go.microsoft.com/fwlink/?LinkId=135672.
- Virtual network settings, including all configuration information. - Network adapter settings—for example IP address, number of adapters, DNS gateway, and subnet settings.
Ensure that the operating system is up to date with all required software updates and hotfixes, according to your organization’s requirements. For virtual machines running Windows Server 2003, you must upgrade to Windows Server 2003 Service Pack 2 (SP2). For more information, see http://go.microsoft.com/fwlink/?LinkId=135673.
Uninstall Virtual Machine Additions. Hyper-V integration services replace the Virtual Machine Additions component used in Virtual Server. To install Hyper-V integration services, you must first remove Virtual Machine Additions. We recommend that you remove Virtual Machine Additions before migrating the virtual machine.
To remove Virtual Machine Additions
On the virtual machine, in Control Panel, open Add or Remove Programs.
Click Virtual Machine Additions, and then click Remove.
Click Yes in the confirmation dialog box that appears.
After Virtual Machine Additions is successfully removed, restart the virtual machine.
You can uninstall Virtual Machine Additions version 13.813 and later after you migrate the virtual machine to Hyper-V. Earlier versions of Virtual Machine Additions might fail to uninstall when started using Hyper-V.
## To check the integration services version number 1. On the virtual machine, in Control Panel, double-click **Device Manager**. 2. Expand **System Devices** and then right-click **Virtual Machine Bus**. 3. The version number is displayed on the **Driver** tab.
- Shut down the virtual machine to prepare the virtual hard disk. You should back up and verify any data according to your organization’s data retention requirements and clean up any undo disks or differencing disks.
Merging your disks can take some time. Ensure a single .vhd file is all that remains. For detailed instructions on merging your virtual hard disks, see Merge a virtual hard disk at http://go.microsoft.com/fwlink/?LinkId=135675.
The virtual machine must be shut down without being in a saved state before you can enable or disable Undo Disks. Use the **Commit Undo Disks** or **Discard Undo Disks** option to prepare the virtual hard disk for migration. The **Commit Undo Disks** option updates the original virtual hard disk with all changes that were stored in the undo disk file. Undo disks in Virtual Server are similar to differencing disks. However, a differencing virtual hard disk is associated with one virtual hard disk rather than with the virtual machine, and you are not prompted to decide what to do with the changes when you shut down a virtual machine. For more information, see Using differencing disks ([http://go.microsoft.com/fwlink/?LinkId=135677](http://go.microsoft.com/fwlink/?linkid=135677)). For more information about virtual machine states, see Managing virtual machine state ([http://go.microsoft.com/fwlink/?LinkId=135678](http://go.microsoft.com/fwlink/?linkid=135678)).
If your virtual machine running on Virtual Server uses a shared SCSI bus as part of a test or development cluster, you must break your cluster, migrate one node, and move it to an alternate form of shared storage such as Internet SCSI (iSCSI) prior to migration.
Check hardware abstraction layer (HAL) compatibility. By default, Hyper-V installs an APIC MP HAL when integration services are installed on the virtual machine. If you choose to move the virtual machine to Hyper-V while it has a different HAL, you will be prompted to upgrade when you first start the installation of integration services. Change the HAL, if necessary, before you migrate the virtual hard disk.
To change the HAL
Open the System Configuration utility (MSConfig.exe). To do this, click Start, click Run, type msconfig, and then click OK.
Click the Boot tab, and then click Advanced options.
Select the Detect HAL check box, click OK, and then restart the virtual machine.
Changing the HAL will usually trigger an operating system reactivation.
Shut down the virtual machine, and then move the .vhd file (if required). For example, you may store the .vhd file in the VMM library if you are using VMM.
Create a new virtual machine. For detailed instructions on setting up a new virtual machine, see “Step 2: Create and set up a virtual machine” in the Hyper-V Getting Started Guide (http://go.microsoft.com/fwlink/?LinkID=129921). If you have more virtual hard disks to add, do not start the virtual machine at the end of the wizard. Instead, open the settings for the newly created virtual machine and add each virtual hard disk to the configuration. If you need more than four virtual hard disks (or three plus a CD/DVD), attach a SCSI controller and attach the remaining virtual hard disks to the SCSI controller instead.
For best practice recommendations for configuring your virtual machine for performance, see Performance Tuning Guidelines for Windows Server 2008 (http://go.microsoft.com/fwlink/?LinkId=135682).
- Start your virtual machine in Hyper-V, log on with administrative credentials, and configure the network adapter settings for each adapter using the settings that you recorded in step 1 (if required).
- Hyper-V Getting Started Guide (http://go.microsoft.com/fwlink/?LinkID=129921)