Windows 10: Change Hyper-V Virtual Hard Disks Folder in Windows 10

Discus and support Change Hyper-V Virtual Hard Disks Folder in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Change Hyper-V Virtual Hard Disks Folder in Windows 10 How to Change Default Folder to Store Hyper-V Virtual Hard Disks Hyper-V enables... Discussion in 'Windows 10 Tutorials' started by Brink, Jul 29, 2015.

  1. Brink
    Brink New Member

    Change Hyper-V Virtual Hard Disks Folder in Windows 10


    How to: Change Hyper-V Virtual Hard Disks Folder in Windows 10

    How to Change Default Folder to Store Hyper-V Virtual Hard Disks


    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 hard disk files when creating a new Hyper-V virtual machine in Windows 10.

    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 Hard Disks Folder using Hyper-V Manager
    • Option Two: To Change Default Hyper-V Virtual Hard Disks Folder using PowerShell

    EXAMPLE: Hyper-V Virtual Hard Disks folder

    Change Hyper-V Virtual Hard Disks Folder in Windows 10 [​IMG]






    OPTION ONE [/i] To Change Default Hyper-V Virtual Hard Disks 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 Hard Disks Folder in Windows 10 [​IMG]

    3. Click/tap on Virtual Hard Disks 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 Hard Disks 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 Hard Disks Folder using PowerShell

    Change Hyper-V Virtual Hard Disks Folder in Windows 10 [​IMG]
    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 -VirtualHardDiskPath 'Full path of folder'

    OR

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


    Change Hyper-V Virtual Hard Disks 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 hard disks 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 hard disks folder for.

    For example:

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

    OR

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



    Change Hyper-V Virtual Hard Disks Folder in Windows 10 [​IMG]


    Change Hyper-V Virtual Hard Disks Folder in Windows 10 [​IMG]

    3. When finished, you can close PowerShell.

    That's it,
    Shawn


    Related Tutorials

    :)
     
    Brink, Jul 29, 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. Aaron_Sum Win User
    Can't remove Hyper-V Virtual Hard Drive partition

    Hi Robert,

    Thank you for writing to Microsoft Community Forums.

    I understand that you are facing an issue when you are trying to remove the Hyper-V Virtual Hard Drive partition. This partition is just a virtual partition that is created by using the space within your physical hard disk, so that
    it can be used within Hyper-V. Since you are no longer using Hyper-V and you wish to remove the Virtual Hard Drive partition, I would suggest you to follow the steps below and check if it is helpful to you.

    Steps to remove the Virtual Hard Drive partition using Disk Management:

    1. Press the Windows key and
      R key, this will open the Run dialogue box for you.
    2. Type diskmgmt.msc and press
      Enter, this will open the Disk Management Window for you.
    3. Your Virtual Hard Drive will be indicated by a ‘blue’ drive beside the
      Disk n (n is the disk number to which the VHD is associated), select the allocated
      Volume, right-click and select Delete Volume. You can check the picture below for your reference.

      Change Hyper-V Virtual Hard Disks Folder in Windows 10 a9bbe536-f604-4912-9a6e-fdb56b275e03?upload=true.png

    4. You will receive a prompt, click on
      Yes. This will delete the volume allocated to the Virtual Hard Drive and the space allocated will now be turned into an
      Unallocated space.
    5. To detach the Virtual Hard Drive completely,
      right-click on the Disk and select Detach VHD.
    6. You will receive a prompt, you may click on the check box to
      Delete the virtual hard disk after removing the disk. Click on
      OK
      .

    This will remove the Hyper-V Virtual Hard Drive partition from your system.

    If the issue still persists, I would suggest you to post your query in IT Pro

    TechNet
    forums, where we have support professionals who are well equipped with the knowledge on the issues with Hyper-V and Virtual Hard Drive to assist you with your query.

    Regards,

    Aaron Summith

    Microsoft Community - Moderator
     
    Aaron_Sum, Oct 26, 2019
    #3
  4. Kari Win User

    Change Hyper-V Virtual Hard Disks Folder in Windows 10

    Moving Hyper-V to Another Disk

    1. Export the virtual machines to the drive where you want to move them (tutorial).
    2. When all VMs have been exported, delete them in Hyper-V Manager.
    3. When Hyper-V Manager is empty, not showing any VMs, import the previously exported VMs (tutorial). In Option One Step 6 of the tutorial, you need to select Register the virtual machine in-place, or if choosing Option Two in tutorial, select Step 2.
    Easy!
     
  5. jbl1985 Win User
    Importing Virtual PC -> Hyper V

    Thank you. I followed the instructions below, and when I go to hit the action menu to install Integration services, of course, there is no such option under the Action Menu. The instructions seem so simple but I'm still missing something...

    Step 4: Install or upgrade integration services

    Hyper-V includes a software package for supported guest operating systems that improves integration between the physical computer and the virtual machine. This package is referred to as integration services. To learn more, see Integration
    Services
    .

    This step can't be automated or done within a Windows PowerShell session.

    To install integration services

    • Open Hyper-V Manager. From the Server Manager Tools menu, click Hyper-V Manager.

    • Connect to the virtual machine. Right-click the name of the virtual machine and click Connect.

    • From the Action menu of Virtual Machine Connection, click Insert Integration Services Setup Disk. This action loads the setup disk in the virtual DVD drive. Depending on the guest operating system installed, you may
      need to start the installation manually.

    • After the installation finishes, all integration services are available for use.
     
    jbl1985, Oct 26, 2019
    #5
  6. SarahKong Win User
    SarahKong, Oct 26, 2019
    #6
