Easy-GPU-PV
Easy-GPU-PV copied to clipboard
Incorrect path Error
Hi. The row
$DriveLetter = (Mount-VHD -Path $VHD.Path -PassThru | Get-Disk | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter} | ForEach-Object DriveLetter) in file Update-VMGpuPartitionDriver.ps1 returns empty string.
This happens bacuse command Mount-VHD -Path $VHD.Path -PassThru | Get-Disk | Get-Partition | Get-Volume doesn't set disk drive letter automaticaly.
To fix this I did next steps:
- Run
Mount-VHD -Path $VHD.Path -PassThru. - Open disk dispatcher in Windows.
- Right click on mounted disk and check "Change disk letter or path to disk".
- Set letter and save.
- Next run
Dismount-VHD -Path $VHD.Path. - Run script Update-VMGpuPartitionDriver.ps1.
The problem is the host OS doesn't set disk letter automaticaly to mounted disk. We must do it manualy onece. After that each next mount will set the disk letter automaticaly.
Note. My host OS is windows 11 Home. I installed Hyper-V component using instruction from internet.