Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


November 2008

Steps to Migrate VMs from Virtual Server 2005 to Hyper-V

Avoid the gotchas and have a smooth migration with this simple guide
RSS
Subscribe to Windows IT Pro | See More Windows OSs Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Executive Summary: The common Virtual Hard Disk (VHD) format makes it possible to move virtual machines (VMs) from Microsoft Virtual Server 2005 to Hyper-V. You can avoid some problems by removing Virtual Machine Additions from the guest and using a share on the Hyper-V server to copy over the VHD image. Use Hyper-V Manager's New Virtual Machine Wizard to create a new VM, add Hyper-V networking, and attach the migrated VHD to the new Hyper-V VM.

You’ve probably heard a lot about how much better Microsoft’s new hypervisor-based Hyper-V virtualization is than Microsoft Virtual Server 2005’s hosted virtualization. You’ve also probably heard that the Virtual Hard Disk (VHD) format shared between them makes it possible to move virtual machines (VMs) from Virtual Server 2005 to Hyper-V. However, there are a few gotchas that you need to look out for along the way. Here are the 10 essential steps to migrating your Virtual Server 2005 VMs to Hyper-V.

1. Make sure the guest OS is at the correct service pack level— Windows Server 2003 is undoubtedly the most common guest OS, but you need to make sure you’ve installed SP2 before you migrate. You can find the list of all supported Hyper-V guest OSs, and their service pack levels where appropriate, at www.microsoft.com/windowsserver2008/en/us/hyperv-supported-guest-os.aspx.

2. Uninstall Virtual Machine Additions—If you don’t remove the Virtual Machine Additions component from the VM guest, you might be stuck with an uninstallable program that prevents you from later installing Hyper-V’s integration components. You avoid this error if you’ve installed Virtual Server 2005 R2 SP2, but it’s safer just to remove the component before migrating the VM. You should also note the VM’s configuration if you don’t already know it.

3. Shut down the VM—With the preliminaries out of the way, you’re ready to move the VM. First, shut down the VM using the Shut Down option on the Start menu inside the guest. Be sure you shut down the OS instead of saving its state. After the guest OS has shut down, power off the VM from Virtual Server Manager.

4. Set up a share on the Hyper-V server—VMs are typically too big to copy on standard media such as USB drives or DVDs. The easiest way I’ve found is just to share the directory on the Hyper-V system on which you store your Hyper-V VHDs.

5. Copy the VHD to the target Hyper-V system—After creating the share, copy the .vhd file to the Hyper-V system. Depending on the size of the file and the speed of the disk subsystem, this process could take a couple minutes. For one-off migrations, I usually use Windows Explorer; if I’m moving multiple VHDs, I use Robocopy.

6. Create a new Hyper-V VM—When you’ve got the .vhd file on the Hyper-V system, you might think you’re finished, but you aren’t. The VHD contains the stored OS and data for the guest, but it doesn’t contain the VM configuration information, such as how much memory the VM has or how many hard disks or virtual network adapters it has. Your best course to move this information is to select New, Virtual Machine from the Actions pane of the Hyper-V Manager to start the New Virtual Machine Wizard.

7. Add Hyper-V networking to the new VM—You connect the new VM to the correct network through the wizard. The Virtual Server 2005 virtual networking configuration isn’t migrated as part of the .vhd image. On the New Virtual Machine Wizard’s Configure Networking page, select the Hyper-V virtual network to which you want your VM’s virtual network adapter connected.

8. Attach the migrated VHD to the new Hyper-V VM—The trick to migrating the old VHD to Hyper-V lies in linking the .vhd file to the new Hyper-V VM that you’ve created. On the New Virtual Machine Wizard’s Connect Virtual Hard Disk page, select Use an existing virtual hard disk, then point the new VM to the VHD you copied from Virtual Server 2005 by entering or browsing to the VHD’s path.

9. Start the new VM—After completing the wizard, you can start the new Hyper-V VM. Don’t be surprised if you’re greeted by the annoying Windows Activation screen. Nothing has really changed in the guest, but this screen prevents you from seamlessly moving VMs between Virtual Server and Hyper-V.

10. Install Hyper-V integration components on the new VM— Although you previously selected the virtual networking configuration for the VM, you’ll need to install the Hyper-V integration components by connecting to the VM, then selecting the Action, Insert Integration Services Setup Disk from the menu to provide the guest with the drivers it needs to use Hyper-V’s new synthetic video and networking devices.

End of Article



Reader Comments
Step 2 mentions having Virtual Server R2 SP2 installed, but I don't even see it available for download. Would you be referring to KB948515?

QHRInfosys December 28, 2008 (Article Rating: )


With the migration of VM application servers it is also important to record the static IP address and MAC address of the VM before you remove it from Virtual Server 2005. Many network applications are dependent on the same network MAC ID and IP address to remain licensed and this also allows a seamless transition for DNS and client connectivity. When setting up the new server in Hyper-V set the MAC address statically so the DNS servers will continue to send traffic without delay. Also when migrating servers with multiple VHDs, record the VHDs and be sure to copy all the VHDs to the new Hyper-V server.

-Darrin McDermott, IS Manager ESM Consulting Engineers, Federal Way, Washington

Darrin.McDermott@esmcivil.com January 29, 2009 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Related Articles Hyper-V FAQs

Feature for Feature: VMware ESX Server versus Microsoft Hyper-V

Upgrading to Hyper-V RTM

Microsoft Releases Hyper-V Server Virtualization Solution

Virtualization Whitepapers A Business Case for Backup & Recovery for The Virtualized Environment

Related Events Deep Dive into VMware vSphere

RUUP4IT? R2 Takes You Vertical and Virtual

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement