Page 1 of 2 12 LastLast
    Export Hyper-V Virtual Machine in Windows 10

    Export Hyper-V Virtual Machine in Windows 10

    How to Export Hyper-V Virtual Machines in Windows 10

    Published by BrinkCategory: Virtualization
    19 Jul 2016 Last Updated: 13 Mar 2017 at 19:44

    Published by


    Brink's Avatar
    Administrator

    Posts: 24,390

    Show Printable Version 


    How to Export Hyper-V Virtual Machines in Windows 10

    information   Information
    Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

    You can use Hyper-V's export and import functionality to quickly duplicate virtual machines. Exported virtual machines can be used for backup or as a way to move a virtual machine between Hyper-V hosts.

    Import allows you to restore virtual machines. You don't need to export a virtual machine to be able to import it.

    When creating an export of a virtual machine, all associated files are bundled in the export. This includes configuration files, hard drive files, and any existing checkpoint files.

    This tutorial will show you how to export a single or all Hyper-V virtual machines (guests) on your Windows 10 PC (host).

    You must be signed in as an administrator to be able to export a Hyper-V virtual machine.


    CONTENTS:
    • Option One: To Export Hyper-V Virtual Machine(s) using Hyper-V Manager
    • Option Two: To Export All Hyper-V Virtual Machines using PowerShell
    • Option Three: To Export a Single Hyper-V Virtual Machine using PowerShell



    Video by: Kari in TF Video thread






    Export Hyper-V Virtual Machine in Windows 10 OPTION ONE Export Hyper-V Virtual Machine in Windows 10
    To Export Hyper-V Virtual Machine(s) using Hyper-V Manager

    1. Open Hyper-V Manager.

    2. Select the Hyper-V host (ex: "BRINK-DESKTOP") in the left pane you want to export a virtual machine from, select one or more virtual machine(s) in the middle pane to export, and click/tap on Export in the right Actions pane. (see screenshot below)
    Note   Note
    You can press and hold the Ctrl key and click/tap on any virtual machine(s) to select them to export, then release the Ctrl key when finished selecting.


    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine-1.png 
Views:	106 
Size:	66.5 KB 
ID:	90964

    3. Click/tap on Browse, navigate to and select the folder (ex: "My Virtual Machines") that you want to export to, click/tap Select Folder, and click/tap on Export. (see screenshots below)

    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine-2.png 
Views:	91 
Size:	71.9 KB 
ID:	90965

    4. The virtual machine(s) will now be exported. It may take a while to finish. (see screenshots below)

    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine-3.png 
Views:	104 
Size:	47.2 KB 
ID:	90966
    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine-4.png 
Views:	112 
Size:	41.2 KB 
ID:	90967

    5. When finished, you can close Hyper-V Manager if you like.






    Export Hyper-V Virtual Machine in Windows 10 OPTION TWO Export Hyper-V Virtual Machine in Windows 10
    To Export All Hyper-V Virtual Machines using PowerShell

    Note   Note
    For more details about the Export-VM command used in this option, see: Export-VM


    1. Open an elevated PowerShell.

    2. Copy and paste the command below into the elevated PowerShell, and press Enter.

    Get-VM | Export-VM –Path 'Full path of folder to export to'

    Note   Note
    Substitute Full path of folder to export to in the command above with the actual full path of the folder location you want to export the virtual machines' files to.


    3. When finished, you can close PowerShell if you like.
    Note   Note
    This may take a while to finish exporting the virtual machine(s) to the specified folder location.







    Export Hyper-V Virtual Machine in Windows 10 OPTION THREE Export Hyper-V Virtual Machine in Windows 10
    To Export a Single Hyper-V Virtual Machine using PowerShell

    Note   Note
    For more details about the Export-VM command used in this option, see: Export-VM


    1. Open an elevated PowerShell.

    2. Type the command below into the elevated PowerShell, press Enter, and make note of the name (ex: "w10 build 14379") of the virtual machine you want to export. (see screenshot below)

    get-vm

    Click image for larger version. 

