On 07/11/2010 12:19 PM, Paul Lambert wrote:
Cole,
I am still not able to see any USB devices other than the mouse/keyboard.
The first output is that of lsusb on the host which shows my Apple iPod
plugged in. The second listing is that of my Windows XP guest XML file.
The attached file is a screen capture of the Windows app that shows the USB
devices that are connected. It appears to me that my root hubs are not
being recognized. Is this a bug, configuration error, KVM python startup
command line error, etc.???
Moving to fedora-virt since this is relevant for other folks as well.
Firstly, make sure you are running the latest fedora packages, since
there have been some USB fixes within the past month.
Your config looks fine. Does passing through any other device work, like
a USB memory stick? Some of the newer ipods might require USB 2.0 which
Qemu doesn't support.
Are there any errors in /var/log/libvirt/qemu/$VMNAME.log ? Does
'setenforce 0' on the host, then a VM restart help at all?
Sound does not work on the guest either.
Sound not working is a known issue, I'll be posting workaround docs
today (I really mean it :) )
Thanks
Paul
results of lsusb on host
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05ac:1299 Apple, Inc.
Bus 001 Device 002: ID 046d:09b8 Logitech, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
<domain type='kvm'>
<name>Windows-XP-SP3-Home-2003</name>
<uuid>ee3bc9fe-a724-45b5-b675-11251f5c453f</uuid>
<memory>786432</memory>
<currentMemory>786432</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='i686' machine='pc-0.11'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<source
file='/var/lib/libvirt/images/Windows-XP-SP3-Home-2003.img'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0'
unit='0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1'
unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x01'
function='0x1'/>
</controller>
<interface type='network'>
<mac address='52:54:00:bb:ba:38'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x04'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<sound model='es1370'>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x05'
function='0x0'/>
</sound>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x02'
function='0x0'/>
</video>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x1d6b'/>
<product id='0x0002'/>
<address bus='1' device='1'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x1d6b'/>
<product id='0x0001'/>
<address bus='3' device='1'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x1d6b'/>
<product id='0x0002'/>
</source>
</hostdev>
</devices>
</domain>