Share via

Help adding nvidia to hyper V

Anonymous
2021-06-17T07:25:09+00:00

Hello,

Im really new for this, i found that an application doesn't run in my VM, because hyper V doesn't have nvidia driver installed.

so I found this

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/deploy/deploying-graphics-devices-using-dda

^^from this site I got this >

`#Configure the VM for a Discrete Device Assignment
$vm = "VM NaME"
#Set automatic stop action to TurnOff
Set-VM -Name $vm -AutomaticStopAction TurnOff
#Enable Write-Combining on the CPU
Set-VM -GuestControlledCacheTypes $true -VMName $vm
#Configure 32 bit MMIO space
Set-VM -LowMemoryMappedIoSpace 3Gb -VMName $vm
#Configure Greater than 32 bit MMIO space
Set-VM -HighMemoryMappedIoSpace 33280Mb -VMName $vm

#Find the Location Path and disable the Device
#Enumerate all PNP Devices on the system
$pnpdevs = Get-PnpDevice -presentOnly
#Select only those devices that are Display devices manufactured by NVIDIA
$gpudevs = $pnpdevs |where-object {$_.Class -like "Display" -and $_.Manufacturer -like "NVIDIA"}
#Select the location path of the first device that's available to be dismounted by the host.
$locationPath = ($gpudevs | Get-PnpDeviceProperty DEVPKEY_Device_LocationPaths).data[0]
#Disable the PNP Device
Disable-PnpDevice -InstanceId $gpudevs[0].InstanceId

#Dismount the Device from the Host
Dismount-VMHostAssignableDevice -force -LocationPath $locationPath

#Assign the device to the guest VM.
Add-VMAssignableDevice -LocationPath $locationPath -VMName $vm`

WIll this re enable nvidia in the VM?

if not how to add nvidia card to this VM?

thanks!

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-06-17T17:23:23+00:00

    Hi,

    Thank you for writing to Microsoft Community Forums.

    I understand your query related to using NVidia drivers with Hyper-V on your PC.

    We do have a dedicated forum where you should find support. I would suggest you to post your query on Windows on Q&A, where we have support professionals with expertise to assist you with your query.

    Regards,

    Prakhar Khare

    Microsoft Community – Moderator

    Was this answer helpful?

    0 comments No comments