The docs indicate support for USB stick, keyboard, and mouse.
I'm wondering if I can gain access to /dev/ttyACM0 or similar devices in a specific VM? This is a usual USB-to-serial interface used by Arduino.
Peter Olson
> dmesg
and
> lsusb
The connection also didn't add any new device to the /dev/tty* list.
dom0, instead, was able to detect that there was an Arduino connected to the laptop, and created the corresponding /dev/ttyACM0 device, but I can do nothing with it since I don't know how to propagate it to my VM.
Any ideas??
Thanks!
Javier
Thanks a lot Gray, there is a lot of new information in the documentation indeed:
I went around the problem in a different way, which I describe here for future reference:
First open a terminal in your TemplateVM (fedora-23 in my case) and type:
> groups
if dialout does not appear listed you can either type
> sudo gpasswd --add user dialout
or
> sudo usermod -aG dialout user
Either way. it will give you access to the dialout group in order to make use of the /dev/tty* communication devices inside VMs that depend on that Template. But you must restart the Template VM in order to see a change in the output of the command: "> groups", since the groups information is only loaded at login.
Finally, it is reported (https://www.qubes-os.org/doc/usb/#attaching-a-single-usb-device-to-a-qube-usb-passthrough) that with Qubes 3.2 it is now possible to give access to any USB device to a VM from dom0.
It goes as follows:
Assuming that you have not created yet a USB qube (it's a VM usually named: sys-usb) you can create one in two easy steps, by typing in dom0:
> qubesctl top.enable qvm.sys-usb
> qubesctl state.highstate
From now on your dom0 environment is protected from direct contact with any USB device and they are directly attached to the sys-usb VM. Now, what you can do after starting sys-usb, is to transfer the device from that VM to another one, lets say "work" VM:
First identify it from a terminal in dom0,
> qvm-usb
sys-usb:3-2 2341:0043 Arduino__www.arduino.cc__0043...
and then attach it to your ALREADY STARTED "work" VM,
>qvm-usb -a work sys-usb:3-2
The final check is to open a terminal in your "work" VM and type in there:
> lsusb
and
> ls -l /dev/ttyACM0
both outputs should tell you that there is a device connected to your VM.
Cheers,
Javier