Having an issue with virt-manager not allowing USB passthrough


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.

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


1 Like