Connect USB to Windows standaloneVM

Hey!
I can not connect USB drives or an android smartphone to my Windows 10 standaloneVM (Qubes 4.1).

If I try to connect a flash drive it shows connected, but I can see nothing in the WindowsVM.

If I try to connect the phone, I get:

Device attach failed: sh: write error: Invalid argumentAttach timeout, check kernel log for details. /usr/lib/qubes/usb-import: line 1: hostname: not foundVM: "" File: "/usr/lib/qubes/usb-import" Version Control: https://github.com/QubesOS/qubes-app-linux-usb-proxy/blob/master/src/usb-import

Best regards
qun

Sorry, forgot to mention it. I made that steps. So this issue came after that.

Does it work with non-Windows qubes? Does it work inside sys-usb?

I can connect flash drives, but the android shows me an error if I want to choose “file transfer” as USB-connection (for any of the VMs). So it seems to be an issue with the android connection in general.

What exactly did you try from that topic? It’s a huge one with a lot of tips?

I guess it would help if you could give us step-by-step what are you doing, what are you trying to achieve, how you are trying to achieve it and where you are stuck, so we could easily reproduce it and eventually help you. Every detail is important. Just describe it.
For example, did you try to attach it as a block device or a usb device, did you try it via device widget, or via terminal, did you use --persistent option, etc, etc…

I want to attach an android phone (Xiaomi Redmi Note 9 Pro) to the Windows standaloneVM (installed in Qubes 4.1, with the USB-integration steps you mentioned above and with installed qubes-tools)

I tried to attach it via device widget and via terminal, with the same error above. I didn’t use the --persistent option for I don’t know, what it’s for.

I can attach it to the linux mint machine on another laptop, but not here on qubes.

How can I attach it as block or usb device and what is the difference?

Please red this, it should give you an idea what info and how to give and maybe even to help to resolve the issue.

don’t really know how it can help me with my issue.
The phone is mounted on sys-usb:4-1.

With no more info the only thing I can tell is that it looks that there could be a problem with qubes-usb-proxy, or/and the VM you are trying to attach phone to.

Sorry I couldn’t be of a more help with the info you provided us with, I’ve bee using Qubes only since last November and invested a lot of time to learn it, and as I can see you are much longer here, and it can’t work out of the box, mostly because it is security oriented.

Then I guess you need to make it work without Windows first. sys-usb should behave in the same way as a regular Linux OS, so Android phone should be recognized. See this for details: Connecting GrapheneOS phone to Qubes.

See also:

that’s the point, I should get it work with “normal” (linux) VMs.

Thanks for the links above. There is rather much stuff that I don’t really understand :smiley: but I see, that I can connect my Graphene Phone (also the mentioned Xiaomi) to the sys-usb and can browse it with nautilus. But I can not browse it on any other VM.

The device widget shows me the mounted phone in the case of Graphene (trying to mount xiaomi get the mentioned error and no mounted phone in the device widget), but the VM (except the sys-usb) shows nothing.

@enmus no problem, I understand what you mean. The thing is, I use Qubes for a rather long time, but I have no time (and for some things no brain) for understanding some deeper things (deeper for me). I don’t really know what info I can give to you.

You could give us the output of:
$ lsusb
$ lsusb -t
then, while attaching phone to a qube the output of
sudo journalctl -f
until attaching is rejected
as well as
sudo dmesg | grep “usb”

all from sys-usb qube.

Are there any -71, -94, -110 error codes? Search Google on them, etc…

Also, I read that connecting phone via TCP is a great security risk, but cannot elaborate further.

lsusb on sys-usb:
Bus 004 Device 004: ID 2717:ff08 Xiaomi Inc. Redmi Note 3 (ADB Interface)

lsusb -t on sys-usb:

/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M    |__ Port 2: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 480M    |__ Port 4: Dev 2, If 10, Class=CDC Data, Driver=cdc_acm, 480M    |__ Port 4: Dev 2, If 1, Class=Communications, Driver=cdc_acm, 480M    |__ Port 4: Dev 2, If 8, Class=Communications, Driver=cdc_wdm, 480M    |__ Port 4: Dev 2, If 6, Class=Communications, Driver=cdc_mbim, 480M    |__ Port 4: Dev 2, If 4, Class=CDC Data, Driver=cdc_acm, 480M    |__ Port 4: Dev 2, If 2, Class=CDC Data, Driver=cdc_acm, 480M    |__ Port 4: Dev 2, If 0, Class=Communications, Driver=, 480M    |__ Port 4: Dev 2, If 9, Class=Communications, Driver=cdc_acm, 480M    |__ Port 4: Dev 2, If 7, Class=CDC Data, Driver=cdc_mbim, 480M    |__ Port 4: Dev 2, If 5, Class=Communications, Driver=cdc_wdm, 480M    |__ Port 4: Dev 2, If 3, Class=Communications, Driver=cdc_acm, 480M/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M        |__ Port 1: Dev 3, If 0, Class=Chip/SmartCard, Driver=, 12M/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 480M

