Hyper-V Virtual Machine - Export in Windows 10

    Hyper-V Virtual Machine - Export in Windows 10

    How to Export Hyper-V Virtual Machines in Windows 10
    Published by
    2016-07-19
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 17,372

    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






    Hyper-V Virtual Machine - Export in Windows 10 OPTION ONE Hyper-V Virtual Machine - Export 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:	43 
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:	33 
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:	32 
Size:	47.2 KB 
ID:	90966
    Click image for larger version. 

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

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






    Hyper-V Virtual Machine - Export in Windows 10 OPTION TWO Hyper-V Virtual Machine - Export 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.







    Hyper-V Virtual Machine - Export in Windows 10 OPTION THREE Hyper-V Virtual Machine - Export 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:	41 
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:	30 
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:	33 
Size:	11.5 KB 
ID:	90970
    Click image for larger version. 

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

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



    That's it,
    Shawn



  1. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,892
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       2016-07-23 #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 System SpecsSystem Spec


  2. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,892
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       2016-07-31 #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 System SpecsSystem Spec


 


Similar Threads
Tutorial Category
Hyper-V Virtual Machine - Create Shortcut 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
Hyper-V Virtual Machine - Import 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
Hyper-V Virtual Machine - Add or Remove Physical Hard Disk
How to Add or Remove a Physical Hard Disk to 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
Hyper-V Floppy Disk Drive - Remove in Windows 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 12:32.
Find Us
Twitter Facebook Google+



Windows 10 Forums