-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, Jul 01, 2016 at 09:27:47AM +0200, Alex wrote:
> Hello everybody,
> I'm testing the new USB passthrough functions in Qubes 3.2 rc1, namely
> I'm trying to pass a whole Android smartphone to an AppVM (a cube? :).
> 
> I can see it in dom0 with qvm-usb, and I tried to pass it with a naïve
> command line like:
> $ qvm-usb -a work dom0:1-4
> 
> Problem is, the operation fails (ERROR: Device attach failed). Adding a
> couple lines in qubesutils.py tells me that the call to
> vm.run_service('qubes.USBAttach') on line 621 fails with error code 1.
> 
> Should I expect the USB passthrough of an Android smartphone to work? If
> this is the case, how can I further debug this failure?

Are you sure you have qubes-usb-proxy package available in both source
and target VM?
If so, take a look at logs in both VMs (`sudo journalctl`) for more
details.

On my system it looks like phone simulate disconnect + connect each time
the driver is unbound from it (which is needed also during USB
passthrough...). 
It looks like this:

    [root@sys-usb devices]# ls -l /sys/bus/usb/devices/3-1.2/driver
    lrwxrwxrwx 1 root root 0 Jul  1 09:48 /sys/bus/usb/devices/3-1.2/driver
    -> ../../../../../../../bus/usb/drivers/usb
    [root@sys-usb devices]# echo 3-1.2 > /sys/bus/usb/drivers/usb/unbind 

    Jul 01 09:50:23 sys-usb kernel: usb 3-1.2: USB disconnect, device number
    11
    Jul 01 09:50:23 sys-usb kernel: usb 3-1.2: new high-speed USB device
    number 12 using ehci-pci
    (...)

Unfortunately, this makes it incompatible with USB passthrough. Maybe
there is a way to prevent such behaviour? Or prevent attaching "usb"
driver initially, so it will not be necessary to unbind it?

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXdiJHAAoJENuP0xzK19cs74QH/0KEs8qRhiianmqz7N8eWBF3
MMmOjiYLX5PiLk/414q0h8S9oT17eTxW4g8CWr8IsUWguTpvHswRvLkICRkHbs0R
ClkCGZFhPgzth622R9ZUQ35UckIyaVSOnWSww/QMJ3RtzZKXcM5caUeFlOMu31EZ
6W4gzy7E+5XTdEHKwT+HOu8mjoBSzx975BwJdY9gp18E1VYfD2jdWS+If9cZl1Z5
JhMzaOlsCSQ7Lc9mPs1dTbyjoXH/Cz9CHsqeBBresdxx8/qUwKyZQcMBnVtn6nzc
Sw/nc6c02NgqMrQ+X4f7SWgKX/jnPNKBLU9Z/C+oucmFYXGxChpD4yHfihKGa/U=
=7GL6
-----END PGP SIGNATURE-----

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20160701075654.GT1323%40mail-itl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to