Gabriel Philippe
unread,Apr 26, 2023, 8:14:14 AM4/26/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to qubes...@googlegroups.com
Hi,
I use an USB scanner which is sometimes unplugged and might be plugged
to another USB port. I would like it to be permanently attached to the
"scanner" vm (I don't want to reattach it after reboot).
However the documented way uses the devid, ex. sys-usb:2.5. If I
attach it permanently to a vm (qvm-usb attach -p scanner sys-usb:2.5),
then unplug the scanner and plug an USB flash drive to same port, the
flash drive gets attached automatically to my "scanner" vm (which I
don't want).
Is there a way to attach a specific device to a vm, and not an USB port?
I tried with qvm-block, but couldn't find my scanner label in /dev/
Currently, my best solution is to have a launcher running this:
qvm-usb attach scanner "$(qvm-usb|grep Canon|cut -f 1 -d ' ')"
--
Gabriel