sudo journalctl -f while attaching the phone on sys-usb:

Apr 20 08:50:32 sys-usb systemd[2953]: Started Daily Cleanup of User's Temporary Directories. Apr 20 08:50:32 sys-usb systemd[2953]: Reached target Paths. Apr 20 08:50:32 sys-usb systemd[2953]: Reached target Timers. Apr 20 08:50:32 sys-usb systemd[2953]: Starting D-Bus User Message Bus Socket. Apr 20 08:50:32 sys-usb systemd[2953]: Listening on Multimedia System. Apr 20 08:50:32 sys-usb systemd[2953]: Condition check resulted in Sound System being skipped. Apr 20 08:50:32 sys-usb systemd[2953]: Starting Create User's Volatile Files and Directories... Apr 20 08:50:32 sys-usb systemd[2953]: Finished Create User's Volatile Files and Directories. Apr 20 08:50:32 sys-usb systemd[2953]: Listening on D-Bus User Message Bus Socket. Apr 20 08:50:32 sys-usb systemd[2953]: Reached target Sockets. Apr 20 08:50:32 sys-usb systemd[2953]: Reached target Basic System. Apr 20 08:50:32 sys-usb systemd[1]: Started User Manager for UID 0. Apr 20 08:50:32 sys-usb systemd[2953]: Reached target Main User Target. Apr 20 08:50:32 sys-usb systemd[2953]: Startup finished in 1.540s. Apr 20 08:50:32 sys-usb systemd[1]: Started Session c10 of User root. Apr 20 08:50:33 sys-usb audit: BPF prog-id=54 op=LOAD Apr 20 08:50:33 sys-usb audit: BPF prog-id=55 op=LOAD Apr 20 08:50:33 sys-usb systemd[1]: Starting Hostname Service... Apr 20 08:50:34 sys-usb audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Apr 20 08:50:34 sys-usb systemd[1]: Started Hostname Service. Apr 20 08:50:35 sys-usb kernel: usbip-host 4-2: usbip-host: register new device (bus 4 dev 7) Apr 20 08:50:35 sys-usb kernel: usbip-host 4-2: stub up Apr 20 08:50:35 sys-usb kernel: usbip-host 4-2: USB disconnect, device number 7 Apr 20 08:50:35 sys-usb kernel: usbip-host 4-2: recv a header, 0 Apr 20 08:50:35 sys-usb qrexec-agent[2945]: 2022-04-20 08:50:35.568 qrexec-agent[2945]: process_io.c:187:process_io: vchan connection closed early (fds: -1 -1 25, status: -1 -1) Apr 20 08:50:35 sys-usb kernel: usb 4-2: new high-speed USB device number 8 using xhci_hcd Apr 20 08:50:36 sys-usb kernel: usb 4-2: New USB device found, idVendor=2717, idProduct=ff08, bcdDevice= 4.14 Apr 20 08:50:36 sys-usb kernel: usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Apr 20 08:50:36 sys-usb kernel: usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 Apr 20 08:50:36 sys-usb kernel: usb 4-2: Manufacturer: Xiaomi Apr 20 08:50:36 sys-usb kernel: usb 4-2: SerialNumber: 4d918746 Apr 20 08:50:36 sys-usb mtp-probe[3019]: checking bus 4, device 8: "/sys/devices/pci0000:00/0000:00:08.0/usb4/4-2" Apr 20 08:50:36 sys-usb mtp-probe[3019]: bus: 4, device: 8 was not an MTP device Apr 20 08:50:36 sys-usb mtp-probe[3029]: checking bus 4, device 8: "/sys/devices/pci0000:00/0000:00:08.0/usb4/4-2" Apr 20 08:50:36 sys-usb mtp-probe[3029]: bus: 4, device: 8 was not an MTP device Apr 20 08:50:36 sys-usb mtp-probe[3056]: checking bus 4, device 8: "/sys/devices/pci0000:00/0000:00:08.0/usb4/4-2" Apr 20 08:50:36 sys-usb mtp-probe[3056]: bus: 4, device: 8 was not an MTP device Apr 20 08:50:36 sys-usb qrexec-agent[2947]: pam_unix(qrexec:session): session closed for user root Apr 20 08:50:36 sys-usb kernel: kauditd_printk_skb: 4 callbacks suppressed Apr 20 08:50:36 sys-usb kernel: audit: type=1106 audit(1650437436.982:258): pid=2947 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success' Apr 20 08:50:36 sys-usb audit[2947]: USER_END pid=2947 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success' Apr 20 08:50:37 sys-usb audit[2947]: CRED_DISP pid=2947 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_rootok acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success' Apr 20 08:50:37 sys-usb kernel: audit: type=1104 audit(1650437437.030:259): pid=2947 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_rootok acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success' Apr 20 08:50:37 sys-usb qrexec-agent[2945]: 2022-04-20 08:50:37.501 qrexec-agent[2945]: qrexec-agent-data.c:272:handle_new_process_common: pid 2947 exited with 0 Apr 20 08:50:37 sys-usb systemd[1]: session-c10.scope: Deactivated successfully. 

