In this additional post, I could tweak the vm's XML, but it does not solve my issue.
I have found this below.
https://serverfault.com/questions/66...t-with-libvirt
I made a copy of my fvm image, and I can now edit the xml:
virsh -c qemu:///system list --all
virsh -c qemu:///system edit win10
I cannot add this in <devices>: (bus 2 or 02)
<hub type='usb'>
<address type='usb' bus='2' port='1'/>
</hub>
when saving I get this error:
error: XML error: Missing USB bus 2
It looks likes this:
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='spice' autoport='yes'>
<listen type='address'/>
<image compression='off'/>
</graphics>
<sound model='ich9'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='3'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='2'/>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
<address type='usb' bus='0' port='4'/>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
</memballoon>
<hub type='usb'>
<address type='usb' bus='1' port='1'/>
</hub>
</devices>
</domain>
If I add the mouse, I get the following added in the XML. But I can't use it anymore it freezes. It worked before I started anything with the headset. I use the default mouse.
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x046d'/>
<product id='0xc069'/>
</source>
<address type='usb' bus='0' port='5'/>
</hostdev>
---
I tried various combinations of this with device or port. I can press i to iǵnore the validation but then it fails.
<hub type='usb'>
<address type='usb' bus='2' device='1'/>
</hub>
Failed. Try again? [y,n,i,f,?]:
error: XML error: USB bus 1 requested but no controller with that index is present
Failed. Try again? [y,n,f,?]:
error: XML error: USB bus 2 requested but no controller with that index is present
Failed. Try again? [y,n,i,f,?]:
error: XML error: USB bus 2 requested but no controller with that index is present
Failed. Try again? [y,n,f,?]:
---
update. I could define a new controller, but to simplify, I tried to connect the headset to the bus 0.
I know the mouse was on port 4, I removed teh socket for the mouse and put the headset socket at the same place, assuming it wil remain on port 4.
I rebooted, and now I get this. SO the port 4 is not detected.
lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 12: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 12: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
But int the virtsh edit I could add the following:
<hub type='usb'>
<address type='usb' bus='0' port='4'/>
</hub>
no validation error
And I changed the virt-manager usb connector to use USB 2 instead of 3, graphically.
In Windows, in the control panel / device manager, it shows different things if I change the VM from usb 3 to usb 2, in usb 2 I ahve:
4 times Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A
4 times USB-rotnav (hub)
And if I add the xml above, the headset Windows is not auto detected but I get a new element after starting windows:
NEC USB Hub
opening it I get lots of stuff that I do not understand.
Device USB\VID_0409&PID_55AA\314159-0000:00:1d.7-4 was started.
Driver Name: usb.inf
Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
Service: usbhub
Lower Filters:
Upper Filters: