jamesstringerparsec / Easy-GPU-PV

A Project dedicated to making GPU Partitioning on Windows easier!
4.01k stars 407 forks source link

Upgrading Drivers With More than One VHDX Disk Attached #325

Open jordanfalduto opened 9 months ago

jordanfalduto commented 9 months ago

Running Update-VMGpuPartitionDriver.ps1 to update your VM drives to match your host will result in a recursive error about how Drive Letter E F (in my case) cannot be found and then list every Line / Char referencing $DriveLetter. It's like 200 lines of error messages and I spent a while troubleshooting only to realize that Add-VMGpuPartitionAdapterFiles.psm1 can't function properly if there are two virtual disks and therefore two drive letters returned.

Here's how to fix:

Reboot the host after updating GPU Drivers.

Open Hyper V, right click the VM > Settings

Under SCSI Controller, Click on Hard Drive "NonOSDiskName," then Remove at the bottom

Do this with each of your non-OS disks

Open Powershell as administrator and cd \Easy-GPU-PV-main\

Run .\Update-VMGpuPartitionDriver.ps1

Add the vhdx(s) back by clicking on SCSI Controller > Hard Drive > Add

Locate the disks in the \Virtual Hard Disks folder on the host

mchamlee commented 7 months ago

Thank you very much for this. Had added a 2nd disk between today's attempt to update the and last driver update. Figured there would be a way to handle this in the scripting, but it was nice to find this quick fix.