How do I attach an USB device to Dom0 for AEM?
I tried to use the guide from GitHub - QubesOS/qubes-antievilmaid: Qubes component: antievilmaid, but it does not work:
Note: If you choose to use a USB device (e.g., a flash drive) as your AEM
device and you previously created a USB qube, then you may have to unhide
your USB controller from dom0:
- Open the file
/etc/default/grub
in dom0.- Find the line that begins with
GRUB_CMDLINE_LINUX
.- If present, remove
rd.qubes.hide_all_usb
from that line.- Save and close the file.
- Run the command
grub2-mkconfig -o /boot/grub2/grub.cfg
in dom0.- Reboot.
After following the steps above, lsusb doesn’t show any usb device, lsblk doesn’t show any new block device (both in Dom0).
I also tried to use qvm-usb (in Dom0, too): qvm-usb attach --persistent dom0 <device name found out with "qvm-usb">
, but it does not work. Even worse: If I try to detach with qvm-usb detach dom0 <device-name>
, there is an error message that I “can not remove a persistent attachment from a non halted vm”. Do I have to halt Dom0 while still using it?
Qubes OS version: R4.0