<p>I am trying to setup an LXC container (debian) as a Kubernetes node.
I am so far that the only thing in the way is the kubeadm init script...</p>
<pre class="lang-sh prettyprint-override"><code>error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR SystemVerification]: failed to parse kernel config: unable to load kernel module: &quot;configs&quot;, output: &quot;modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.4.44-2-pve/modules.dep.bin'\nmodprobe: FATAL: Module configs not found in directory /lib/modules/5.4.44-2-pve\n&quot;, err: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
</code></pre>
<p>After some research I figured out that I probably need to add the following: <code>linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay</code>
But adding this to <code>/etc/pve/lxc/107.conf</code> doesn't do anything.</p>
<p><strong>Does anybody have a clue how to add the linux kernel modules?</strong></p>

kevingoos
<p>To allow load with modprobe any modules inside privileged proxmox lxc container, you need add this options to container config:</p>
<pre><code>lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:
lxc.mount.auto: proc:rw sys:rw
lxc.mount.entry: /lib/modules lib/modules none bind 0 0
</code></pre>
<p>before that, you must first create the /lib/modules folder inside the container</p>
