As with any virtualization solution, it's possible to export a virtual machine in a few clicks.
That said, exporting a virtual machine from Hyper-V is very simple because there is no additional parameter proposed when exporting it.
To export a virtual machine from Hyper-V, select the virtual machine to export and click Export.
Select the folder where you want to export this virtual machine.
In our case, we will export it to this folder : C:\VMs.
Once exported, you will find a folder with 3 folders inside.
The "Snapshots" folder contains the snapshots (checkpoints) you created in Hyper-V for this virtual machine (if applicable).
The "Virtual Hard Disks" folder contains the virtual hard disk (VHD or VHDX) used by this virtual machine, and differencing hard disk files (AVHDX) if you created snapshots for this virtual machine.
Finally, you will find the configuration file for this virtual machine in the "Virtual Machines" folder.
Note that while exporting your virtual machine, you will see the "Cancel Exporting in Progress" option if you select the relevant virtual machine.
To import a virtual machine into Hyper-V, click "Import Virtual Machine" in the right-hand menu.
Note : to be able to re-import it, we first removed it from Hyper-V, as well as its hard disk file which was left in the default folder (C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks).
The "Import Virtual Machine" wizard is displayed.
In the "Locate Folder" step, click Browse and select the folder that contains the virtual machine that you exported.
The name of the virtual machine to import is displayed.
For the type of import, you will have 3 options :
In our case, we chose the "Restore the virtual machine" option because the old copy is no longer present in Hyper-V.
If you chose the "Restore the virtual machine" option, 2 additional steps will appear.
Here, the wizard proposes to store the virtual machine somewhere other than the default folders configured on your Hyper-V server.
In this case, these seettings suit us, so we just click Next.
Same for the virtual hard disk file.
A summary is displayed before importing your virtual machine.
The wizard copies files, including the virtual hard disk.
And imports the virtual machine into Hyper-V.
Once imported, it appears with its checkpoints if there were any.
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.