FS#49179 - [spice-gtk3] spice-client-error-quark usb redirection failed. acces denied insufficient permissions
Attached to Project:
Community Packages
Opened by teraflops (teraflops) - Monday, 02 May 2016, 16:31 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 23 December 2016, 10:01 GMT
Opened by teraflops (teraflops) - Monday, 02 May 2016, 16:31 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 23 December 2016, 10:01 GMT
|
Details
Description:
cannot use usb sticks in guest machines. spice-client-error-quark usb redirection failed. acces denied insufficient permissions. using virt-manager. cannot redirect usb sticks. as side detail I'm able to access smartphone via mtp (usb) in the guest machines. packages: community/spice-glib 0.31-1 [installed] community/spice-gtk3 0.31-1 [installed] community/virt-manager 1.3.2-5 [installed] community/libvirt-glib 0.2.3-1 [installed] community/libvirt 1.3.3-2 [installed] Steps to reproduce: insert a usb stick. |
This task depends upon
Closed by Sergej Pupykin (sergej)
Friday, 23 December 2016, 10:01 GMT
Reason for closing: Fixed
Additional comments about closing: thank you
Friday, 23 December 2016, 10:01 GMT
Reason for closing: Fixed
Additional comments about closing: thank you
Packages installed:
libvirt 1.3.4-1
qemu 2.5.1-1
spice 0.12.6-2
spice-glib 0.31-1
spice-gtk3 0.31-1
systemd 229-3
virt-manager 1.3.2-5
Update: just updated my desktop from spice-gtk3 0.30-1 and spice-glib 0.30-1 to 0.31-1, now I have the same error on my desktop aswell. Configuration files are identical.
Packages:
------------
libvirt 1.3.5-1
qemu 2.6.0-1
spice 0.12.7-1
spice-glib 0.31-1
spice-gtk3 0.31-1
systemd 230-4
virt-manager 1.3.2-5
------------
cat <<EOF >/etc/udev/rules.d/50-spice.rules
SUBSYSTEM=="usb", GROUP="spice", MODE="0660"
SUBSYSTEM=="usb_device", GROUP="spice", MODE="0660"
EOF
usermod -a -G spice $USER
?
The group "spice" did not exist on my system and I have not found it in the list of standard Arch Linux group names. I created it anyway.
The udev modifies ownership of /dev/bus/usb/XXX/YYY from root:root. I am not sure if it is the best way to set every plugged usb device as group-owned by spice.
Btw. this issue is not limited to USB storage devices, but all kind of USB devices.
--------------
1. Download the PKGBUILD from https://www.archlinux.org/packages/community/x86_64/spice-glib/
2. Run makepkg to build it
3. Install it: pacman -U spice-glib-0.33-1-x86_64.pkg.tar.xz
4. Restart libvirtd for good measure
--------------
I can now use USB redirection without needing root! Thank you raphael for this fix!