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

Discus and support Import Hyper-V Virtual Machine in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Import Hyper-V Virtual Machine in Windows 10 How to Import Hyper-V Virtual Machines Hyper-V enables running virtualized computer systems... Discussion in 'Windows 10 Tutorials' started by Cliff S, Oct 9, 2016.

  1. Cliff S New Member

    Import Hyper-V Virtual Machine in Windows 10


    How to: 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 exist in a virtualized and isolated environment.

    You can use 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. Import will try to recreate the virtual machine from whatever is available. Importing a virtual machine registers the virtual machine with the Hyper-V host. A virtual machine export can be imported back into the host from which it was derived or new host.

    This tutorial will show you how to import a Hyper-V virtual machine (guest) on your Windows 10 PC (host).

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

    *note editions.


    CONTENTS:
    • Option One: To Import Hyper-V Virtual Machine using Hyper-V Manager
    • Option Two: To Import Hyper-V Virtual Machine using PowerShell


    Video by: Kari in TF Video thread






    OPTION ONE [/i] To Import Hyper-V Virtual Machine 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 import a virtual machine to, and click/tap on Import Virtual Machine in the right Actions pane. (see screenshot below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    3. Click/tap on Next on the "Before you Begin" screen. (see screenshot below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    4. Click/tap on Browse, navigate to and select the folder (ex: "Windows 7 Ultimate") that contains the virtual machine (.vmcx file) you want to import, click/tap Select Folder, and click/tap on Next. (see screenshots below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    5. Select the virtual machine (ex: "Windows 7 Ultimate") you want to import, and click/tap on Next. (see screenshots below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    6. Select (dot) an import type you want to perform, click/tap on Next, and go to step 7 or step 8 below depending on what import type you selected. (see screenshot below)
    [table][tr][td]Import Type[/td] [td]Description[/td] [/tr] [tr][td]Register the virtual machine in-place[/td] [td]The current location of the Export files is where the virtual machine will be run from. When imported, the virtual machine has the same ID as it did at the time of export. Because of this, If the virtual machine is already registered with Hyper-V it needs to be deleted before the import will work. When the import has completed, the export files become the running state files and cannot be removed.[/td] [/tr] [tr][td]Restore the virtual machine[/td] [td]You are given an option to store the VM files in a specific location or use the locations default to Hyper-V. This import type creates a copy of the exported file and moves them to the selected location. When imported, the virtual machine has the same ID as it did at the time of export. Because of this, if the virtual machine is already running in Hyper-V it needs to be deleted before the import can be completed. When the import has completed the exported files remain untouched and can be removed and / or imported again.[/td] [/tr] [tr][td]Copy the virtual machine[/td] [td]This import type is similar to the Restore type in that you select a location for the VM files. The difference is that when imported the virtual machine has a new unique ID. This allows for the Virtual Machine to be imported into the same host multiple time.[/td] [/tr] [/table]


    Import Hyper-V Virtual Machine in Windows 10 [​IMG]


    7. If you selected to "Register the virtual machine in-place"
    A) Click/tap on Finish on the "Summary" screen, and go to step 9 below. (see screenshot below)


    Import Hyper-V Virtual Machine in Windows 10 [​IMG]


    8. If you selected to "Restore the virtual machine" or "Copy the virtual machine"
    A) If you like, you can specify new or use existing folders to store the virtual machine files. When finished, click/tap on Next. (see screenshot below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    B) Browse to and select the folder where you want to store the imported virtual hard disks (.vhdx file) for this virtual machine, and click/tap on Next. (see screenshot below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    C) Click/tap on Finish on the "Summary" screen, and go to step 9 below. (see screenshot below)

    *note This may take a while to finish copying the virtual machine files and hard disk to the selected folder location(s).

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

    9. The Hyper-V virtual machine (ex: "Windows 7 Ultimate") has now been imported to the selected Hyper-V host (ex: "BRINK-DESKTOP"). (see screenshot below)

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]

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





    OPTION TWO [/i] To Import Hyper-V Virtual Machine using PowerShell
    *note For more details about the Import-VM command used in this option, see: Import-VM
    1. Open an elevated PowerShell.

    2. Do step 3 (in-place), step 4 (in-place) (restore) or step 5 (copy) below for the import type you want to perform.


    3. To "Register the virtual machine in-place (use the existing unique ID)"
    *note The current location of the Export files is where the virtual machine will be run from. When imported, the virtual machine has the same ID as it did at the time of export. Because of this, If the virtual machine is already registered with Hyper-V it needs to be deleted before the import will work. When the import has completed, the export files become the running state files and cannot be removed.
    A) Type the command below into the elevated PowerShell, press Enter, and go to step 6 below. (see screenshot below)

    *Arrow Import-VM -Path 'Full path of virtual machine .vmcx file'


    Import Hyper-V Virtual Machine in Windows 10 [​IMG]
    Note Substitute Full path of virtual machine .vmcx file in the command above with the actual full path of where the virtual machine .vmcx file you want to import is located.

    For example:
    Code:
    Import Hyper-V Virtual Machine in Windows 10 [​IMG]



    Import Hyper-V Virtual Machine in Windows 10 [​IMG]


    4. To "Restore the virtual machine (use the existing unique ID)"
    *note You have the option to store the VM files in a specific location or use the locations default to Hyper-V. This import type creates a copy of the exported file and moves them to the selected location. When imported, the virtual machine has the same ID as it did at the time of export. Because of this, if the virtual machine is already running in Hyper-V it needs to be deleted before the import can be completed. When the import has completed the exported files remain untouched and can be removed and / or imported again.
    A) Type the command below you want to use into the elevated PowerShell, press Enter, and go to step 6 below. (see screenshot below)

    (To use default Hyper-V folders to import and copy virtual machine .vmcx and virtual hard disk .vhdx files)
    *Arrow Import-VM -Path 'Full path of .vmcx file' -Copy

    OR

    (To specify Hyper-V folders to import and copy virtual machine .vmcx and virtual hard disk .vhdx files)
    Code:
    Import Hyper-V Virtual Machine in Windows 10 [​IMG]
    Note Substitute Full path of .vmcx file in the commands above with the actual full path of where the virtual machine .vmcx file you want to import is located.

    Substitute Full path of folder to copy .vhdx file in the second command above with the actual folder path where you want to copy the virtual hard disk .vhdx file of the virtual machine you want to import.

    Substitute Full path of folder to copy .vhdx file in the second command above with the actual folder path where you want to copy the virtual machine .vmcx file of the virtual machine you want to import.

    For example:
    Code:
    Import Hyper-V Virtual Machine in Windows 10 [​IMG]


    5. To "Copy the virtual machine (create a new unique ID)"
    *note This import type is similar to the Restore type in that you select a location for the VM files. The difference is that when imported the virtual machine has a new unique ID. This allows for the Virtual Machine to be imported into the same host multiple time.
    A) Type the command below you want to use into the elevated PowerShell, press Enter, and go to step 6 below. (see screenshot below)

    (To use default Hyper-V folders to import and copy virtual machine .vmcx and virtual hard disk .vhdx files)
    *Arrow Import-VM -Path 'Full path of .vmcx file' -Copy -GenerateNewId

    OR

    (To specify Hyper-V folders to import and copy virtual machine .vmcx and virtual hard disk .vhdx files)
    Code:
    Import Hyper-V Virtual Machine in Windows 10 [​IMG]
    Note Substitute Full path of .vmcx file in the commands above with the actual full path of where the virtual machine .vmcx file you want to import is located.

    Substitute Full path of folder to copy .vhdx file in the second command above with the actual folder path where you want to copy the virtual hard disk .vhdx file of the virtual machine you want to import.

    Substitute Full path of folder to copy .vhdx file in the second command above with the actual folder path where you want to copy the virtual machine .vmcx file of the virtual machine you want to import.

    For example:
    Code:
    Import Hyper-V Virtual Machine in Windows 10 [​IMG]


    6. When finished, you can close PowerShell.

    *note This may take a while to finish copying the virtual machine files and hard disk to the selected folder location(s).

    That's it,
    Shawn


    Related Tutorials

    :)
     
    Cliff S, Oct 9, 2016
    #1
  2. msurkan Win User

    Windows 10 Hyper-V no longer recognizes VMs after Creator's Update

    After the Creator's Update was installed on my Windows 10 Pro system Hyper-V disappeared. I had to re-install Hyper-V again. That wouldn't bother me so much if Hyper-V also didn't stop recognizing my virtual machines. The Hyper-V console no longer shows
    any of my old VMs.

    I tried the option to "Import Virtual Machine" from the Hyper-V console and pointed the import wizard to the folder where my .vhdx files are stored but I only get an error saying "Hyper-V did not find virtual machines to import from location".

    I tried uninstalling the Creator's Update but got an error saying that the previous version files are not available and that the update cannot be undone.

    How can I recover my virtual machines? The .vhdx files are still in the same folders and are the correct size.
     
    msurkan, Oct 9, 2016
    #2
  3. Andre Da Costa, Oct 9, 2016
    #3
  4. Cliff S New Member

    Import Hyper-V Virtual Machine in Windows 10

    Finished!
    Now to upgrade*Smile
    Again...!

    Import Hyper-V Virtual Machine in Windows 10 [​IMG]
     
    Cliff S, Oct 9, 2016
    #4
  5. sos1043 Win User
    @Brink
    Lots of valuable info, kudos both you & Kari.
    This prolly aint the place, but in regards to 'keepin it clean' (file structure). I have all created/dynamic data on a different partition from OS (Win10P64); is there any recommended format w/regards to Hyper-V that could be advantageous? Have a top level for all VM's, /VMname with everything under (.vhdx, .vmcs, .vmcx) & don't know if this would be detrimental down the road...?
    A tad different than a full-blown hyperVisr (ESXi) & now it seems this build on 10 is pretty sweet, thus curious on structure cleanliness.
    ...behavior mods for me - 'Save' 'Shutdown' & 'Turn Off' had to play with as no one said anything (yes I read Ben Armstrong's Virt Blog on turning off a VM here, referenced several times over the years *Eek).

    *Biggrin Wish there was a way to 'Save' while using an RDP session (not using VM connection).
    Sorry if this appears as cross-post . But I'll keep looking around, thx all fer sharing info...!
     
    sos1043, Apr 18, 2017
    #5
  6. Brink
    Brink New Member
    Hello @sos1043, *Smile

    I prefer to keep my Hyper-V VMs on a separate hard drive that the OS drive as well. This way if I should have to reinstall Windows, all I have to do is import my VMs back afterwards.

    I prefer to keep individual VM in its own separate folder with all of its files.
     
    Brink, Apr 18, 2017
    #6
  7. sos1043 Win User
    My thoughts and usage exactly. Thought I'd check.
    Any quick notes on an RDP session opposed to the VM connection application, then 'Save'?
     
    sos1043, Apr 18, 2017
    #7
  8. Brink
    Brink New Member

    Import Hyper-V Virtual Machine in Windows 10

    Not sure about the RDP option, but that would make a good question to post in a new thread to get feedback about.
     
    Brink, Apr 18, 2017
    #8
  9. matfx Win User
    Thank you Brink very useful tutorial.
     
    matfx, Apr 21, 2017
    #9
  10. Brink
    Brink New Member
    I'm glad it could help matfx. *Smile
     
    Brink, Apr 4, 2018
    #10
Thema:

Import Hyper-V Virtual Machine in Windows 10

Loading...
  1. Import Hyper-V Virtual Machine in Windows 10 - Similar Threads - Import Hyper Virtual

  2. How to import, export, or clone Virtual Machines in Hyper-V

    in Windows 10 News
    How to import, export, or clone Virtual Machines in Hyper-V: [IMG]This article helps you import, export, or clone virtual machines in Hyper-V on Windows 11/10. At times, you might want to move your virtual machine to another computer and start using it immediately. In such moments, you could use this guide to import, export, and close...
  3. Issues with Hyper-V Virtual Machines

    in Windows 10 Network and Sharing
    Issues with Hyper-V Virtual Machines: Hi all, I'm running Ubuntu 19.04 in a Hyper-V Virtual Machine. It's configured to use Hyper-V's "Default Switch" network adapter, but for some reason, the VM doesn't seem to get internet access. My computer is connected to the Internet (both through Wi-Fi and Ethernet). I've...
  4. Hyper V- Virtual Machine Error

    in Windows 10 Updates and Activation
    Hyper V- Virtual Machine Error: While starting the Vistual Machine i am facing the below error shown in Event Viewer. Plz Help me out to resolve this problem. License Activation (slui.exe) failed with the following error code: hr=0x8007232B Command-line arguments:...
  5. Hyper V not connecting to virtual machine

    in Windows 10 BSOD Crashes and Debugging
    Hyper V not connecting to virtual machine: Suddenly, Hyper V would not connect to any Virtual Machine using the Virtual Machine Connection. I trying creating new VMs and nothing worked. I am using Windows 10 Education....
  6. Hyper-V - Optimizing Virtual Machines

    in Windows 10 Tutorials
    Hyper-V - Optimizing Virtual Machines: How to: Hyper-V - Optimizing Virtual Machines Running Windows on a virtual machine can naturally never be as fast as same version of Windows on same computer running on physical hardware. However, by tweaking virtual machine settings, you can greatly impact the speed and...
  7. Hyper-V Nested Virtualization: Run virtual machines on virtual machine

    in Windows 10 Tutorials
    Hyper-V Nested Virtualization: Run virtual machines on virtual machine: How to: Hyper-V Nested Virtualization: Run virtual machines on virtual machine [img] Information Nested Virtualization means that user can enable Hyper-V on existing virtual machines, and run virtual machines and Windows Sandbox on them. To make Nested Virtualization...
  8. Backing up Hyper-V Virtual Machines

    in Windows 10 Virtualization
    Backing up Hyper-V Virtual Machines: Hi, I was wondering if all I really need to do to backup activated virtual machines but not associated virtual hard drives is just to copy the virtual hard drive folder to another drive (or even one drive) . All I am really interested is in saving the machines which have...
  9. Export Hyper-V Virtual Machine in Windows 10

    in Windows 10 Tutorials
    Export Hyper-V Virtual Machine in Windows 10: How to: Export Hyper-V Virtual Machine in Windows 10 How to Export Hyper-V Virtual Machines in Windows 10 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...
  10. Create Shortcut of Hyper-V Virtual Machine in Windows

    in Windows 10 Tutorials
    Create Shortcut of Hyper-V Virtual Machine in Windows: How to: Create Shortcut of Hyper-V Virtual Machine in Windows How to Create Shortcut of Hyper-V Virtual Machine in Windows 8 and 10 [img] Note There's nothing wrong in running the Hyper-V Manager and launch your virtual machines from there. However, creating a...
Tags:

Users found this page by searching for:

  1. hyper v windows 10 import no virtual machine found

    ,
  2. importing a vm from 2008 to windows 10 hyperv

    ,
  3. windows 10 import virtual machine