sudo dmesg | grep “usb” on sys-usb:

Device= 4.14 [  503.329510] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [  503.329579] usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 [  503.329627] usb 4-2: Manufacturer: Xiaomi [  503.329663] usb 4-2: SerialNumber: 4d918746 [ 1158.883284] usb 4-2: USB disconnect, device number 3 [ 1734.639277] usb 4-2: new high-speed USB device number 4 using xhci_hcd [ 1734.767885] usb 4-2: New USB device found, idVendor=2717, idProduct=ff08, bcdDevice= 4.14 [ 1734.767969] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1734.768039] usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 [ 1734.768155] usb 4-2: Manufacturer: Xiaomi [ 1734.768195] usb 4-2: SerialNumber: 4d918746 [ 1768.804740] usbcore: registered new device driver usbip-host [ 1768.870842] usbip-host 4-2: usbip-host: register new device (bus 4 dev 4) [ 1768.878163] usbip-host 4-2: stub up [ 1769.013809] usbip-host 4-2: USB disconnect, device number 4 [ 1769.014004] usbip-host 4-2: recv a header, 0 [ 1769.317161] usb 4-2: new high-speed USB device number 5 using xhci_hcd [ 1769.448174] usb 4-2: New USB device found, idVendor=2717, idProduct=ff08, bcdDevice= 4.14 [ 1769.448259] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1769.448329] usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 [ 1769.448399] usb 4-2: Manufacturer: Xiaomi [ 1769.448437] usb 4-2: SerialNumber: 4d918746 [ 2146.283661] usbip-host 4-2: usbip-host: register new device (bus 4 dev 5) [ 2146.318624] usbip-host 4-2: stub up [ 2146.435749] usbip-host 4-2: USB disconnect, device number 5 [ 2146.436234] usbip-host 4-2: recv a header, 0 [ 2146.739116] usb 4-2: new high-speed USB device number 6 using xhci_hcd [ 2146.873550] usb 4-2: New USB device found, idVendor=2717, idProduct=ff08, bcdDevice= 4.14 [ 2146.873635] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2146.873706] usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 [ 2146.873754] usb 4-2: Manufacturer: Xiaomi [ 2146.873815] usb 4-2: SerialNumber: 4d918746 [ 2230.298667] usbip-host 4-2: usbip-host: register new device (bus 4 dev 6) [ 2230.322652] usbip-host 4-2: stub up [ 2230.443406] usbip-host 4-2: USB disconnect, device number 6 [ 2230.443688] usbip-host 4-2: recv a header, 0 [ 2230.746181] usb 4-2: new high-speed USB device number 7 using xhci_hcd [ 2230.881231] usb 4-2: New USB device found, idVendor=2717, idProduct=ff08, bcdDevice= 4.14 [ 2230.881262] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2230.881287] usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 [ 2230.881304] usb 4-2: Manufacturer: Xiaomi [ 2230.881326] usb 4-2: SerialNumber: 4d918746 [ 2557.349106] usbip-host 4-2: usbip-host: register new device (bus 4 dev 7) [ 2557.375864] usbip-host 4-2: stub up [ 2557.507926] usbip-host 4-2: USB disconnect, device number 7 [ 2557.508095] usbip-host 4-2: recv a header, 0 [ 2557.811143] usb 4-2: new high-speed USB device number 8 using xhci_hcd [ 2557.943646] usb 4-2: New USB device found, idVendor=2717, idProduct=ff08, bcdDevice= 4.14 [ 2557.943787] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2557.943858] usb 4-2: Product: ATOLL-AB-IDP _SN:06B1B783 [ 2557.943926] usb 4-2: Manufacturer: Xiaomi [ 2557.943984] usb 4-2: SerialNumber: 4d918746 

