Solved

Hyper-V Default Folder Location

Posted on 2016-08-28
3
184 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
A procedure for exporting installed hotfix details of remote computers using powershell
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

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