I have a Fedora workstation running an Ubuntu 16.04 virtual machine (KVM
hypervisor). I'd like to redirect a USB device to the VM, but when selecting
"Virtual Machine | Redirect USB device" from virt-manager, I get the
following error:
spice-client-error-quark: Could not redirect <USB device name> at 1-4:
Error setting USB device node ACL: 'Not authorized' (0)
The error window has a "Details" section which just reads "USB redirection
error".
Here is what I've tried so far, without success:
-
As suggested here, I created a /etc/udev/rules.d/50-spice.rules file with
the following contents, then created a `spice` group and added my user to
this groupSUBSYSTEM=="usb", GROUP="spice", MODE="0660" SUBSYSTEM=="usb_device", GROUP="spice", MODE="0660"
-
Downgraded spice-gtk from the latest version of Fedora 33 (0.39-1) to
0.38-3. -
Disabled selinux
-
sudo chmod 4755 /usr/libexec/spice-gtk-x86_64/spice-client-glib-usb-acl-helper
-
Upgraded to Fedora 34 which comes with spice-gtk 0.39-2
Best Answer
The solution for me was to create the /etc/udev/rules.d/50-spice.rules files, then to add
<allow_any>yes</allow_any>
under the<defaults>
section in /usr/share/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy. After modification, the file looks like this on my machine: