Windows 8 and 8.1 Forums


Hyper-V Virtual Machine - Export and Import in Windows 8

  1. #1
    Hyper-V Virtual Machine - Export and Import in Windows 8

    Hyper-V Virtual Machine - Export and Import in Windows 8
    How to Export and Import a Hyper-V Virtual Machine in Windows 8 and 8.1
    Published by Brink is online now
    21 Jun 2014
    Default Hyper-V Virtual Machine - Export and Import in Windows 8

    Published by


    Brink's Avatar
    Administrator

    Join Date: Jul 2009
    Posts: 22,581

    How to Export and Import a Hyper-V Virtual Machine in Windows 8 and 8.1


    information   Information
    The Hyper-V technology provides an environment that you can use to create and manage virtual machines and their resources. Each virtual machine is an isolated, virtualized computer system that is capable of running its own operating system. This allows you to run multiple operating systems at the same time on the same physical computer.

    You can export a created Hyper-V virtual machine as a backup, and import it to register, restore, or copy to the same or another computer.

    This tutorial will show you how to export and import a Hyper-V virtual machine in Windows 8 Pro, Windows 8 Enterprise, Windows 8.1 Pro, and Windows 8.1 Enterprise.

    Note   Note
    When you export a Hyper-V virtual machine, it will create a complete backup of the virtual machine files in a folder named with the same name as the virtual machine, and save it where you specified. This folder will consist of the items below. This is what would be imported for the virtual machine.

    Snapshots - This folder contains any checkpoints you created for the virtual machine (VM). Checkpoints provide a way to capture the exact state of a particular virtual machine as it existed at one specific point in time. Unlike a backup or system restore snapshot, this is a complete checkpoint of the VM as it exists at the time the checkpoint was taken. This means the state of the virtual hard disk and the contents of memory are saved as well, and you can take these checkpoints at any point in time, such as partway through Windows Setup or at beginning of Windows Welcome, should you need to test or repeatedly access these interfaces.

    Virtual Hard Disks - This folder contains copies of each virtual hard disk .vhdx file associated with the virtual machine.

    Virtual Machines - This would contain the ID and configuration .xml files for the virtual machine.





    Hyper-V Virtual Machine - Export and Import in Windows 8 OPTION ONE Hyper-V Virtual Machine - Export and Import in Windows 8
    To Export ALL Hyper-V Virtual Machines


    Note   Note
    This option exports all virtual machines to a location you specify. Each virtual machine will be exported to its own folder.

    If you only want to export specific virtual machines, then see OPTION TWO below instead.


    1. Open an elevated PowerShell prompt.

    2. In the elevated PowerShell prompt, type the command below, and press Enter. (see screenshot below step 4)

    Get-VM | Export-VM –Path "Full save to path"


    Note   Note
    Substitute Full save to path in the command above with the actual full path to where you want to export all Hyper-V virtual machines to.

    For example: To export them all to the root of my E: drive, I would type this below.

    Get-VM | Export-VM –Path "E:\"



    3. Depending on how many virtual machines you have, this could take quite some time to finish exporting each of them.

    Note   Note
    If you like, you can monitor the exporting progress or cancel exporting a VM in the Hyper-V Manager.

    Click image for larger version



    4. When you see the PS C:\Windows\system32> prompt return, the VMs have finished being exported. (see screenshots below)

    Click image for larger version

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





    Hyper-V Virtual Machine - Export and Import in Windows 8 OPTION TWO Hyper-V Virtual Machine - Export and Import in Windows 8
    To Export a Hyper-V Virtual Machine

    1. Open the Hyper-V Manager, and do step 2 or 3 below for what you would like to export.

    2. Export Virtual Machine

    • In the left pane, select the computer name (ex: BRINK-PC) that the virtual machine is on.
    • Under Virtual Machines in the middle pane, select the virtual machine (ex: Windows 8.1 RTM) you want to export.
    • In the right Actions pane under the virtual machine's name (ex: Windows 8.1 RTM), click/tap on Export, and go to step 4 below. (see screenshot below)


    Click image for larger version

    3. Export Checkpoint of a Virtual Machine

    • In the left pane, select the computer name (ex: BRINK-PC) that the virtual machine is on.
    • Under Virtual Machines in the middle pane, select the virtual machine (ex: 8.1 Update Enterprise) that the checkpoint was created from.
    • Under Checkpoints in the middle pane, select the checkpoint (ex: 8.1 Update Enterprise - (6/21/2014 - 10:06:56 PM)) with the timestamp that you want to export.
    • In the right Actions pane under the checkpoint's name (ex: 8.1 Update Enterprise - (6/21/2014 - 10:06:56 PM)), click/tap on Export, and go to step 4 below.


    Click image for larger version

    4. Browse to and select the location (ex: my desktop) you want to save the files of the exported virtual machine at, and click/tap on Export. (see screenshot below)

    Name:  Export_Hyper-V_Virtual_Machine-2.png
