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

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

When a VM is imported into Hyper-V, the error message "Logon failure: the user has not been granted the requested logon type at this computer" might be encountered, as shown:

 

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.

Thin Provisioning

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.

6. Additional Resources


Was this article helpful?

1 out of 1 found this helpful

You must sign in before voting on this article.

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