Solved

Hyper-V Default Folder Location

Posted on 2016-08-28
3
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 81

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 39

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

734 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