Windows 10: Export Hyper-V Virtual Machine in Windows 10  

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 Category: Virtualization
    13 Mar 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 32,382

    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:	381 
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:	283 
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:	320 
Size:	47.2 KB 
ID:	90966
    Click image for larger version. 

Name:	Export_Hyper-V_virtual_machine-4.png 
Views:	330 
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:	330 
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:	290 
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:	248 
Size:	11.5 KB 
ID:	90970
    Click image for larger version. 

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

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



    That's it,
    Shawn


  1. Cliff S's Avatar
    Posts : 21,255
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       23 Jul 2016 #1

    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. Cliff S's Avatar
    Posts : 21,255
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       31 Jul 2016 #2

    @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. GalaxyGe's Avatar
    Posts : 69
    Windows 10 Pro, Ubuntu 16.04 LTS
       06 Oct 2017 #3

    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. Brink's Avatar
    Posts : 32,382
    64-bit Windows 10 Pro build 18242
    Thread Starter
       06 Oct 2017 #4

      My ComputersSystem Spec

  5. Cliff S's Avatar
    Posts : 21,255
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       07 Oct 2017 #5

    GalaxyGe said: 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. GalaxyGe's Avatar
    Posts : 69
    Windows 10 Pro, Ubuntu 16.04 LTS
       07 Oct 2017 #6

    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. Cliff S's Avatar
    Posts : 21,255
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       07 Oct 2017 #7

    GalaxyGe said: 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.    07 Oct 2017 #8

    Cliff S said: 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.    07 Oct 2017 #9

    GalaxyGe said: 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

Tutorial Categories

Export Hyper-V Virtual Machine in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
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...
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...
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...
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...
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...
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 22:33.
Find Us