[Spice-devel] USB redirection: "LIBUSB_ERROR_NOT_SUPPORTED"

Yuri Benditovich yuri.benditovich at daynix.com
Wed Aug 21 05:46:42 UTC 2019


On Tue, Aug 20, 2019 at 8:58 PM Brian Wengel <m40636067 at gmail.com> wrote:

> Tried to use a W10 client, Viewer 8.0 and no usbdk installed. Same problem
> and same error.
> Log-file attached ;-)
>

So, this looks like a problem of libusb with WinUSB, which is not
preferrable Spice configuration.
I think this is worth to be mentioned in the documentation.


>
>
> On Tue, Aug 20, 2019 at 12:09 PM Yuri Benditovich <
> yuri.benditovich at daynix.com> wrote:
>
>>
>> On Tue, Aug 20, 2019 at 12:59 PM Brian Wengel <m40636067 at gmail.com>
>> wrote:
>>
>>> OK. at least we know what the issue is :-)
>>>
>>
>> I just suspect
>>
>>
>>> 1: I assume another way would be to use WinUSB instead of UsbDk....maybe
>>> that's a more future-proof way to go?
>>> Do you know where I find WinUSB, I guess in Windows SDK. Can I just
>>> install it just as easy as UsbDk? (when I finally get my hands on it :-P).
>>>
>>
>> No, I see in your case libusb DLL _uses_ WinUSB (I think it is typically
>> available out of the box).
>> And it looks like (from the logs) there is some missing API in WinUSB
>> path that makes the redirection to fail.
>>
>> So, first of all I suggest to try virt-viewer 7.0 and have more
>> information
>>
>>
>>
>>>
>>> 2: Would be nice if the dokumentation page was updated:
>>> https://www.spice-space.org/usbredir.html
>>> Do you have anything to do with this page?
>>>
>>> Best regards
>>> Brian
>>>
>>>
>>> On Tue, Aug 20, 2019 at 11:46 AM Yuri Benditovich <
>>> yuri.benditovich at daynix.com> wrote:
>>>
>>>> I see the virt-viewer 8.0 uses only WinUSB as it includes libusb 1.0.22
>>>> (which uses dynamic configuration of backend with WinUSB as default) and
>>>> spice-gtk 0.35 (which does not configure libusb to use UsbDk).
>>>> I suggest to try virt-viewer 7.0 instead, then libusb will work with
>>>> UsbDk.
>>>>
>>>> Best regards,
>>>> Yuri
>>>>
>>>>
>>>> On Mon, Aug 19, 2019 at 7:21 PM Brian Wengel <m40636067 at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Yuri
>>>>>
>>>>> Oh, it can see i left that out, but here it is:
>>>>> - I installed UsbDk on my Win7 x64 client PC (where remote viewer is
>>>>> running)
>>>>> - Remote viewer version: 8.0-256
>>>>> - libusb-1.0.dll version: 1.0.22.11312 (07-08-18)
>>>>> - Log-file attached
>>>>>
>>>>> :-)
>>>>>
>>>>> On Mon, Aug 19, 2019 at 2:10 PM Yuri Benditovich <
>>>>> yuri.benditovich at daynix.com> wrote:
>>>>>
>>>>>> Hi Brian,
>>>>>>
>>>>>> Which backend you use on your Spice Client machine, UsbDk or WinUsb?
>>>>>> What is the version of remote-viewer and the version of
>>>>>> libusb-1.0.dll (it should be in the same directory when remote-viewer.exe)
>>>>>> I'd also suggest to make a debug log (usually "remote-viewer ...
>>>>>> --spice-debug > log.txt 2>&1") and provide the log.
>>>>>>
>>>>>> Thanks,
>>>>>> Yuri
>>>>>>
>>>>>> On Mon, Aug 19, 2019 at 11:11 AM Brian Wengel <m40636067 at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Spice-devs
>>>>>>>
>>>>>>> I'm trying to get some USB headsets to work on a VM (Win10 x64)
>>>>>>> using spice USB redirection, but I get the error "
>>>>>>> *LIBUSB_ERROR_NOT_SUPPORTED*".
>>>>>>> Is it a misconfiguration or is the device really not supported?
>>>>>>>
>>>>>>> I've added a ich9 USB controller on the VM:
>>>>>>>
>>>>>>> <controller type='usb' index='0' model='ich9-ehci1'/>
>>>>>>>
>>>>>>> <controller type='usb' index='0' model='ich9-uhci1'>
>>>>>>>   <master startport='0'/>
>>>>>>> </controller>
>>>>>>>
>>>>>>> <controller type='usb' index='0' model='ich9-uhci2'>
>>>>>>>   <master startport='2'/>
>>>>>>> </controller>
>>>>>>>
>>>>>>> On my VM:
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> On my W7 box I have these controller:
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> This is my options in spice:
>>>>>>> [image: image.png]
>>>>>>> And the error:
>>>>>>> [image: image.png]
>>>>>>>
>>>>>>> Can I do further action to track down the problem?
>>>>>>>
>>>>>>> Best regards
>>>>>>> Brian W.
>>>>>>> Denmark
>>>>>>> _______________________________________________
>>>>>>> Spice-devel mailing list
>>>>>>> Spice-devel at lists.freedesktop.org
>>>>>>> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>>>>>>
>>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190821/f6c08efa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 24461 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190821/f6c08efa/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9609 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190821/f6c08efa/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 7650 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190821/f6c08efa/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 29274 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190821/f6c08efa/attachment-0007.png>


More information about the Spice-devel mailing list