Solved

Hyper-V Default Folder Location

Posted on 2016-08-28
3
92 Views
Last Modified: 2016-08-30
Configuration FolderWhen I install Hyper-V on Windows 2012 R2 Server, it creates the following default folders.
Default location for virtual hard disk files: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks
Default location for virtual machine configuration files: C:\ProgramData\Microsoft\Windows\Hyper-V

It seems to be that it makes more sense to put them in one root folder like the following:
C:\VM\VHD for Default location for virtual hard disk files and C:\VM\Configuration for virtual machine configuration files.

But I noticed that there are other folders under C:\ProgramData\Microsoft\Windows\Hyper-V.
So my question is if it is better to leave the default folder locations as they are or I can create my own folder like C:\VM and won't miss anything for not having all those additional folders (in C:\ProgramData\Microsoft\Windows\Hyper-V) seen on the screenshot.
0
Comment
Question by:sglee
3 Comments
 
LVL 20

Accepted Solution

by:
Russ Suter earned 250 total points
ID: 41774258
You can assign a new default folder without having any adverse effects on existing VMs. However the new default folder will only take effect for new VMs created after the change. You can move existing VMs but that can get a bit messy if you don't do it right.
0
 
LVL 79

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 125 total points
ID: 41774340
I always create a folder on another physical drive i.e. d:\hyper-v and move the contents of C:\ProgramData\Microsoft\Windows\Hyper-V, I actually have the virtual disks on several hard drives (for performance reasons) until I win the lottery and can afford a 12TB PCI-E NVme SSD's)
0
 
LVL 38

Assisted Solution

by:Philip Elder
Philip Elder earned 125 total points
ID: 41775268
In PowerShell we always do the following:
Set-VMHost -VirtualHardDiskPath “X:\Hyper-V\Virtual Hard Disks” -VirtualMachinePath “X:\Hyper-V\Volume1”
To check:
Get-VMHost | fl VirtualHardDiskPath,VirtualMachinePath

We always set up two logical disks on a standalone host's RAID controller.
75GB for the host OS
Balance GB/TB for guest settings and VHDX files. This second one is our X: drive.

We split things up to make it easier for us to recover the host if something goes sideways. A bootable USB flash drive with the host OS files on it is left plugged in to the host for this purpose.

I have an EE article that explains a bit more how we do things: Some Hyper-V Hardware and Software Best Practices.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question