Thema:

Change Hyper-V Virtual Hard Disks Folder in Windows 10

Loading...
  1. Change Hyper-V Virtual Hard Disks Folder in Windows 10 - Similar Threads - Change Hyper Virtual

  2. Stuck in Creating a Virtual Hard Disk Window Hyper-V.

    in Windows 10 BSOD Crashes and Debugging
    Stuck in Creating a Virtual Hard Disk Window Hyper-V.: I have an external hard disk. I am trying to create shared virtual hard disk in it with Hyper-V. Whenever I select the VHDSet option; the bar is stuck at %100. This situation is not different in Powershell too....
  3. Stuck in Creating a Virtual Hard Disk Window Hyper-V.

    in Windows 10 Gaming
    Stuck in Creating a Virtual Hard Disk Window Hyper-V.: I have an external hard disk. I am trying to create shared virtual hard disk in it with Hyper-V. Whenever I select the VHDSet option; the bar is stuck at %100. This situation is not different in Powershell too....
  4. Stuck in Creating a Virtual Hard Disk Window Hyper-V.

    in Windows 10 Software and Apps
    Stuck in Creating a Virtual Hard Disk Window Hyper-V.: I have an external hard disk. I am trying to create shared virtual hard disk in it with Hyper-V. Whenever I select the VHDSet option; the bar is stuck at %100. This situation is not different in Powershell too....
  5. Hyper-V encountered an error while copying virtual hard disks to destination folder

    in Windows 10 News
    Hyper-V encountered an error while copying virtual hard disks to destination folder: [ATTACH]If you are getting Hyper-V encountered an error while copying virtual hard disks to destination folder while importing a virtual machine, check out these tips and tricks to get rid of this issue. It appears when you have a corrupted virtual machine hard disk in the...
  6. Hyper-V "Failed to Add Device 'Virtual Hard Disk' "

    in Windows 10 Network and Sharing
    Hyper-V "Failed to Add Device 'Virtual Hard Disk' ": Hyper-V is showing Error when I make Virtual Hard Disk. It can make Virtual Machine, expect for Hard Disk. I tried VHD./VHDX. but both not worked. [ATTACH]...
  7. Differencing Hard Disk - Hyper-V

    in Windows 10 Virtualization
    Differencing Hard Disk - Hyper-V: I came across this option when creating a new had drive in Hyper-V. Has anybody ever used one - is it analogous to e.g. a checkpoint, or an incremental image backup in Macrium Reflect? When and how would you use it? [img] Edit - been reading up on it and they look quite...
  8. Virtual Hard disk created in hyper-v

    in Windows 10 Virtualization
    Virtual Hard disk created in hyper-v: Hi There I am using windows 10 Pro, and had a virtual machine installed using Hyper-V with two virtual HDD in that VM. Recently I had some problem with my Windows 10 OS and had to reset my windows with keeping all the files and settings, and it installed a new windows...
  9. Add or Remove Physical Hard Disk for Hyper-V Virtual Machine

    in Windows 10 Tutorials
    Add or Remove Physical Hard Disk for Hyper-V Virtual Machine: How to: Add or Remove Physical Hard Disk for Hyper-V Virtual Machine 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...
  10. Change Hyper-V Virtual Machines Default Folder in Windows 10

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