[libvirt-users] libvirt attaching wrong usb device?

Tom Hughes tom at compton.nu
Thu Feb 11 14:30:30 UTC 2010


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.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the libvirt-users mailing list