How To Change the Default VHD Location in Hyper-V

By default, Hyper-V will store newly created virtual hard disks to C:UsersPublicDocumentsHyper-VVirtual Hard Disks. It’s not an intuitive path name to recall and most administrators will want to use a dedicated volume for the management operating system and at least one separate volume to contain virtual machines. Fortunately, the default can be very easily modified.

Open Hyper-V Manager and follow along.

  1. In the left pane, click the host on which you wish to modify the default to select it. Then, right-click it and click Hyper-V Settings.

    Access Hyper-V Settings

    Access Hyper-V Settings

  2. In the dialog that opens, it will default to the Virtual Hard Disks tab, which is where you want to be. In the main pane on the right, there is a text box for the path and a Browse button. Use them to select the new default location for virtual hard disks created on this host.

    Hyper-V Settings: Default VHD

    Hyper-V Settings: Default VHD

There are a few things to note:

  • The browse dialog is different from some you may be used to, as it operates from the perspective of the host instead of your user account and you cannot use it to create new folders.
  • You can select folders on local disks, including CSV locations under the C:ClusterStorage symbolic link, or folders on a remote SMB share that the local machine account has access to.
  • The location specified here is where new virtual hard disks will be placed when you create a virtual machine or when you have incoming Shared Nothing Live Migrations that do not override the default.
  • Changing this location does not affect any files in any previous locations.
  • Placement of virtual hard disk files is not permanent. You can always use Storage Live Migration to move them later.
  • The option that you select here is only for this host. It does not affect other hosts, even in a cluster.

Using this option judiciously can save you time when creating new virtual machines.

 

Altaro Hyper-V Backup
Share this post

Not a DOJO Member yet?

Join thousands of other IT pros and receive a weekly roundup email with the latest content & updates!

12 thoughts on "How To Change the Default VHD Location in Hyper-V"

Leave a comment or ask a question

Your email address will not be published. Required fields are marked *

Your email address will not be published. Required fields are marked *

Notify me of follow-up replies via email

Yes, I would like to receive new blog posts by email

What is the color of grass?

Please note: If you’re not already a member on the Dojo Forums you will create a new account and receive an activation email.