TCP? In which way has TCP something to do with attaching USB on qubes?

There’s a way to connect the phone via adb over TCP, but it has security implications.

Did you simpy try to deactivate USB debugging options and then tried to attach the phone to other (Linux for now) qube from sys-usb?

with deactivated USB debugging it connects, but can not open the device.
lsusb on the VM to which is the device connected shows, that the device IS conntected via MTP.

Maybe your android create multiple USB devices and you need to pass them all to another VM simultaneously (maybe even with --persistent so all devices will be connected simultaneously at the VM boot time)?
Just a thought.

i get no connection with usb debugging, as it seems the only solution is to install needed adb-fastboot in sys-usb or to connect the usb-port directly to the VM. I got it with the second way.

Hi @qun, are you using USB-C for the connection?

I know this is an old thread, but I’m getting the same error here for a hardware key USB stick (that ones used for software licensing). The behavior is the same when using both command line and device widget, when the error is shown as a popup notification. I’m posting since this may help others to troubleshoot similar issues.

The point is, the error occurs only when the USB device was connected to the ports of a USB-C hub. When trying to use the device on regulara regular USB port from the notebook, the error does not happen. (Though I still don’t manage to use the hardware in the Windows VM, in Windows Device Manager, the USB ports are listed as “XENBUS VBD” and “XENBUS VIF”)

[user@dom0 ~]$ qvm-usb
BACKEND:DEVID  DESCRIPTION                                              USED BY
sys-usb:2-1    Vimicro_Corp._Lenovo_FHD_Webcam_Lenovo_FHD_Webcam_Audio  
sys-usb:2-2.3  PROTEQ_ltda_PROTEQ_USB                                   
sys-usb:2-6    Telink_Wireless_Receiver                                 
sys-usb:2-7    8087_0a2b                                                
sys-usb:2-8    SunplusIT_Inc_Integrated_Camera                          
sys-usb:2-9    138a_0097_570c8cb91475 
[user@dom0 ~]$ qvm-usb attach win7 sys-usb:2-2.3 --verbose
Device attach failed: Attach timeout, check kernel log for details. /usr/lib/qubes/usb-import: line 1: hostname: not foundVM: "" File: "/usr/lib/qubes/usb-import" Version Control: https://github.com/QubesOS/qubes-app-linux-usb-proxy/blob/master/src/usb-import

I searched the logs to troubleshoot but have no clues on what’s happening:

/var/log/xen/console/guest-sys-usb.log

