Windows 10: Change Hyper-V Virtual Machines Default Folder in Windows 10

Discus and support Change Hyper-V Virtual Machines Default Folder in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Change Hyper-V Virtual Machines Default Folder in Windows 10 How to Change Default Folder to Store Hyper-V Virtual Machines Hyper-V... Discussion in 'Windows 10 Tutorials' started by labeeman, Jun 22, 2015.

  1. labeeman Win User

    Change Hyper-V Virtual Machines Default Folder in Windows 10


    How to: Change Hyper-V Virtual Machines Default Folder in Windows 10

    How to Change Default Folder to Store 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.

    A virtual machine in Hyper-V consists of a few files that account for its virtual hardware configuration and the virtual storage (VHD and VHDX files). By default:
    • The virtual machine configuration files are stored in "C:\ProgramData\Microsoft\Windows\Hyper-V".
    • The virtual hard drives are stored in "C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks".
    When you create a virtual machine in Hyper-V Manager, you are able to select to use these default locations or specify a folder location on a per virtual machine basis.

    If you like, you could change these global default locations within your hosts to make it easier to use your locations by default instead when creating new virtual machines.

    This tutorial will show you how to specify the default folder to store virtual machine configuration files when creating a new Hyper-V virtual machine in Windows 10.

    *note You must be signed in as an administrator to be able to change the default folder for Hyper-V virtual machine configuration files.


    CONTENTS:
    • Option One: To Change Default Hyper-V Virtual Machines Folder using Hyper-V Manager
    • Option Two: To Change Default Hyper-V Virtual Machines Folder using PowerShell

    EXAMPLE: Hyper-V Virtual Machines folder

    Change Hyper-V Virtual Machines Default Folder in Windows 10 [​IMG]






    OPTION ONE [/i] To Change Default Hyper-V Virtual Machines Folder 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 change the default folder to store Hyper-V virtual machines for, and click/tap on Hyper-V Settings in the right Actions pane. (see screenshot below)

    Change Hyper-V Virtual Machines Default Folder in Windows 10 [​IMG]

    3. Click/tap on Virtual Machines in the left pane, click/tap on the Browse button on the right, navigate to and select the folder you want to use, click/tap on Select Folder, and click/tap on OK. (see screenshots below)

    Change Hyper-V Virtual Machines Default Folder in Windows 10 [​IMG]

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





    OPTION TWO [/i] To Change Default Hyper-V Virtual Machines Folder using PowerShell
    *note For more details about the Set-VMHost command used in this option, see: Set-VMHost
    1. Open an elevated PowerShell.

    2. Type the command you want to use below into the elevated PowerShell, and press Enter. (see screenshot below)
    (Current Hyper-V host)
    *Arrow Set-VMHost -VirtualMachinePath 'Full path of folder'

    OR

    (Specific Hyper-V host)
    *Arrow Set-VMHost -ComputerName 'Hyper-V host name' -VirtualMachinePath 'Full path of folder'


    Change Hyper-V Virtual Machines Default Folder in Windows 10 [​IMG]
    Note Substitute Full path of folder in the commands above with the actual full path of the folder you want to store Hyper-V virtual machine configuration files in.

    Substitute Hyper-V host name in the second command above with the actual host name (ex: "BRINK-DESKTOP') you want to change the default virtual machines folder for.

    For example:

    Set-VMHost -VirtualMachinePath 'D:\Virtual Machines'

    OR

    Set-VMHost -ComputerName 'BRINK-DESKTOP' -VirtualMachinePath 'D:\Virtual Machines'



    Change Hyper-V Virtual Machines Default Folder in Windows 10 [​IMG]


    Change Hyper-V Virtual Machines Default Folder in Windows 10 [​IMG]


    3. When finished, you can close PowerShell.

    That's it,
    Shawn


    Related Tutorials

    :)
     
    labeeman, Jun 22, 2015
    #1
  2. Pauli O Win User

    Hyper V Import Virtual Machine

    There is separate default folders for Virtual Machines and Virtual Hard Disks

    C:\ProgramData\Microsoft\Windows\Hyper-V

    This folder contains all settings for each Virtual machines.

    Have you changed that folder?

    C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks

    This folder contains only virtual disks. On your case it's changed to E:\HyperV\...

    When you want import VM you need to search it from that first location.

    You can check this location from Hyper-V settings.

    If you can't import existing VM's you can create 3 new Virtual Machines.

    When creating those select option Use existing Virtual Disk and point disks from E:\HyperV\...
     
    Pauli O, Oct 26, 2019
    #2
  3. SarahKong Win User
    SarahKong, Oct 26, 2019
    #3
  4. Rex99ny Win User

    Change Hyper-V Virtual Machines Default Folder in Windows 10

    Where is the Hyper V Manager, How to I start it ?

    I am trying to setup an XP virtual Machine on Windows 10 Pro.

    I followed the steps in Neil Peterson article of 5/9/2016.

    System Requirements - done - ok

    Install Hyper-V - done - ok

    Create a Virtual Switch - skip

    Create a Virtual Machine

    Create a Virtual Machine with Hyper-V Manager

    These steps walk through how to manually create a virtual machine and deploy an operating system to this virtual machine.


    • In Hyper-V Manager, click Action > New >
      Virtual Machine
      to bring up the New

    Uhhhhhhhhh - this step obviously implies one knows

    1) Where the Hyper-V Manager is

    2) How to start the Hyper-V Manager

    Isn't that odd ?
     
    Rex99ny, Oct 26, 2019
    #4
  5. Mark St..., Oct 26, 2019
    #5
  6. Andre Da Costa, Oct 26, 2019
    #6
Thema:

Change Hyper-V Virtual Machines Default Folder in Windows 10

Loading...
  1. Change Hyper-V Virtual Machines Default Folder in Windows 10 - Similar Threads - Change Hyper Virtual

  2. 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...
  3. 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:...
  4. 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....
  5. 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...
  6. 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...
  7. 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...
  8. Import Hyper-V Virtual Machine in Windows 10

    in Windows 10 Tutorials
    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...
  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...