Having an issue with virt-manager not allowing USB passthrough

Hello,

I’m on the 20.03 beta and for some reason I get the following error when trying to pass through any USB device in virt-manager.

Screenshot from 2020-03-04 06-48-27

Any ideas why this is happening or if I’m missing a dependency or something?

See Create NixOS module for spice-gtk usb redirection · Issue #39618 · NixOS/nixpkgs · GitHub.

For anyone who stumbles on this and wonders what to do:

  • add spice_gtk to the system-wide package list

  • add the following to the NixOS configuration file:

security.wrappers.spice-client-glib-usb-acl-helper.source = "${pkgs.spice_gtk}/bin/spice-client-glib-usb-acl-helper";

This worked for me, it’s the same as what is suggested in the GitHub linked above.

1 Like

Good news - it appears one can now add virtualisation.spiceUSBRedirection.enable = true; to their configuration to enable USB passthrough support.

https://search.nixos.org/options?channel=23.05&show=virtualisation.spiceUSBRedirection.enable&from=0&size=50&sort=relevance&type=packages&query=redirection

2 Likes

Thanks, I was trying to get shared folders to work with no luck, so this just saved me a week of agonizing pain