Summary: | Cannot add USB devices to guest Windows OS using GNOME Boxes | ||
---|---|---|---|
Product: | Spice | Reporter: | Francesco Turco <fturco> |
Component: | spice-gtk | Assignee: | Spice Bug List <spice-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Troubleshooting log from GNOME Boxes
remote-viewer log Log from ~/.cache/libvirt/qemu/log/boxes-unknown.log |
Description
Francesco Turco
2014-03-05 17:39:02 UTC
I'd start by making sure USB redirection is working with a fedora 20 guest. If it does not, it's more likely to be an installation issue/VM configuration issue/... than a spice-gtk issue. Created attachment 95185 [details]
Troubleshooting log from GNOME Boxes
I noticed the usb=off option for the qemu-kvm command. Is that OK?
I just installed Fedora 20 as the guest OS, then tried to add a USB flash drive. It doesn't work. Same problem as with Windows. I assume usbredir is installed on your system? Can you start the VM with Boxes, kill gnome-boxes so that it does not suspend it on exit, and then connect to it with remote-viewer spice://localhost:5900 and check if you can access the "File/USB Device Selection" menu? Package usbredir is installed on my system: $ emerge -pv usbredir These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-apps/usbredir-0.6 USE="-static-libs" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB ----- I tried with the remote-viewer command. The USB device selection menu is there, but toggling my USB flash drive doesn't make Windows recognize it. Nothing happens, again. (In reply to comment #5) > I tried with the remote-viewer command. The USB device selection menu is > there, but toggling my USB flash drive doesn't make Windows recognize it. > Nothing happens, again. Hmm, looks like things are mostly fine, can you try with a linux guest ? I tried running remote-viewer with Fedora 20 as the guest operating system. Inside the guest I kept open a terminal with the following command running: $ watch -n 1 "dmesg | tail" Then I tried toggling my USB flash drive from the USB device selection menu. Unfortunately nothing happens. Can you retest with the f20 host/remote-viewer after setting export SPICE_DEBUG=1 export G_MESSAGES_DEBUG=all ? Can you also attach the log file from ~/.cache/libvirt/qemu/log/ corresponing to your VM? Created attachment 95236 [details]
remote-viewer log
remote-viewer spice://localhost:5900 log after having set SPICE_DEBUG=1 and G_MESSAGES_DEBUG=all
Created attachment 95237 [details]
Log from ~/.cache/libvirt/qemu/log/boxes-unknown.log
It's the log corresponding to Fedora 20 guest VM.
Are libspice-client-glib.so and your qemu binary both linked with libusbredir? I think they are: ldd /usr/lib64/libspice-client-glib-2.0.so.8.4.0 | grep libusbredir libusbredirhost.so.1 => /usr/lib64/libusbredirhost.so.1 (0x00007f6521d89000) libusbredirparser.so.1 => /usr/lib64/libusbredirparser.so.1 (0x00007f6521b80000) ldd /usr/bin/qemu-system-x86_64 | grep libusbredir libusbredirparser.so.1 => /usr/lib64/libusbredirparser.so.1 (0x00007f90b1f1b000) usb redirection was broken with spice-gtk 0.21 Installed spice-gtk-0.23 from here: https://bugs.gentoo.org/show_bug.cgi?id=492778 Now it works! I can finally add USB devices to my Windows guest operating system. I think this bug can be closed now (not sure which status option I should pick). Marking as FIXED, but this was fixed quite some time ago. Oh, can you file a bug with your distro so that they update spice-gtk to a newer version or add the patch fixing usb redirection to the 0.21 package? |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.