Redirect default paths in Hyper-V 2012 R2 Server

I have gone through the Quick setup for a test of a possible VDI solution.

The test worked as expected. My next question is how can I change all the paths in Hyper-V to put EVERYTHING on my SSD LUN's? Out of the box it put's everything in the C: drive and is on spindles. I want all the VM's and the VDI VM's to reside on my SSD LUN.

Thanks

November 14th, 2013 10:19pm

Hello, you can run this command:

Get-VM | ForEach-Object {Move-VM -VM $_ -DestinationHost localhost -IncludeStorage -DestinationStoragePath SSD_LUN_Partition:\}


You're basically going to migrate them on the same host, but different path.

Best regards,

Razvan Rusu

  • Proposed as answer by Razvan Rusu Saturday, November 16, 2013 12:12 AM
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2013 1:08am

Also, if you plan to create the following virtual machines on the same SSD partition, use this command to reconfigure the default VHD and VM paths on that Hyper-V Server:

Set-VMHost -VirtualHardDiskPath SSD_LUN_Partition:\ -VirtualMachinePath SSD_LUN_Partition:\

Razvan Rusu

  • Proposed as answer by Razvan Rusu Saturday, November 16, 2013 12:12 AM
November 15th, 2013 1:14am

OK, thanks. I'll those a try tomorrow morning.
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2013 3:47am

Those worked however, there's a folder called "C:\ProgramData\Microsoft\Windows\RDVirtualizationHost" and this appears to hold all the VM desktop pools and it looks like they are the differencing disks for each desktop VM. I need this folder redirected also but I can't find the setting for this anywhere in the hyper-v settings.

Where is the setting for this?

Thanks

November 16th, 2013 2:32am

Glad it solved some of the problems.

Unfortunately, I don't think you can change the virtual desktop storage after you created the collection. I assume you configured a pooled VDI collection and at this step you chose the default path. At this link you can find all the possible configurations you can make to an existing collection using PowerShell and, as you can see, there's no setting for changing the default path.

If you're already in a test environment, you can try creating another collection by running the wizard again and be careful what you choose. Or use this PowerShell command.

Best regards,

Razvan Rusu


  • Proposed as answer by Razvan Rusu Saturday, November 16, 2013 12:21 AM
  • Edited by Razvan Rusu Saturday, November 16, 2013 1:21 AM
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2013 3:21am

Hello,

Any updates here? Please let us know if you would like further assistance or we can close this topic.

Razvan Rusu

November 18th, 2013 6:07pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics