VHD Export: Hyper-V for Windows Server 2008 / 2012 & Citrix XenServer

Follow

1. Background

This article discusses VHD Export into Hyper-V for Windows Server 2008, 2012 and Citrix XenServer.

1.1. Prerequisites

Follow the steps in the Export Image article to obtain and copy the machine's recovery point to the hypervisor as a VHD file. The VHD export function builds a Gen 1 VM. To run this VM on Hyper-V, you must use a Gen 1 shell. However, Microsoft offers a conversion utility.

While all image files on the Datto Siris are dynamic, sparse or thin-provisioned, when a VHD image file is copied from the Datto Siris using copy-paste, or other tools that do not accommodate dynamic/sparse/thin provisioning, the VHD image file will be copied with thick provisioning. See the Troubleshooting section of this article for more information regarding thin provisioning. 
NOTE: When creating your virtual machine, if both boot.vhd and C.vhd are present in the export, select boot.vhd as the first drive, and attach C.vhd as the secondary drive. If only C.vhd is present, use C.vhd as the first drive.

2. Procedure

2.1. Build VHD into Hyper-V Manager Server 2008

If the VM was not previously hosted in the Hyper-V Manager, you will need to create a new VM. Otherwise, replace the existing Hyper-V machine with the VHD file copied in the Export Image topic.

From the Hyper-V Manager click New > Virtual Machine.

Hyper-V-Manager.png

This will launch the New Virtual Machine Wizard. At the Before You Begin page, click Next.

Provide a name & location for the virtual machine. Click Next.

Provide the amount of RAM to allocate the Virtual Machine. Click Next.

Select from the drop down box which NIC to use in the virtual machine. The default is "not connected."

4NewVirtualMachineWizard-ConfigureNetworking.png
Example: New Virtual Machine Wizard - Configure Networking Page

On the Connect Virtual Hard Disk page select Use an existing virtual hard disk. Provide the path to the data store in which the VHD file was copied to. Click Next.

5NewVirtualMachineWizard-ConnectVirtualHardDisk.png

On the Summary page, confirm that all configuration settings are correct and click Finish.

Click Start.

fini.png

3. Build VHD into Hyper-V Manager Server 2012

If the VM was not previously hosted in the Hyper-V Manager, you will need to create a new VM. Otherwise, replace the existing Hyper-V machine with the VHD file copied in the Export Image topic.

From the Hyper-V Manager click New > Virtual Machine.

1BuildVHDIntoHyper-V.png

This will launch the New Virtual Machine Wizard, at the Before You Begin Page, click Next.

Provide a Name & Location for the virtual machine on the Specify Name and Location page. Click Next.

Provide the amount of MB of RAM to allocate the Virtual Machine. Click Next.

Select from the dropdown box which NIC to provide the virtual machine (default is none).

4NewVirtualMachineWizard-NIC.png

On the Connect Virtual Hard Disk page, select Use an existing virtual hard disk. Provide the path to the data store in which the VHD file was copied to from previous section. Click Next.

5NewVirtualMachineWizard-VHD.png

On the Summary Page confirm that all configuration settings are correct and click Finish.

Click Start.

7-Fini.png

4. Import VHDs into Citrix XenServer

Alternatively, XenConverter can be used to restore to a Xen host environment. Documentation from Citrix is available here.

In XenServer click File > Import...

1XenServerFileImport.png

This will load the Import Wizard. On the first page browse to the location on the XenServer where the VHD file(s) were copied to, & click Next.

Provide a VM name, number of CPUs, and RAM allocation. Once configured click Next.

3ImportWizard-VMDefinition.png

Confirm the location is correct & click Next.

Click Next on the Storage page.

5ImportWizard-Storage.png

Select which virtual network interface for the VM to use and click Next.

On the OS Fixup settings page, click Next.

Select which of the Citrix XenServer's NICs to provide the VM access to & enter either DHCP or Static TCP/IP settings. Click Next when finished.

8ImportWizard-TransferVMSettings.png

Confirm all settings for the imported virtual machine displayed are correct & click Finish.

5. Troubleshooting

Index

5.1. Logon failure: the user has not been granted the requested logon type at this computer.

You may encounter the error message "Logon failure: the user has not been granted the requested logon type at this computer" when importing a VM into Hyper-V, as shown below:

 

This is a Windows error, and can occur if the VM's special identity is missing the 'Log on as a Service' permission on the Hyper-V host, possibly as a result of a failed Group Policy refresh. To resolve this issue, follow the troubleshooting steps provided by Microsoft in Starting or Live Migrating Hyper-V virtual machines may fail with error 0x80070569 on Windows Server 2012-based computers.

5.2. Thin Provisioning Unavailable

At this writing, Microsoft does not provide tools to transfer VHD files to Hyper-V with sparse / thin / dynamic provisioning. To accomplish this requires converting the disks from a live VM using Microsoft Virtual Machine Converter, described here. The converter is available for download here.

5.3. Mouse and networking do not work in the VM after restore

This issue can occur when the virtual machine is unable to reach the Hyper-V Integration Services on the Hyper-V host. Perform the following steps to resolve the issue:

1. Make sure that the Hyper-V Integration Services are enabled on the host.

2. Log into the affected VM. Use the keyboard to access the Windows Device Manager. Press the Windows key + R to invoke the Run dialog box, and type devmgmt.msc. Press Enter.

3. In the Device Manager window, scroll down to the System section.

4. Find the Microsoft Hyper-V Virtual Machine Bus device. It may have a yellow exclamation mark next to it.

5. Press Enter to open the Device Information window. Press Tab until you see an outline on one of the tabs across the top of the window.

6. Use the keyboard arrows to select the Driver tab.

7. Press Tab again until you have the Update Driver button highlighted. Press Space to click the button.

8. Press Tab until the option for Browse my computer for driver software is highlighted. Press Space to select it.

9. Press Tab until the Let me pick from a list of device drivers on my computer option is highlighted. Press Space to select it.

10. The Select the device driver you want to install for this hardware screen will appear. Make sure that the Show compatible hardware check box is selected. You should see Microsoft Hyper-V Virtual Machine Bus listed in the Model box.

11. Press Tab until you have highlighted the Microsoft Hyper-V Virtual Machine Bus driver, and then press Enter.

12. You will see a confirmation that the software is installing. The process can take anywhere from about 15 to 60 seconds. During the process, the screen may flicker while the mouse and networking drivers install.

13. After the software installs, the mouse should be functional. Check Hyper-V Manager to confirm that the network adapter is connected. Set the IP address of the VM if it's set to static.

14. Check the Services control panel to make sure that the Hyper-V Integration Services are running.

6. Additional Resources


Was this article helpful?

2 out of 2 found this helpful

You must sign in before voting on this article.

Want to talk about it? Head on over to our Community Forum!