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-conf...
$ 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>