I'm using Qubes 4 with USB VM (sys-usb) which is working well.

When attaching USB devices I currently have to manually assign them to AppVMs 
via the top right "Qubes Devices" dropdown menu. Which is also working well.

But: I want to automate that.

Using a trigger in /usr/lib/udev/rules.d/ in sys-usb I can detect when the USB 
device gets plugged in (tested, works). Now ideally I'd like to call qvm-usb 
inside sys-usb to attach this device to a specific AppVM. Two ways come to mind:

- call "qvm-usb attach" from sys-usb -> I assumed there must be a package that 
I can dnf install and then configure some qrexec policy in com0 to allow the 
call but I could not figure out how to install qvm-usb in sys-usb (ist this 
possible?)
- send an event from sys-usb to dom0 to trigger a script that calls "qvm-usb 
attach" -> I looked into the Qubes eventing mechanism but failed to find a 
quick solution

Can somebody give me some hints on how I could automate "qvm-usb'ing" from 
sys-usb to auto-attach my USB device?

-- 
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/3eab7772-fa37-4972-ad87-7b03719860fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to