Hi all! I'm using QubesOS 4.0 RC1 and trying to get a Smart Card reader working thought the sys-usb.
I've tried with an AppVM based on the fedora-25 template and the USB attachment to the AppVM works OK every time: [user@test-fedora25 ~]$ sudo dmesg ... [ 48.354069] usbip_core: USB/IP Core v1.0.0 [ 48.356616] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller [ 48.357285] vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 2 [ 48.357355] vhci_hcd: created sysfs vhci_hcd [ 48.357490] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 48.357542] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 48.357588] usb usb2: Product: USB/IP Virtual Host Controller [ 48.357630] usb usb2: Manufacturer: Linux 4.9.35-20.pvops.qubes.x86_64 vhci_hcd [ 48.357685] usb usb2: SerialNumber: vhci_hcd [ 48.357984] hub 2-0:1.0: USB hub found [ 48.358138] hub 2-0:1.0: 8 ports detected [ 48.358374] vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0 [ 48.557649] vhci_hcd vhci_hcd: pdev(0) rhport(0) sockfd(0) [ 48.557705] vhci_hcd vhci_hcd: devid(131080) speed(2) speed_str(full-speed) [ 48.767142] usb 2-1: new full-speed USB device number 2 using vhci_hcd [ 48.872191] usb 2-1: SetAddress Request (2) to port 0 [ 48.895388] usb 2-1: New USB device found, idVendor=076b, idProduct=3022 [ 48.895552] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 48.895714] usb 2-1: Product: Smart Card Reader USB [ 48.895800] usb 2-1: Manufacturer: OMNIKEY AG [ 79.772622] blkfront: xvdi: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled; ... [user@test-fedora25 ~]$ pcsc_scan PC/SC device scanner V 1.4.25 (c) 2001-2011, Ludovic Rousseau <ludovic.rouss...@free.fr> Compiled with PC/SC lite version: 1.8.15 Using reader plug'n play mechanism Scanning present readers... 0: OMNIKEY AG 3121 USB 00 00 Fri Sep 8 08:05:55 2017 Reader 0: OMNIKEY AG 3121 USB 00 00 Card state: Card removed, ... But when I try to do the same in an AppVM based on a debian template, most of the times it doesn't work; all that I can see are a lot of messages "Cannot enable. Maybe the USB cable is bad?" in dmesg when trying to use the device: user@test-debian8:~$ pcsc_scan PC/SC device scanner V 1.4.23 (c) 2001-2011, Ludovic Rousseau <ludovic.rouss...@free.fr> Compiled with PC/SC lite version: 1.8.11 Using reader plug'n play mechanism Scanning present readers... Waiting for the first reader... ... user@test-debian8:~$ sudo dmesg ... [ 38.778701] usbip_core: USB/IP Core v1.0.0 [ 38.780757] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller [ 38.781823] vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 2 [ 38.781892] vhci_hcd: created sysfs vhci_hcd [ 38.782067] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 38.782118] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 38.782165] usb usb2: Product: USB/IP Virtual Host Controller [ 38.782209] usb usb2: Manufacturer: Linux 4.9.35-20.pvops.qubes.x86_64 vhci_hcd [ 38.782268] usb usb2: SerialNumber: vhci_hcd [ 38.782548] hub 2-0:1.0: USB hub found [ 38.782631] hub 2-0:1.0: 8 ports detected [ 38.782885] vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0 [ 38.916529] vhci_hcd vhci_hcd: pdev(0) rhport(0) sockfd(0) [ 38.916581] vhci_hcd vhci_hcd: devid(131080) speed(2) speed_str(full-speed) [ 39.127092] usb 2-1: new full-speed USB device number 2 using vhci_hcd [ 39.232211] usb 2-1: SetAddress Request (2) to port 0 [ 39.254735] usb 2-1: New USB device found, idVendor=076b, idProduct=3022 [ 39.254882] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 39.255075] usb 2-1: Product: Smart Card Reader USB [ 39.255159] usb 2-1: Manufacturer: OMNIKEY AG [ 40.175245] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 41.055239] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 41.935237] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 42.815292] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 42.816603] usb 2-1: USB disconnect, device number 2 [ 43.703230] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 44.583136] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 45.463076] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 46.343285] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 46.343427] usb usb2-port1: unable to enumerate USB device [ 47.327157] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 48.207262] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 49.087094] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 49.967132] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 49.967274] usb usb2-port1: unable to enumerate USB device [ 50.951230] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 51.831204] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 52.711229] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 53.591222] usb usb2-port1: Cannot enable. Maybe the USB cable is bad? [ 53.591366] usb usb2-port1: unable to enumerate USB device ... I have tried with AppVMs based on debian8 and debian9 templates with the same result: It has only worked once, but I don't really know why. Does anybody faced a problem like this before? Thanks a lot! P.D. QubesOS 3.2 doesn't support my laptop, that's what I'm using the 4.0 RC1 -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/922bbf7b-9325-4c3f-8e61-c1efe9ced0b5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.