Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1772129 [details] 'virt-manager --debug' output Description of problem: While there is out of all one 'redirdev bus="usb" type="spicevmc"' and it is in state unused, selecting a USB device for redirection triggers that message: "(...). there are no free USB channels". Version-Release number of component: virt-manager-3.2.0-3.fc34.noarch
Can you see if this reproduces with virt-viewer too? If so it's probably a spice-gtk issue
Same observation when viewed by virt-viewer. Note: no message related to redirection issue despite presence of option '-v'. # virt-viewer -vc qemu:///system fedora34 Opening connection to libvirt with URI qemu:///system Guest fedora34 is running, determining display Guest fedora34 has a spice display Opening direct TCP connection to display at 127.0.0.1:5900:-1 (virt-viewer:40974): GLib-GObject-WARNING **: 11:05:18.004: g_object_get_is_valid_property: object class 'GstAutoAudioSink' has no property named 'volume' (virt-viewer:40974): GLib-GObject-WARNING **: 11:05:18.012: g_object_get_is_valid_property: object class 'GstAutoAudioSrc' has no property named 'volume' (virt-viewer:40974): GSpice-WARNING **: 11:05:18.072: Warning no automount-inhibiting implementation available Guest fedora34 display has disconnected, shutting down
FWIW If the bug reproduces with both virt-manager and virt-viewer, it's usually spice-gtk or qemu or some other component. I think I am reproducing what you say. My guest has one redirdev, I open the 'Redirect USB Device' dialog, select a device, then the error pops up. But the device _is_ attached to the VM. I think what the error is saying, is 'no additional devices can be redirected because there are no free slots'. But it _is_ kinda confusing the way it pops up, like it is suggesting the device you just clicked on failed to be redirected. Is that the behavior you are seeing too? Check lsusb in the VM If it's just about the confusing error message, we should close this and you can file a bug with upstream spice-gtk if you want to follow up: https://gitlab.freedesktop.org/spice/spice-gtk
On guest's side 'lsusb' lists each redirected device, which suggests each of them has to be attached to guest. Nevertheless none of those devices get mounted; that is a known issue – Bug 1950258. No doubt, that confusing message sets a proper ground for new issue reports in this regard – not from me any more of course since I known now. Time to close.
Created attachment 1786761 [details] Incoherent message while assigning a USB device for redirection
I think you'll want to file this as an upstream spice-gtk issue then, which is where the error comes from.
Worth noting; device not redirected via virt-manager while redirected via virt-viewer. Upstream report: https://gitlab.freedesktop.org/spice/spice-gtk/-/issues/156