Permission error while adding new physical device to QEMU under libvirt? -


i'm trying add usb camera qemu can virtualized guest os. i've added following item in /etc/libvirt/qemu.conf.

cgroup_device_acl = [ "/dev/null", "/dev/full", "/dev/zero", ... "/dev/rtc", "/dev/hpet", **"/dev/video0",** ] 

also, i've mounted cgroup controller below.

mkdir /dev/cgroup mount -t cgroup none /dev/cgroup -o devices 

but i'm getting "permission denied" error(13) in following code.

fd = open("/dev/video0", o_rdwr | o_nonblock, 0); 

strange observation error happens when use virt-manager(libvirt). issue disappears when qemu run command-line. there anyway give device access qemu in libvirt? or more step check libvirt/qemu.conf?

very long shot, did had chance go through page on libvirt docs?

it's different issue, it's being stated there, disabling selinux 1 of steps required.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -