Hello,
Long time fan of the Youtube channel here. Between your forums here and some Googling, I’ve been able to get a Windows 11 gaming vm up and runing via looking-glass.
I have an xbox series s/x controller plugged in via usb. By default, my distro is mounting it to /dev/input/js0. If I configure virt-manager to attach the device to the VM, I can see it unmount from Linux and there is a xbox controller in device manager on Windows 11. However, this does not appear to be the correct driver as I cannot see the device from dxdiag or from the the USB game controller screen of the control panel.
I’m aware that you can pass through an entire usb controller from the motherboard, but are there other methods to get a usb device to correctly pass into the VM? Or as an alternative, can you dynamically bind/unbind the usb controller being passed to Windows during VM runtime? I try not to use Windows save the few games/applications that I cannot run another way, so I would prefer not to block the usb controller via kernel params like I did for the secondary GPU that I pass to Windows.
Thanks in advance!
So this is one of the difficulties of using USB Redirection.
Some devices don’t really play well with redirection, so it’s better if you have a USB controller you can pass through, which will expose physical ports on your PC to the VM. I do this with the USB C port on my GPU, then use a USB C hub to connect multiple devices.
There may be a solution to redirection, but I ran into the same issue with my Razer Wolverine a few years back and just decided to go with the controller passthrough method.
1 Like
Makes sense, that seems to be the general consensus I’ve seen from Googling around about it. Nice idea getting a GPU with integrated usb, I never thought about that. So in that case, are you blocking all PCI IDs tied to the gpu and usb-c controller from the kernel at boot time?
Yep! My GPU has… 4 PCI devices associated with it. GPU itself, HDMI Audio, USB Controller and some serial interface for controlling the rainbow vomit. I assign them all to VFIO. What you might notice is that the USB controller doesn’t get the VFIO driver on boot, but it will be fine when you start the VM. There’s a bit of strangeness with that. Could never figure it out. I think it comes from the fact that USB drivers are baked into the kernel, and all the other drivers are modules.
1 Like