0

lxc containers do not have their own Kernel so is there possible way to load the kernel into lxc container?

1
  • They're using host's kernel.
    – gronostaj
    Commented Mar 16, 2020 at 7:32

1 Answer 1

0

No, it isn't. Modules get loaded by becoming part of the kernel's running code. As you noted, there is only one kernel, so that also means there can be only one set of modules.

In addition, even though guests/containers are using the host's kernel, LXC doesn't allow them to load their own modules into the host's kernel, because that would make escaping the container very easy (by loading a custom module that allows bypassing the namespace separation).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .