This guide drives you through the procedure of moving a VM from XenServer to a Hyper-V running on Windows Server 2022 with the free tool StarWind V2V Converter. For a guest OS, we use Windows Server 2019.

Step 1: Remove XenServer tools

Any Windows-based VM hosted on XenServer is running XenServer-related tools, and we need to uninstall them to avoid any conflicts with the Hyper-V server. To do so, you simply need to navigate to Program and Features and then uninstall Citrix XenServer Windows Management Agent.

Citrix XenServer Windows Management Agent is a VM tool for Windows that is used to enhance VM with I/O drivers.

Remove Citrix Agent tools from Windows you want to migrate

Remove Citrix Agent tools from Windows you want to migrate

Once you are done, you also need to delete the XenServer files from the Windows disk. To do so, navigate to C:\Windows\system32, search for the XenServer files, and then delete them.

You can now shut down your Windows machine and continue with the next step.

Step 2: Export VM from XenServer

In the second step, we will export the virtual machine from XenServer to a file with the extension .ova. Open XenCenter, connect to your XenServer, and then do the following:

  1. Navigate to the VM you want to move to Hyper-V.
  2. Right-click the VM and click Export.
  3. Under Choose the VM export format, location, and filename, enter the name of the VM, add location, and choose OVF/OVA Package as a format. Once done, click Next.

    Choose the VM export format location and filename

    Choose the VM export format location and filename

  4. Select the VM you want to export. You will see a list of only VMs that are shut down.
  5. Add a EULA (End-user license agreement) and click Next. This step is optional, and you can skip it.
  6. Under Advanced Options, keep the default settings, and click Next.
  7. Under Configure networking options for the Transfer VM, select the network interface. In my case, it is Network 0 (management).
  8. Under Network Settings, select Use these network settings and then enter an IP address that will be used to transfer the VM. If you add an IP that is already in use, the export will fail.

    Network settings

    Network settings

  9. Click Finish to start the VM export. The export may take several minutes depending on the VM size. Once done, you will see two files: one is a virtual hard disk (VHD) and the other is an OVF file.

    The VHD files

    The VHD files

Step 3: Import the VM to Hyper-V Server

In the third step, import the VM to Hyper-V Server using StarWind V2V Converter / P2V Migrator. You should install it directly on your Hyper-V Server.

  1. Fill out the form on StarWind Software to receive the download link for the installer file (around 40 MB). The installer for the StarWind V2V Converter will be sent to your email address.
  2. Under Select the location of the image to convert, select Local file, and then click Next.

    Select the location of the image to convert

    Select the location of the image to convert

  3. Under Source Image, select the file name, and then click Next.
  4. Under Select the location of the destination image, select Hyper-V Server, and then click Next.

    Select the location of the destination image

    Select the location of the destination image

  5. Enter Microsoft Hyper-V Server connection parameters, including IP or FQDN and credentials, and then click Next. If you installed StarWin V2V Converter directly on Hyper-V Server, you can go with the default hostname and enable Windows authentication, as shown here.
    Microsoft Hyper V Server connection parameters

    Microsoft Hyper V Server connection parameters

    If you installed StarWind V2V Converter on a different Windows Server machine, you would then need to specify Hyper-V IP or FQDN and credentials (disable Use Windows Authentication).

  6. Under Select virtual machine to attach image, click Create a new virtual machine.

    Select the virtual machine to attach an image

    Select the virtual machine to attach an image

  7. Enter the VM settings and specifications, including VM Name, Path, CPU count, Memory, MB, Generation (G1 or G2), OS Type, and Network Connection. Click OK, and then click Next. Note that when adding memory, you need to multiply the amount of GB by 1024 MB. In my case, 4 GB * 1024 MB = 4092 MB.

    VM settings and specifications

    VM settings and specifications

  8. Under Select option for VHD/VHDX image format, select VHD pre-allocated image, and click Next.

    Select the option for VHDVHDX image format

    Select the option for VHDVHDX image format

  9. Set the destination for the image file, and click Convert.

    Converting the image

    Converting the image

  10. The procedure may take several minutes.
    image12

    image12

    Conversion in progress

    Conversion in progress

  11. Once finished, open Hyper-V Manager, and turn on your VM.
  12. Log in to your guest operating system and configure it as needed.

Your VM is up and running.

Conclusion

There are certain situations where you, as an IT admin, would need to migrate your VM from XenServer to Hyper-V Server.

The process of migrating a VM from XenServer to Hyper-V comprises three steps. First, you need to remove any Xen-related tools from the VM you want to migrate. Second, you need to export the VM from XenServer to an OVF/OVA file. Third, you need to import the exported VM to Hyper-V Server.

Subscribe to 4sysops newsletter!

Exporting and importing are done using StarWind V2V Converter, a free tool well known by IT Admins. In this article, we documented step-by-step procedures for how to do it.

avataravatar
0 Comments

Leave a reply

Your email address will not be published.

*

© 4sysops 2006 - 2023

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account