[2022-09-10 21:17:02] [11394.245736] audit: type=1100 audit(1662855422.079:480): pid=9413 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_rootok acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:02] [11394.246095] audit: type=1103 audit(1662855422.079:481): pid=9413 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_rootok acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:02] [11394.274152] audit: type=1130 audit(1662855422.107:482): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:02] [11394.284452] audit: type=1101 audit(1662855422.117:483): pid=9415 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="root" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:02] [11394.285316] audit: type=1103 audit(1662855422.118:484): pid=9415 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="root" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[2022-09-10 21:17:02] [11394.285701] audit: type=1006 audit(1662855422.119:485): pid=9415 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=8 res=1
[2022-09-10 21:17:02] [11394.285778] audit: type=1300 audit(1662855422.119:485): arch=c000003e syscall=1 success=yes exit=1 a0=7 a1=7ffeb3813360 a2=1 a3=7ffeb3813077 items=0 ppid=1 pid=9415 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=8 comm="(systemd)" exe="/usr/lib/systemd/systemd" key=(null)
[2022-09-10 21:17:02] [11394.286006] audit: type=1327 audit(1662855422.119:485): proctitle="(systemd)"
[2022-09-10 21:17:02] [11394.288612] audit: type=1105 audit(1662855422.122:486): pid=9415 uid=0 auid=0 ses=8 msg='op=PAM:session_open grantors=pam_selinux,pam_selinux,pam_loginuid,pam_namespace,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:02] [11394.295029] audit: type=1334 audit(1662855422.128:487): prog-id=156 op=LOAD
[2022-09-10 21:17:02] [11394.668433] usbip-host 2-2.3: usbip-host: register new device (bus 2 dev 5)
[2022-09-10 21:17:02] [11394.677535] usbip-host 2-2.3: stub up
[2022-09-10 21:17:07] [11399.907017] usbip-host 2-2.3: recv a header, 0
[2022-09-10 21:17:08] [11400.162760] usbip-host 2-2.3: reset low-speed USB device number 5 using xhci_hcd
[2022-09-10 21:17:08] [11400.438398] usbip-host 2-2.3: device reset
[2022-09-10 21:17:08] [11400.722640] kauditd_printk_skb: 60 callbacks suppressed
[2022-09-10 21:17:08] [11400.722643] audit: type=1106 audit(1662855428.555:520): pid=9413 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_systemd,pam_unix,pam_umask,pam_lastlog acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:08] [11400.722731] audit: type=1104 audit(1662855428.555:521): pid=9413 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_rootok acct="root" exe="/usr/lib/qubes/qrexec-agent" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:18] [11410.772310] audit: type=1104 audit(1662855438.605:522): pid=9418 uid=0 auid=0 ses=8 msg='op=PAM:setcred grantors=? acct="root" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[2022-09-10 21:17:18] [11410.776662] audit: type=1131 audit(1662855438.609:523): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:18] [11410.808878] audit: type=1131 audit(1662855438.640:524): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:32] [11424.619752] audit: type=1131 audit(1662855452.452:525): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[2022-09-10 21:17:32] [11424.642619] audit: type=1334 audit(1662855452.476:526): prog-id=0 op=UNLOAD
[2022-09-10 21:17:32] [11424.642646] audit: type=1334 audit(1662855452.476:527): prog-id=0 op=UNLOAD
[2022-09-10 21:18:13] [11465.270521] xen:grant_table: g.e. 0x1327 still pending
[2022-09-10 21:18:13] [11465.270577] xen:grant_table: g.e. 0x1326 still pending
[2022-09-10 21:18:13] [11465.270612] xen:grant_table: g.e. 0x1325 still pending
[2022-09-10 21:18:13] [11465.270646] xen:grant_table: g.e. 0x1323 still pending
[2022-09-10 21:18:13] [11465.270680] xen:grant_table: g.e. 0x12fe still pending
[2022-09-10 21:18:13] [11465.270714] xen:grant_table: g.e. 0x12fd still pending
[2022-09-10 21:18:13] [11465.270748] xen:grant_table: g.e. 0x12fc still pending
[2022-09-10 21:18:13] [11465.270782] xen:grant_table: g.e. 0x12fb still pending
[2022-09-10 21:18:13] [11465.270815] xen:grant_table: g.e. 0x12fa still pending
[2022-09-10 21:18:13] [11465.270849] xen:grant_table: g.e. 0x12f9 still pending
[2022-09-10 21:18:13] [11465.270885] xen:grant_table: g.e. 0x12f8 still pending
[2022-09-10 21:18:13] [11465.270918] xen:grant_table: g.e. 0x12f7 still pending
[2022-09-10 21:18:13] [11465.270952] xen:grant_table: g.e. 0x12f6 still pending
[2022-09-10 21:18:13] [11465.270986] xen:grant_table: g.e. 0x12f5 still pending
[2022-09-10 21:18:13] [11465.271019] xen:grant_table: g.e. 0x12f4 still pending
[2022-09-10 21:18:13] [11465.271053] xen:grant_table: g.e. 0x12f3 still pending
[2022-09-10 21:18:13] [11465.271087] xen:grant_table: g.e. 0x12f2 still pending
[2022-09-10 21:18:13] [11465.271121] xen:grant_table: g.e. 0x12f1 still pending
[2022-09-10 21:18:13] [11465.271155] xen:grant_table: g.e. 0x12f0 still pending
[2022-09-10 21:18:13] [11465.271189] xen:grant_table: g.e. 0x12ef still pending
[2022-09-10 21:18:13] [11465.271222] xen:grant_table: g.e. 0x12ee still pending
[2022-09-10 21:18:13] [11465.271256] xen:grant_table: g.e. 0x12ed still pending
[2022-09-10 21:18:13] [11465.271289] xen:grant_table: g.e. 0x12ec still pending

dmesg on dom0:

