Hi all,
I’m trying to install K3S inside an lxc container following these instrucions
The problem is that I have to load some kernel modules inside the LXC container.
On the host machine I have
sysop@hoseplak3s:~$ modprobe overlay
sysop@hoseplak3s:~$ modinfo overlay
filename: /lib/modules/4.18.0-21-generic/kernel/fs/overlayfs/overlay.ko
alias: fs-overlay
...
But in the container I have
root@k3s-server:~# modprobe overlay
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.18.0-21-generic/modules.dep.bin'
modprobe: FATAL: Module overlay not found in directory /lib/modules/4.18.0-21-generic
root@k3s-server:~#
Actually into the LXC container the “/lib/modules/” directory is empty
How can I load kernel modules inside the container?