qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB error: vendor cannot be 0


From: ToddAndMargo
Subject: Re: USB error: vendor cannot be 0
Date: Sat, 7 Nov 2020 00:14:46 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 2020-11-07 00:00, ToddAndMargo wrote:
On 2020-11-06 19:31, ToddAndMargo wrote:
On 2020-11-06 13:20, ToddAndMargo wrote:
Hi All,

Anyone know a work around for this?

    Fedroa 32, x64

    $ rpm -qa virt-manager
    virt-manager-3.1.0-1.fc32.noarch

    $ rpm -qa qemu-device-usb-redirect
    qemu-device-usb-redirect-5.1.0-7.fc32.x86_64

Bug I filed on 2020-06-23:
    libvirt.libvirtError: internal error: vendor cannot be 0.
    https://bugzilla.redhat.com/show_bug.cgi?id=1850091

I am trying to install a USB Host device for my
Samsung BAR flash drive and I get the following error:

    Unable to add device: internal error: vendor cannot be 0.

Many thanks,
-T

New info.  ALL of my flash drive are now doing this




Using: https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-libvirt-config-virsh.html#sec-libvirt-config-usb-virsh

$ lsusb | grep -i silico
Bus 002 Device 006: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive


with `# virsh edit KVM-USB-EUFI`, I added:


     <hostdev mode='subsystem' type='usb'>
         <source startupPolicy='optional'>
         <vendor id='090C'/>
         <product id='1000'/>
        </source>

Saving gives me:
     error: XML document failed to validate against
     schema: Unable to validate doc against
     /usr/share/libvirt/schemas/domain.rng

     Extra element devices in interleave
     Element domain failed to validate content

     Failed. Try again? [y,n,i,f,?]:

What did I do wrong?


Many thanks,
-T

Came up with a workaround!

$ lsusb | grep -i silico
Bus 002 Device 006: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive

# virt-xml KVM-USB-EUFI  --add-device --hostdev 002.006
Domain 'KVM-USB-EUFI' defined successfully.


XML file now looks like:

    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x090c'/>
        <product id='0x1000'/>
      </source>
      <boot order='1'/>
      <address type='usb' bus='0' port='4'/>
    </hostdev>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]