OK, let me try to explain what I did here - and yell if this is not
clear!

Step #1, check lsusb -t before any qemu start,
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 26, If 0, Class=Human Interface Device, Driver=usbfs, 1.5M
    |__ Port 4: Dev 3, If 0, Class=Communications, Driver=rndis_host, 480M
    |__ Port 4: Dev 3, If 1, Class=CDC Data, Driver=rndis_host, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
    |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 
12M
        |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 
12M
        |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 
12M
    |__ Port 7: Dev 3, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
    |__ Port 10: Dev 5, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M


Step #2, virsh start macOS, then I have,
a) lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 26, If 0, Class=Human Interface Device, Driver=usbfs, 1.5M
    |__ Port 4: Dev 3, If 0, Class=Communications, Driver=rndis_host, 480M
    |__ Port 4: Dev 3, If 1, Class=CDC Data, Driver=rndis_host, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
    |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 4, If 2, Class=Human Interface Device, Driver=usbfs, 12M
        |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbfs, 12M
        |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbfs, 12M
    |__ Port 7: Dev 3, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
    |__ Port 10: Dev 5, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M

b) Output from, journalctl -f | grep -v x11vnc (avoid x11vnc flooding),
Dec 01 14:35:32 linuxServer audit[845332]: AVC apparmor="STATUS" 
operation="profile_load" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845332 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer kernel: audit: type=1400 audit(1606854932.259:190): 
apparmor="STATUS" operation="profile_load" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845332 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer audit[845341]: AVC apparmor="STATUS" 
operation="profile_replace" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845341 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer kernel: audit: type=1400 audit(1606854932.451:191): 
apparmor="STATUS" operation="profile_replace" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845341 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer audit[845345]: AVC apparmor="STATUS" 
operation="profile_replace" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845345 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer kernel: audit: type=1400 audit(1606854932.643:192): 
apparmor="STATUS" operation="profile_replace" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845345 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer audit[845352]: AVC apparmor="STATUS" 
operation="profile_replace" info="same as current profile, skipping" 
profile="unconfined" name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" 
pid=845352 comm="apparmor_parser"
Dec 01 14:35:32 linuxServer kernel: audit: type=1400 audit(1606854932.839:193): 
apparmor="STATUS" operation="profile_replace" info="same as current profile, 
skipping" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845352 
comm="apparmor_parser"
Dec 01 14:35:32 linuxServer kernel: virbr0: port 2(vnet0) entered blocking state
Dec 01 14:35:32 linuxServer kernel: virbr0: port 2(vnet0) entered disabled state
Dec 01 14:35:32 linuxServer kernel: device vnet0 entered promiscuous mode
Dec 01 14:35:32 linuxServer kernel: virbr0: port 2(vnet0) entered blocking state
Dec 01 14:35:32 linuxServer kernel: virbr0: port 2(vnet0) entered listening 
state
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8545] 
manager: (vnet0): new Tun device (/org/freedesktop/NetworkManager/Devices/13)
Dec 01 14:35:32 linuxServer systemd-udevd[845358]: Using default interface 
naming scheme 'v245'.
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8690] 
device (vnet0): state change: unmanaged -> unavailable (reason 
'connection-assumed', sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8710] 
device (vnet0): state change: unavailable -> disconnected (reason 
'connection-assumed', sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8716] 
device (vnet0): Activation: starting connection 'vnet0' 
(1e7b8ae9-ce83-48fd-9381-38a14aac986a)
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8718] 
device (vnet0): state change: disconnected -> prepare (reason 'none', 
sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8722] 
device (vnet0): state change: prepare -> config (reason 'none', 
sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8725] 
device (vnet0): state change: config -> ip-config (reason 'none', 
sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8726] 
device (virbr0): bridge port vnet0 was attached
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8727] 
device (vnet0): Activation: connection 'vnet0' enslaved, continuing activation
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8728] 
device (vnet0): state change: ip-config -> ip-check (reason 'none', 
sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer dbus-daemon[1647]: [system] Activating via systemd: 
service name='org.freedesktop.nm_dispatcher' 
unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.9' (uid=0 
pid=1648 comm="/usr/sbin/NetworkManager --no-daemon ")
Dec 01 14:35:32 linuxServer systemd[1]: Starting Network Manager Script 
Dispatcher Service...
Dec 01 14:35:32 linuxServer dbus-daemon[1647]: [system] Successfully activated 
service 'org.freedesktop.nm_dispatcher'
Dec 01 14:35:32 linuxServer systemd[1]: Started Network Manager Script 
Dispatcher Service.
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8933] 
device (vnet0): state change: ip-check -> secondaries (reason 'none', 
sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8935] 
device (vnet0): state change: secondaries -> activated (reason 'none', 
sys-iface-state: 'external')
Dec 01 14:35:32 linuxServer NetworkManager[1648]: <info>  [1606854932.8945] 
device (vnet0): Activation: successful, device activated.
Dec 01 14:35:32 linuxServer systemd[1]: Reloading Postfix Mail Transport Agent 
(instance -).
Dec 01 14:35:32 linuxServer postfix/postfix-script[845421]: refreshing the 
Postfix mail system
Dec 01 14:35:32 linuxServer postfix/master[5209]: reload -- version 3.5.6, 
configuration /etc/postfix
Dec 01 14:35:32 linuxServer systemd[1]: Reloaded Postfix Mail Transport Agent 
(instance -).
Dec 01 14:35:32 linuxServer systemd[1]: Reloading Postfix Mail Transport Agent.
Dec 01 14:35:32 linuxServer systemd[1]: Reloaded Postfix Mail Transport Agent.
Dec 01 14:35:32 linuxServer nm-dispatcher[845429]: 
/etc/network/if-up.d/resolved: 12: mystatedir: not found
Dec 01 14:35:33 linuxServer audit[845373]: AVC apparmor="STATUS" 
operation="profile_replace" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845373 
comm="apparmor_parser"
Dec 01 14:35:33 linuxServer kernel: audit: type=1400 audit(1606854933.051:194): 
apparmor="STATUS" operation="profile_replace" profile="unconfined" 
name="libvirt-d06d502a-904a-4b34-847d-debf1a3d76c7" pid=845373 
comm="apparmor_parser"
Dec 01 14:35:33 linuxServer libvirtd[1678598]: Domain id=4 name='macOS' 
uuid=d06d502a-904a-4b34-847d-debf1a3d76c7 is tainted: custom-argv
Dec 01 14:35:33 linuxServer systemd-machined[1695]: New machine qemu-4-macOS.
Dec 01 14:35:33 linuxServer systemd[1]: Started Virtual Machine qemu-4-macOS.
Dec 01 14:35:33 linuxServer avahi-daemon[1646]: Joining mDNS multicast group on 
interface vnet0.IPv6 with address fe80::fc54:ff:fe92:d47b.
Dec 01 14:35:33 linuxServer avahi-daemon[1646]: New relevant interface 
vnet0.IPv6 for mDNS.
Dec 01 14:35:33 linuxServer avahi-daemon[1646]: Registering new address record 
for fe80::fc54:ff:fe92:d47b on vnet0.*.
Dec 01 14:35:34 linuxServer kernel: virbr0: port 2(vnet0) entered learning state
Dec 01 14:35:35 linuxServer kernel: vfio-pci 0000:09:00.0: vfio_ecap_init: 
hiding ecap 0x1e@0x178
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
config/udev: removing device Logitech M215 2nd Gen
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (**) Option 
"fd" "75"
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) event2  - 
Logitech M215 2nd Gen: device removed
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
UnloadModule: "libinput"
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
systemd-logind: releasing fd for 13:66
Dec 01 14:35:35 linuxServer acpid[1645]: input device has been disconnected, fd 
21
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
config/udev: removing device Logitech K330
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (**) Option 
"fd" "77"
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
UnloadModule: "libinput"
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
systemd-logind: not releasing fd for 13:67, still in use
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
config/udev: removing device Logitech K330
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (**) Option 
"fd" "77"
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) event3  - 
Logitech K330: device removed
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
UnloadModule: "libinput"
Dec 01 14:35:35 linuxServer /usr/libexec/gdm-x-session[2634000]: (II) 
systemd-logind: releasing fd for 13:67
Dec 01 14:35:35 linuxServer kernel: vfio-pci 0000:01:00.0: vfio_ecap_init: 
hiding ecap 0x19@0x270
Dec 01 14:35:35 linuxServer kernel: vfio-pci 0000:01:00.0: vfio_ecap_init: 
hiding ecap 0x1b@0x2d0
Dec 01 14:35:35 linuxServer kernel: vfio-pci 0000:01:00.0: vfio_ecap_init: 
hiding ecap 0x1e@0x370
Dec 01 14:35:36 linuxServer kernel: vfio-pci 0000:05:00.0: vfio_ecap_init: 
hiding ecap 0x1e@0x154
Dec 01 14:35:36 linuxServer NetworkManager[1648]: <info>  [1606854936.8911] 
device (virbr0): carrier: link connected
Dec 01 14:35:36 linuxServer kernel: virbr0: port 2(vnet0) entered forwarding 
state
Dec 01 14:35:36 linuxServer kernel: virbr0: topology change detected, 
propagating
Dec 01 14:35:42 linuxServer systemd-resolved[1517]: Server returned error 
NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying 
transaction with reduced feature level UDP.
Dec 01 14:35:42 linuxServer systemd-resolved[1517]: Server returned error 
NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying 
transaction with reduced feature level UDP.
Dec 01 14:35:42 linuxServer systemd-resolved[1517]: Server returned error 
NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying 
transaction with reduced feature level UDP.
Dec 01 14:35:42 linuxServer systemd-resolved[1517]: Server returned error 
NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying 
transaction with reduced feature level UDP.
Dec 01 14:35:42 linuxServer systemd-resolved[1517]: Server returned error 
NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying 
transaction with reduced feature level UDP.
Dec 01 14:35:42 linuxServer systemd[1]: NetworkManager-dispatcher.service: 
Succeeded.


Step #3, no working USB keyboard/mouse above, so virsh reset macOS, then 
working USB keyboard/mouse, and,
a) lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 3: Dev 26, If 0, Class=Human Interface Device, Driver=usbfs, 1.5M
    |__ Port 4: Dev 3, If 0, Class=Communications, Driver=rndis_host, 480M
    |__ Port 4: Dev 3, If 1, Class=CDC Data, Driver=rndis_host, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
    |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=uas, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 4, If 2, Class=Human Interface Device, Driver=usbfs, 12M
        |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbfs, 12M
        |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbfs, 12M
    |__ Port 7: Dev 3, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
    |__ Port 10: Dev 5, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M

b) Output from, journalctl -f | grep -v x11vnc,
Dec 01 14:36:10 linuxServer kernel: usb 1-1.1: reset full-speed USB device 
number 4 using xhci_hcd
Dec 01 14:36:10 linuxServer upowerd[4208]: treating change event as add on 
/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1.1
Dec 01 14:36:10 linuxServer upowerd[4208]: treating change event as add on 
/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1.1


Make sense?

Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906155

Title:
  USB Passthrough Fails on Start, Needs domain Reset

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1906155/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to