Want to migrate your Virtual Server VHDs to Hyper-V?

Okay, you have used Virtual Server for your virtual machines. Now you have Hyper-V and naturally you do not want to reinstall every machine from scratch.
Here is how you can migrate your old VHDs to Hyper-V:

1. Be sure that you backup your virtual hard disk files (VHDs)
2. Uninstall the Microsoft Virtual Machine Additions
3. If you have no Virtual Server environment to deinstall the Virtual Machine Additions, you can install Virtual Server on Windows Server 2008. Here is what you need:
(If you have uninstalled the Microsoft Virtual Machine Additions, you can continue with step 10)

  • Install IIS with the Server Manager and add the required Features
    IIS-1
    IIS-2
  • Add CGI, Windows Authentication, IIS 6 Metabase Compatibility
    IIS-3 

4. Install Virtual Server 2005 R2 with SP1:
VS-1 VS-2 VS-3
VS-4 VS-5 VS-6

5. Because the Hypervisor of Windows Server 2008 makes the emulated drivers of Virtual Server virtual machines very slow, you should disable the Hypervisor as long as you want to use Virtual Server. This is not just a setting or driver, you have to boot Windows Server 2008 without the Hypervisor. You have to create a second boot entry:

bcdedit /copy {current} /d “Microsoft Windows Server 2008 – for Virtual Server”
bcdedit /set {Identifier} hypervisorlaunchtype off

The first command copies the current boot configuration to a new one called “Microsoft Windows Server 2008 – for Virtual Server”:
bootmenu-1

The second command turns the Hypervisor for the new boot entry off:
bootmenu-2

6. Now you have to restart your server, choose the new boot entry to boot it without the Hypervisor.

7. Okay, now as you are back we can configure the new virtual machine wit the old VHD in Virtual Server:

  • Open your browser and go to http://localhost:1024 to open the Virtual Server configuration site.
  • Click on Virtual Machines – Create:
    VM-1
  • Select a name for the new virtual machine, chose the amount of RAM, enter the path to the VHD file you want to migrate to Hyper-V and click on CREATE:
     VM-2
  • Turn the new virtual machine on:
    VM-3

 

6. Turn the Virtual Machine Remote Control (VMRC) Server on:
VM-5 VM-6

7. Connect to the the running virtual machine with the Virtual Machine Remote Control Client:
VM-4

8. Deinstall the Microsoft Virtual Machine Additions and restart the virtual machine:
VM-7 VM-8

9. After the virtual machine is rebooted, you can shut it down and restart Windows Server 2008 with the Hypervisor.

(You can continue here from step 2 when you have uninstalled the Microsoft Virtual Machine Additions)

10. Install Hyper-V, as mentioned in one of my earlier posts.

11. Create a new virtual machine in Hyper-V:
Hyper-V-1 Hyper-V-2 Hyper-V-3
Hyper-V-4 Hyper-V-5

12. Start the new Hyper-V virtual machine.

13. Perhaps you have to activate Windows, because the Hardware has changed due to the Hypervisor:
activation 

14. Insert the Services Setup Integration Disk (If your virtual machine is Windows Server 2008 install Hyper-V RC0 or newer in it):
integration

15. Update the Hardware Abstraction Layer:
HAL

16. After the HAL update and a reboot the device drivers are installed:
 integration-2

17. Reboot the Virtual Machine:

Hyper-V-6

18. You have to configure the TCP/IP settings. This could be the reason why a migrated domain controller can take a very long time (15 minutes and more) to boot:
Hyper-V-7 

That was it, have fun with your migrated machines!

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>