Citrix: Import NetScaler (10.1 Build 120.13) on Hyper-V Server 2012R2 / 8.1

Hyper-V did not find virtual machines to import from locationI tried importing a Citrix NetScaler Virtual Appliance on a Windows 8.1 machine and received the error “Hyper-V did not find virtual machines to import from location”. Importing the same appliance on Windows Server 2012 did work.

The cause of this error is that the virtual machine is exported from a Windows Server 2008R2 server (running Hyper-V 2) and Microsoft deprecated the WMI root\virtualization namespace v1 in Windows Server 2012 (Hyper-V 3) and removed it Windows Server 2012 R2 (see TechNet).  There’s no support for the old WMI format.

Background

When a virtual machine is exported using Hyper-V 2008 R2 three folders are created:

  • Snapshots
  • Virtual Hard Disks
  • Virtual Machines

SJCDHYPERV01rootvirtualizationMsvm_ResourceAllocationSettingDataIn the Virtual Machines folder a file with the name {GUID].exp exists that contains the specification of the virtual machine, including all hardware devices. The hardware is addressed using WMI using the deprecated WMI format (root\virtualization).

Starting Windows Server 2012 (Hyper-V 3) the configuration is not stored in a .exp file but in a .xml file, specifying the hardware using the WMI format root\virtualization\v2.  For more details see Microsoft TechNet.

 

Workaround

The workaround that’s available is to import the Citrix NetScaler Virtual Appliance in a Windows Server 2012 Hyper-V (no R2) machine and export it using the new WMI format (root\virtualization\v2),. This of course requires you to have a Hyper-V 2012 machine available. In case you don’t have it available, I provided the XM, you can find it at the bottom of this article.

Option 1) Import and export

Import

  • Open Hyper-V Manager
  • Click on Import Virtual Machine
  • Specify the location of the (extracted) Citrix NetScaler Virtual Appliance
  • Select the virtual machine to import
  • Choose the import type: Copy the virtual machine (create a new unique ID)
  • Choose the destination and storage folders

Import 1Import 2Import 3Import 4Import 5Import 6Import 7Import 8

 

Export

  • In Hyper-V Manager select the imported virtual appliance
  • Click Export
  • Specify the export location

Export

 

You can now import the exported virtual machine in Windows Server 2012 R2 (or Windows 8.1)

 

Option 2) Use my XML file