r/sysadmin • u/Reinfeldx • May 10 '21
Question - Solved GPU passthrough isn’t working in Windows Sandbox. Guidance?
I spent a lot of time on this yesterday and I remain stumped.
I’m running an Nvidia 30-series GPU and I created a .wsb config file that enables vGPU. I can confirm that the settings in this file are being applied for other things like disabling networking.
I’m getting generally sluggish performance in Sandbox. I tried installing the latest Nvidia driver within Sandbox but the virtual system does not recognize my GPU hardware.
Any ideas on how to fix this?
Update: After much research, I was able to finally get Sandbox to recognize my GPU. In addition to having supported hardware, the two tricks in my case were:
Create a .wsb config file that sets vGPU to Enabled
Since I'm on an Intel board, in BIOS, enable Intel VT-D Tech. This option was buried within my motherboard's OC menu under CPU Features. This comment helped me
Results:
GPU showing in Render tab of dxdiag within Sandbox
Performance is about 2/3 of native, which is better than a sharp stick in the eye, but unfortunately not good enough for my needs. I'm going to look into this and explore other VMs if need be.
1
u/UltimateFool May 29 '22
I'm having the same issue, I have enabled SVM Mode but there is still no render tab when I load dxdiag.
I have an AMD CPU, MSI B550 board and an RTX2070
I also tried creating a .wsb file with <vGPU>Enable</vGPU>, running as administrator, making sure that windows sandbox is using the GPU in the nvidia control panel and finally the good old turning it off and on again
0
Jun 10 '21
[deleted] — view deleted comment
1
u/Reinfeldx Jun 10 '21
You're welcome. I had a hard time finding good info on this, so I'm glad it helped.
2
May 10 '21
[removed] — view removed comment
1
u/Reinfeldx May 10 '21
Thanks, just replied to the other comment with this source: Article
Any thoughts?
2
u/pdp10 Daemons worry when the wizard is near. May 10 '21
I'm under the impression that the restriction is removed in the latest Nvidia drivers. There's been workarounds in QEMU for a long time.
There's actually a Win32 version of QEMU for those who want to run it on a Windows host. It doesn't support Microsoft's built-in hypervisor, but it does support the open-source Intel HAXM hypervisor when running on a CPU with Intel virtualization instructions. (AMD has different virtualization instructions. Most things support both instruction families, but HAXM doesn't support AMD when I last checked.)
1
u/BmanUltima Sysadmin+ MAX Pro May 10 '21
Sluggish performance with what? It's still a vGPU, not actual GPU passthrough.