Comment 74 for bug 787091

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

@Hendrik,

note that if you can find the major:minor of the device you want to attach, you can grant the VM access manually. Assuming you just hot-plugged this usb drive, use 'dmesg' to find the device. If it's sdc, for instance, then do

ls -l /dev/sdc

and find:

brw-rw---- 1 root disk 8, 32 Feb 19 20:45 /dev/sdc

Now you can grant the VM called wg access by doing:

echo "b 8:32 rwm" > /sys/fs/cgroup/devices/libvirt/qemu/wg/devices.allow