Re: USB error: vendor cannot be 0

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

 



On 2020-11-07 00:01, ToddAndMargo via users wrote:
On 2020-11-06 13:21, ToddAndMargo via users 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


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?

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>


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux