microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.43k stars 822 forks source link

dxgkrnl under GPU-P (nested virtualization) #10357

Open wizpresso-steve-cy-fan opened 1 year ago

wizpresso-steve-cy-fan commented 1 year ago

Is your feature request related to a problem? Please describe. We are running a Frakenstein WSL2 setup, that we are using Nested Virtualization to run WSL2 inside of a Windows 11 VM, which was attached a RTX 4070 Ti with GPU-P. It seems like GPU was not available inside the nested WSL2 VM because nvidia-smi doesn't work. However, the right drivers are copied from the Windows VM into the VM.

Describe the solution you'd like Let us use WSL under GPUP

Describe alternatives you've considered We considered to expose the Docker Desktop instance on host machine and let our engineer to connect to the remote Docker host machine using TCP socket, but this would come at a performance cost.

nForto commented 1 year ago

Same problem here. We have Windows 11 and an Nvidia RTX Titan on the host machine. We’re using GPU-P to share the GPU with the VM. The GPU functions well in the VM, but it’s not recognized within the containers.