[lxc-users] Unable to Load Driver Inside Container

Serge Hallyn serge.hallyn at ubuntu.com
Wed Feb 17 18:53:38 UTC 2016


Quoting hari (haritg020 at gmail.com):
> Hi Serge,
> 
> Thanks for the reply. Could you let me know the steps for clearing the
> lxc.cap.drop and setting it with other bits if it's not of inconvenience.
> Also do you know which bits should be set?
> 
> It is not necessary for me to load the driver inside container. I am not
> able to access the driver (which is loaded in the host) inside the
> container. I tried the option *lxc-device* (*lxc-device -n <con_name> add
> /dev/<dev_name>*) to add the device to the container. It failed to add the
> device. If there is a way for the container to use the driver loaded
> outside I would be able to get this to work. Any suggestions?

As Guido said, please provide more details.

Loading the kernel module on the host makes it available to the containers.
However, you may need to create device nodes in the container, may need to
provide access through the devices cgroup, may need to add permission in
the apparmor or selinux profile, and in some cases may need to pass in a
socket or something.


More information about the lxc-users mailing list