Just recently updated my GPU drivers users Nvidia Geforce Experience, however, when trying to run the update drivers script to update the VM drivers, I get the following error:
PS D:\Downloads\GPU-Hyper-V\Easy-GPU-PV-main\Easy-GPU-PV-main> ./Update-VMGpuPartitionDriver.ps1 -VMName "GPUPV" -GPUName "AUTO"
Mounting Drive...
Get-Disk : No MSFT_Disk objects found with property 'Number' equal to '3'. Verify the value of the property and retry.
At D:\Downloads\GPU-Hyper-V\Easy-GPU-PV-main\Easy-GPU-PV-main\Update-VMGpuPartitionDriver.ps1:39 char:55
+ ... DriveLetter = (Mount-VHD -Path $VHD.Path -PassThru | Get-Disk | Get-P ...
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (3:UInt32) [Get-Disk], CimJobException
+ FullyQualifiedErrorId : CmdletizationQuery_NotFound_Number,Get-Disk
Copying GPU Files - this could take a while...
INFO : Finding and copying driver files for NVIDIA GeForce RTX 3060 to VM. This could take a while...
Then a load of errors form because it couldn't mount the drive. If I try rerun the command it complains about the process being in use. My formatting of the command should match:
Just recently updated my GPU drivers users Nvidia Geforce Experience, however, when trying to run the update drivers script to update the VM drivers, I get the following error:
Then a load of errors form because it couldn't mount the drive. If I try rerun the command it complains about the process being in use. My formatting of the command should match:
If I list both Get-Disk and Get-PhysicalDisk:
Additionally, my VM only has the one HDD attached: https://i.imgur.com/PEqSibD.png
Any ideas? This is driving me up the wall.