[Lxc-users] Camera access inside container

Serge Hallyn serge.hallyn at canonical.com
Wed Nov 28 14:53:45 UTC 2012


Quoting vignesh kumar (vigneshkumar86 at gmail.com):
> Hi,
>     I am using a lxc-ubuntu container in a ubuntu 11.10 host OS. An
> application running in a container requires camera access . Currently
> I have a USB based webcam which mount as /dev/video0 in my host.I
> tried giving access to the device by adding the  line
> "lxc.cgroup.allow=c 81:0 rwm" in my lxc config file. But still getting

this needs to be lxc.cgroup.devices.allow

> error msg "mknod:/dev/video0 Operation not permitted" in my container.
> Can anyone give me a solution  in accessing camera inside a container?

Did you stop and re-start your container after adding that line to
your config?

-serge




More information about the lxc-users mailing list