How to migrate a virtual machine from Windows to Hyper-V Server

The Hyper-V client is available since Windows 8. It is commonly used for testing or lab purposes. Check how to export virtual machine from Windows 8/8.1/10/11 and import to Windows Server or Hyper-V Server 2012R2/2016/2019 and 2022.

Microsoft released the first version of the Hyper-V client in Windows 8. It is commonly used for testing or lab purposes. You create a virtual machine, install the guest operating system and do what you need to do within the VM. The Hyper-V client is still available in Windows 10 and Windows 11.

There are cases when you would need to migrate VM from Windows to Hyper-V server. You can do it by exporting and importing VM, or moving VM from one to another host. I’ll show you how to export and import the VM using Windows 11 and Windows Server 2022 (Hyper-V Server). The procedure is equally applicable to previous operating systems.

Step 1: Export VM from Windows 11

In the first step, we export a virtual machine from Windows 11 to a shared network location. You can export it to local or removable storage as well.

  1. Connect to Windows 11 and open Hyper-V Manager.
  2. Shutdown the virtual machine you want to export.
  3. Right click on virtual machine and click Export..
  4. Specify where you want to save the file and click Export.
Specify where you want to save the files
  1. Wait until Hyper-V export VM to specified location.
Exporting status

Step 2: Import VM to Hyper-V Server

In the second step, we import the virtual machine from the shared network location to Hyper-V Server that is installed on Windows Server 2022.

  1. Connect to your Windows Server 2022 and open Hyper-V Manager.
  2. Right click on Hyper-V host and then click Import Virtual Machine…
Import Virtual Machine
  1. Under Before Your Begin click Next.
  2. Specify the folder containing the virtual machine to import and click Next.
Specify the folder containing the virtual machine to import
  1. Select virtual machine and click Next.
  2. Choose Import Type and click Next. There are three options available. You can register the virtual machine in-place (use the unique ID), restore the virtual machine (use the existing unique ID) and copy the virtual machine (create a new unique ID). I choose the third option as shown in the screenshot.
Choose Import Type
  1. Choose folders for virtual machine file and click Next. You can specify new or existing folders to store the virtual machine files.
  2. Choose where you wanto to store the imported virtual hard disk for the virtual machine and click Next.
  3. Specify the virtual switch you want to use on new Hyper-V host and click Next. In my case below, there is an error because there is no the same virtual switch name on source and destination host. That is not a big deal, you can select the virtual machine.
Connect network
  1. Specify storage locations and click Next.
  2. Click Finish to complete the procedure.
  3. Congratulation. You have successfully move your VM from Windows 11 o Hyper-V server. 
  4. Start the VM. 

I hope you enjoyed this article. If so, please feel free to share it with your friends and network. 

Leave a Reply

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

Share via
Copy link