[12036.808790] audit: type=1101 audit(1662856010.868:4399): pid=23053 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_permit acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12042.814502] audit: type=1100 audit(1662856016.873:4400): pid=23054 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_localuser acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12042.815614] audit: type=1101 audit(1662856016.875:4401): pid=23054 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_permit acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12048.811538] audit: type=1100 audit(1662856022.870:4402): pid=23059 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_localuser acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12048.811834] audit: type=1101 audit(1662856022.870:4403): pid=23059 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_permit acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12054.813928] audit: type=1100 audit(1662856028.873:4404): pid=23060 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_localuser acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12054.814118] audit: type=1101 audit(1662856028.873:4405): pid=23060 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_permit acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12060.822679] audit: type=1100 audit(1662856034.882:4406): pid=23062 uid=1000 auid=1000 ses=2 msg='op=PAM:authentication grantors=pam_localuser acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12060.822871] audit: type=1101 audit(1662856034.882:4407): pid=23062 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_permit acct="root" exe="/usr/sbin/userhelper" hostname=? addr=? terminal=? res=success'
[12066.412472] audit: type=1101 audit(1662856040.471:4408): pid=23068 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix acct="henrique" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/9 res=success'
[12066.413237] audit: type=1123 audit(1662856040.472:4409): pid=23068 uid=1000 auid=1000 ses=2 msg='cwd="/home/henrique" cmd="dmesg" exe="/usr/bin/sudo" terminal=pts/9 res=success'
[12066.414395] audit: type=1110 audit(1662856040.473:4410): pid=23068 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_env,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/9 res=success'
[12066.425030] audit: type=1105 audit(1662856040.484:4411): pid=23068 uid=1000 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/9 res=success'

/var/log/xen/console/guest-win7-dm.log:

[2022-09-10 21:17:01] 2022-09-11 00:17:01.929 qrexec-agent[509]: qrexec-agent-data.c:244:handle_new_process_common: executed: root:QUBESRPC qubes.USBAttach dom0 (pid 512)
[2022-09-10 21:17:02] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(0)
[2022-09-10 21:17:02] vhci_hcd vhci_hcd.0: devid(131077) speed(1) speed_str(low-speed)
[2022-09-10 21:17:02] vhci_hcd vhci_hcd.0: Device attached
[2022-09-10 21:17:02] usb 1-1: new low-speed USB device number 2 using vhci_hcd
[2022-09-10 21:17:02] usb 1-1: SetAddress Request (2) to port 0
[2022-09-10 21:17:02] usb 1-1: config index 0 descriptor too short (expected 9, got 0)
[2022-09-10 21:17:02] usb 1-1: can't read configurations, error -22
[2022-09-10 21:17:03] usb 1-1: new low-speed USB device number 3 using vhci_hcd
[2022-09-10 21:17:03] usb 1-1: SetAddress Request (3) to port 0
[2022-09-10 21:17:03] usb 1-1: config index 0 descriptor too short (expected 9, got 0)
[2022-09-10 21:17:03] usb 1-1: can't read configurations, error -22
[2022-09-10 21:17:03] usb usb1-port1: attempt power cycle
[2022-09-10 21:17:03] usb 1-1: new low-speed USB device number 4 using vhci_hcd
[2022-09-10 21:17:03] usb 1-1: SetAddress Request (4) to port 0
[2022-09-10 21:17:03] usb 1-1: device descriptor read/all, error 0
[2022-09-10 21:17:03] usb 1-1: new low-speed USB device number 5 using vhci_hcd
[2022-09-10 21:17:03] usb 1-1: SetAddress Request (5) to port 0
[2022-09-10 21:17:03] usb 1-1: device descriptor read/all, error 0
[2022-09-10 21:17:03] usb usb1-port1: unable to enumerate USB device
[2022-09-10 21:17:07] vhci_hcd: connection closed
[2022-09-10 21:17:07] vhci_hcd: stop threads
[2022-09-10 21:17:07] vhci_hcd: release socket
[2022-09-10 21:17:07] vhci_hcd: disconnect device
[2022-09-10 21:17:08] 2022-09-11 00:17:08.647 qrexec-agent[509]: qrexec-agent-data.c:272:handle_new_process_common: pid 512 exited with 1

Versions:

  • Windows 7 64 bit
  • QWT installed from current-testing repository
  • Steps described here to install USB integration
  • xenbus.tar V9 installed from here

no it was no USB-C connection, just ‘regular’ USB (via PCI-Port). Meanwhile I deleted Windows-Standalone and just use another SSD if I want to work in Windows. Otherwise it’s just buggy and slow.