Name:	get-vm_PowerShell.png 
Views:	130 
Size:	26.7 KB 
ID:	90968

    3. Type the command below into the elevated PowerShell, and press Enter. (see screenshot below)

    Export-VM -Name 'Name of virtual machine' –Path 'Full path of folder to export to'

    Note   Note
    Substitute Name of virtual machine in the command above with the name of the virtual machine from step 2 above.

    Substitute Full path of folder to export to in the command above with the actual full path of the folder you want to export the virtual machine to.

    For example: Export-VM -Name 'w10 build 14379' –Path 'D:\My Virtual Machines'


    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine_PowerShell-1.png 
Views:	101 
Size:	16.0 KB 
ID:	90969

    4. The virtual machine will now be exported. It may take a while to finish. (see screenshots below)

    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine_PowerShell-2.png 
Views:	101 
Size:	11.5 KB 
ID:	90970
    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine-4.png 
Views:	112 
Size:	41.2 KB 
ID:	90967

    5. When finished, you can close PowerShell if you like.



    That's it,
    Shawn


  1.    23 Jul 2016 #1
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,988
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    Great tut Shawn!
    I had to figure it out myself awhile back when I upgraded my 2nd internal to a 1TB SSD using 485GB for my VM's(need room to grow, besides having more machines, plus on an SSD they boot even faster than the host, lacking, normally, most of the peripherals ).
    Thankfully Hyper-V is relatively intuitive(relatively).
    But I was talking to Kari, and he taught me, it is also important to have the backups, for the fall you nuke your VM & all checkpoints, so you can retain not only the VM, but the activation too.
      My ComputersSystem Spec
  2.    31 Jul 2016 #2
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,988
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    @Brink & @Kari,
    I just saw this new post: Windos just Trashed 1TB data External HDD - Windows 10 Forums and I am sooooo glad that after the tutorial and the video, plus Kari explain to me, how important a back up to an external disk is, and not just using Export to move the folders to another or new disk is.
    Thanks again you Over Geeks

    information   Information
    ***(this was also posted with the link, to show others, why this is so important)***
    Don't delay VM geeks, do it today, if you don't have a backup, or else, you could end up like this poor member
      My ComputersSystem Spec
  3.    1 Week Ago #3
    Join Date : Jun 2016
    Posts : 44
    Windows 10 Pro

    Thanks guys,
    I managed to export my vm using option [3]. For some reason option [1] does not work for me. When I try to export using Hyper-V Manager, I can browse to the target folder on my local drive and click export. Then the mmc.exe including the Export thread goes to (Not Responding) and I can only kill the the whole mmc process.
    I have recorded a dump file if anybody would be willing to have a look.
      My ComputersSystem Spec
  4.    1 Week Ago #4
    Join Date : Oct 2013
    Posts : 24,390
    64-bit Windows 10 Pro build 17017
    Thread Starter

      My ComputersSystem Spec
  5.    1 Week Ago #5
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,988
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    Quote Originally Posted by GalaxyGe View Post
    Thanks guys,
    I managed to export my vm using option [3]. For some reason option [1] does not work for me. When I try to export using Hyper-V Manager, I can browse to the target folder on my local drive and click export. Then the mmc.exe including the Export thread goes to (Not Responding) and I can only kill the the whole mmc process.
    I have recorded a dump file if anybody would be willing to have a look.
    You really might want to think about exporting, to either a 2nd internal, or much better; an external USB for backing up.
      My ComputersSystem Spec
  6.    1 Week Ago #6
    Join Date : Jun 2016
    Posts : 44
    Windows 10 Pro

    Export Hyper-V Virtual Machine in Windows 10


    No worries Cliff, I did export to local but then copied it to my NAS backup for safety. But as you say it's so critical I will do another copy to my out-of-house second USB treasury chest...
    I will have to read the article above.. is there absolutely no way to get ones Windows activation back if that UUID is lost? What if I just take a note of the UUID on a piece of paper... could one not call MS and get the key unlocked?
      My ComputersSystem Spec
  7.    1 Week Ago #7
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,988
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    Quote Originally Posted by GalaxyGe View Post
    No worries Cliff, I did export to local but then copied it to my NAS backup for safety. But as you say it's so critical I will do another copy to my out-of-house second USB treasury chest...
    I will have to read the article above.. is there absolutely no way to get ones Windows activation back if that UUID is lost? What if I just take a note of the UUID on a piece of paper... could one not call MS and get the key unlocked?
    @Kari, @Superfly, or @Brink can answer those questions netter than me.
    But that taking note of your UUID/GUID, doesn't work like that,
    It's a 128 bit number generated by Windows to identify your "hardware" be it bare metal or virtual. You can't just enter it somewhere, and call it a day.

    As for calling Microsoft, about the key if you lose your VM, the above three members, I mentioned above, can clarify that.
    But it would just be easier to have a backup, and if you wish to get rid of the VM and start over, deactivate the key using
    Code:
    slmgr /upk 
    then deleting the machine, and re-creating one(this also works if you buy a new PC and prefer to use the retail key on the new one, and let the old PC revert to the OEM version).
      My ComputersSystem Spec
  8.    1 Week Ago #8
    Join Date : Dec 2015
    Posts : 5,405
    Windows10

    Quote Originally Posted by Cliff S View Post
    @Kari, @Superfly, or @Brink can answer those questions netter than me.
    But that taking note of your UUID/GUID, doesn't work like that,
    It's a 128 bit number generated by Windows to identify your "hardware" be it bare metal or virtual. You can't just enter it somewhere, and call it a day.

    As for calling Microsoft, about the key if you lose your VM, the above three members, I mentioned above, can clarify that.
    But it would just be easier to have a backup, and if you wish to get rid of the VM and start over, deactivate the key using
    Code:
    slmgr /upk 
    then deleting the machine, and re-creating one(this also works if you buy a new PC and prefer to use the retail key on the new one, and let the old PC revert to the OEM version).
    That does not work for digital licences.
      My ComputerSystem Spec
  9.    1 Week Ago #9
    Join Date : Dec 2015
    Posts : 5,405
    Windows10

    Quote Originally Posted by GalaxyGe View Post
    Thanks guys,
    I managed to export my vm using option [3]. For some reason option [1] does not work for me. When I try to export using Hyper-V Manager, I can browse to the target folder on my local drive and click export. Then the mmc.exe including the Export thread goes to (Not Responding) and I can only kill the the whole mmc process.
    I have recorded a dump file if anybody would be willing to have a look.
    Actually, the export tool does not do anything more sophisticated than copying the vhds and the vm file (.vmcx files). You can manually back the up using file explorer.
      My ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Tutorial Category
Virtualization Import Hyper-V Virtual Machine in Windows 10
How to Import Hyper-V Virtual Machines Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they...
Tutorials
Customization Create Shortcut of Hyper-V Virtual Machine in Windows
How to Create Shortcut of Hyper-V Virtual Machine in Windows 8 and 10 There's nothing wrong in running the Hyper-V Manager and launch your virtual machines from there. However, creating a shortcut for each vm you have you can start them fast...
Tutorials
Virtualization Add or Remove Physical Hard Disk for Hyper-V Virtual Machine
How to Add or Remove a Physical Hard Disk for Hyper-V Virtual Machine Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical...
Tutorials
Solved Hyper-V Virtual Machine Crash When Audio Activates (Event 1000, 1026)
UPDATE: Problem solved. See post #14's "long story" for steps that led to the findings above as the same steps can aid in hunting down this type of issue if neither of the above applies. Hello, I recently did an in place upgrade to Windows...
Virtualization
Virtualization Remove Floppy Disk Drive in Windows Hyper-V Virtual Machine
How to Remove Floppy Disk Drive in Windows Hyper-V Virtual Machine Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical...
Tutorials
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:38.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums