[libvirt-users] libvirt attaching wrong usb device?

Daniel P. Berrange berrange at redhat.com
Thu Feb 11 14:41:06 UTC 2010


On Thu, Feb 11, 2010 at 02:30:30PM +0000, Tom Hughes wrote:
> I'm trying to attach a USB device which is attached to my host to a 
> guest instance. The device definition in the XML looks like:
> 
>     <hostdev mode='subsystem' type='usb' managed='yes'>
>       <source>
>         <vendor id='0x046d'/>
>         <product id='0xc111'/>
>       </source>
>     </hostdev>
> 
> and the device appears in lsusb as USB device 002:018:
> 
>   Bus 002 Device 018: ID 046d:c111 Logitech, Inc.
> 
> but when I try and start the guest libvirt appears to try and use a 
> different device which doesn't exist:
> 
>   error: unable to set security context '107:107' on 
> '/dev/bus/usb/002/022': No such file or directory
> 
> This is using the current libvirt-0.7.6-1.fc12.x86_64 package from the 
> F12 virt-preview repository.

This is a mixup of decimal/octal - I've just posted a patch for it

http://www.redhat.com/archives/libvir-list/2010-February/msg00377.html


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvirt-users mailing list