Hi there.
I have a problem with USB host device enumeration with libvirt.
I'm running libvirt 0.7.0 on a fully updated CentOS 5.3 (libvirt was
rebuilt unmodified from
http://libvirt.org/sources/libvirt-0.7.0-1.fc11.src.rpm)
I want to pas an USB key to one of my guest. lsusb see it just fine:
(I want to pass the device 13fe:1d23)
Bus 005 Device 001: ID 0000:0000
Bus 005 Device 002: ID 046b:ff10 American Megatrends, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 008 Device 001: ID 0000:0000
Bus 002 Device 006: ID 13fe:1d23 Kingston Technology Company Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
If I create a XML file for this device, I can attach it to my guest with virsh
attach-device, no problem here.
The problem is that libvirt cannot access the devices informations like pretty name,
vendorID and productID, so for example, virt-manager only see devices with name "USB
Raw Device Access"
with 0000 as vendorID and productID.
For example, for this particular USB key:
virsh nodedev-dumpxml usb_device_13fe_1d23_07780BA646FD_0_usbraw
<device>
<name>usb_device_13fe_1d23_07780BA646FD_0_usbraw</name>
<parent>usb_device_13fe_1d23_07780BA646FD_0</parent>
<capability type='usb_device'>
<bus>0</bus>
<device>0</device>
<product id='0x0000'>USB Raw Device Access</product>
<vendor id='0x0000' />
</capability>
</device>
SELinux is in permissive mode.
Anybody have an idea ? Where does libvirt get the info about host device ? (/sys ?)
Regards, Daniel
--
Daniel Berteaud
FIREWALL-SERVICES SARL.
Société de Services en Logiciels Libres
Technopôle Montesquieu
33650 MARTILLAC
Tel : 05 56 64 15 32
Fax : 05 56 64 15 32
Mail: daniel(a)firewall-services.com
Web :
http://www.firewall-services.com