Answers

If I understand clearly, you want to keep different VMs in their own folders. For example, the VHDs and configuration files of the virtual machine VM01
are all stored in C:\ClusterStorage\Volume1\Hyper-V\VM01.

If so, you can perform Alessandro’s suggestion to modify the default VHD folder and virtual machine configuration file folder in Hyper-V Settings.
You can also specify the path you want when you create a new VM by check the box “Store the virtual machine in a different location”. I always use this method because I have to create some VMs where the path is not in the CSV folder.

All replies

CSV volumes are stored as directories and subdirectories beneath the ClusterStorage root folder, which typically exists on the root of C: to provide a consistent file namespace to all Hyper-V cluster nodes. This ensures any VMs stored on a CSV have the same
name and path from any cluster node.

These can be modified using the Hyper-V Settings option in the Hyper-V Manager MMC or when you build a virtual machine, install into a CSV and choose the option : "Share the virtual machine in a different location" and then specify
the name of the folder you want, e.g. name of the machine.

If I understand clearly, you want to keep different VMs in their own folders. For example, the VHDs and configuration files of the virtual machine VM01
are all stored in C:\ClusterStorage\Volume1\Hyper-V\VM01.

If so, you can perform Alessandro’s suggestion to modify the default VHD folder and virtual machine configuration file folder in Hyper-V Settings.
You can also specify the path you want when you create a new VM by check the box “Store the virtual machine in a different location”. I always use this method because I have to create some VMs where the path is not in the CSV folder.

Yes I want to store the VMs in different folders, but I do not want to have to create / specify that folder myself every time I create a VM.

I was asking if there was a way to, by default, use the VM's name as a variable to define the folder in which it would be stored.

So instead of specifying the default directory as something like '
C:\ClusterStorage\Volume1\Hyper-V\VMs ', one could specify ' C:\ClusterStorage\Volume1\<VMname> ' as the root directory, so that if a VM named Server1-VM is created, it will be reinterpreted as 'C:\ClusterStorage\Volume1\Server1-VM, and if a VM named
Server2-VM is created, it would refer to ' C:\ClusterStorage\Volume1\Server2-VM ' as the folder.

As you can see in the screen shot in my last reply. If you saved VMs in D:\VMs for one time, such as VM01, it will be saved as D:\VMs\VM01. Later, if
you create the second VM named VM02, just type the name in “Name”, it will be saved in D:\VMs\VM02 automaticlly, you don’t have to specified the location again.

Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.