Views: 10703
Size:  15.1 KB

    5. The selected virtual machine will now start exporting. You can monitor the exporting percentage status. This could take a few minutes or so to complete. (see screenshot below)

    Click image for larger version

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





    Hyper-V Virtual Machine - Export and Import in Windows 8 OPTION THREE Hyper-V Virtual Machine - Export and Import in Windows 8
    To Import a Hyper-V Virtual Machine


    1. Open the Hyper-V Manager.

    2. In the left pane, select the computer name (ex: BRINK-PC) that you want to import the virtual machine to, and click/tap on Import Virtual Machine in the right Actions pane.

    Click image for larger version
    3. If the Before you Begin page shows, click/tap on Next. (see screenshot below)

    Click image for larger version

    4. Browse to and select the exported folder (ex: Windows 8.1 RTM) from Option One or a folder that contains a virtual machine, and click/tap on Next. (see screenshot below)

    Click image for larger version

    5. Select the virtual machine (ex: Windows 8.1 RTM) you want to import, and click/tap on Next. (see screenshot below)

    Click image for larger version

    6. Do step 7, 8, or 9 below for what type of import you would like to perform. (see screenshot below)

    Click image for larger version

    7. To Perform a Register Import

    Note   Note
    If you have a virtual machine where you have already saved all of the virtual machine files exactly where you want them, and you just need Hyper-V to start using the virtual machine where it is – this is the option you want to choose.


    A) Select (dot) Register the virtual machine in-place, and click/tap on Next. (see screenshot below step 6)

    B) Verify this is what you want, click/tap on Finish, and go to step 10 below. (see screenshot below)

    Click image for larger version

    8. To Perform a Restore Import

    Note   Note
    If your virtual machine files are stored on a file share / removable drive / etc… and you want Hyper-V to copy the files to a location you choose, and then register the virtual machine – this is the option for you.


    A) Select (dot) Restore the virtual machine, and click/tap on Next. (see screenshot below step 6)

    B) Check the Store the virtual machine in a different location box, browse to and select the (ex: "D:\Virtual Machine\Windows 8.1 RTM") folder(s) where you want to import the exported virtual machine files into, and click/tap on Next. (see screenshot below)

    Click image for larger version

    C) Browse to and select the folder (ex: "D:\Virtual Machine\Windows 8.1 RTM\Virtual Hard Disks") where you want to import the exported virtual hard disks into, and click/tap on Next. (see screenshot below)

    Click image for larger version

    D) Verify this is what you want, click/tap on Finish, and go to step 10 below. (see screenshot below)

    Click image for larger version

    9. To Perform a Copy Import

    Note   Note
    If you have a set of virtual machine files that you want to import multiple times (e.g. you are using them as a template for new virtual machines) this is what you want to choose. This will copy the files to a location you specify, give the virtual machine a new unique ID, and then register the virtual machine.


    A) Select (dot) Copy the virtual machine, and click/tap on Next. (see screenshot below step 6)

    B) Check the Store the virtual machine in a different location box, browse to and select the (ex: "D:\Virtual Machine\Windows 8.1 RTM") folder(s) where you want to import the exported virtual machine files into, and click/tap on Next. (see screenshot below step 8B)

    C) Browse to and select the folder (ex: "D:\Virtual Machine\Windows 8.1 RTM\Virtual Hard Disks") where you want to import the exported virtual hard disks into, and click/tap on Next. (see screenshot below step 8C)

    D) Verify this is what you want, click/tap on Finish, and go to step 10 below. (see screenshot below)

    Click image for larger version

    10. The virtual machine will now be imported. It may take a few minutes to finish. (see screenshots below)

    Name:  Import_Hyper-V_Virtual_Machine-Restore-4.png
Views: 10470
Size:  9.1 KB

    Name:  Import_Hyper-V_Virtual_Machine-Restore-5.png
Views: 10432
Size:  9.7 KB

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



    That's it,
    Shawn


  2. #1


    A Finnish ex-pat in Leipzig, Germany
    Posts : 1,452
    Windows 8.1 Pro with Media Center


    Nice one Shawn, and one really needed.

      My System SpecsSystem Spec

  3. #2


    Posts : 22,581
    64-bit Windows 10


    Tutorial updated with OPTION ONE to export all Hyper-V virtual machines at once.
      My System SpecsSystem Spec

Hyper-V Virtual Machine - Export and Import in Windows 8
Related Threads
How to Create a Linux Hyper-V Virtual Machine in Windows 8 Although best when running Windows guests, Windows 8 built-in Microsoft Hyper-V can also be used to run Linux guests. Officially Hyper-V only supports SUSE and Red Hat enterprise server distributions but with a few simple tricks any...
How to Completely Delete a Hyper-V Virtual Machine in Windows 8, 8.1, and Server 2012 The Hyper-V technology provides an environment that you can use to create and manage virtual machines and their resources. Each virtual machine is an isolated, virtualized computer system that is capable of...
I'm using an AlienWare M14 machine. I tried to create a virtual machine locally using Client Hyper-V on Windows 8 Pro, but it still doesn't work (took me a lot of time). I added the Hyper-V features in "Turn windows feature on or off", and all of the requirements to run Hyper-V are fulfilled (SLAT,...
I have activated Hyper-V on my Windows 8 Pro computer. I have a vhd file created by VirtualBox and another from Microsofts WindowsXPMode_en-us.vhd. Being 100% new to Hyper-V, I am not sure if I am doing this correctly. I have gone to the Hyper-V Manager, selected Import Virtual Machine. I...
Installed windows 8.0 pro on oracle VM VirtualBox (running 8.1 pro on host machine) and it asks me to activate windows. Okay, but it doesn't accept the product key I purchased for the host machine. what to do?
Hey all. I just recently purchased a laptop with Windows 8 and wanted to set up a VM of Windows 7 on it. I have never worked with VM's before and I'm ready to get it going. Could anyone provide any help as to how to do it. Thanks!!!
Solved Windows 8 Virtual Machine in Virtualization
I had installed windows 8 in VBOX. I could not get the sound to work. It stated no Audio detected. I uninstalled it, and reinstalled it in VMWARE. It is working fine. I tried to run it again in VBOX but the same thing, no audio drivers detected. I am running it in VMWARE and it is working great,...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook