I just tried to setup k3s on a fresh ubuntu-20.0.4.4. Installation/Startup failed
root@h2968750:~# systemctl status k3s
● k3s.service - Lightweight Kubernetes
Loaded: loaded (/etc/systemd/system/k3s.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2022-03-27 20:18:58 CEST; 3s ago
Docs: https://k3s.io
Process: 20618 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS)
Process: 20620 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=1/FAILURE)
Process: 20621 ExecStartPre=/sbin/modprobe overlay (code=exited, status=1/FAILURE)
Process: 20622 ExecStart=/usr/local/bin/k3s server (code=exited, status=1/FAILURE)
Main PID: 20622 (code=exited, status=1/FAILURE)
root@h2968750:~#
root@h2968750:~# modprobe br_netfilter
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.19.0/modules.builtin.bin'
modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/4.19.0
root@h2968750:~# modprobe overlay
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.19.0/modules.builtin.bin'
modprobe: FATAL: Module overlay not found in directory /lib/modules/4.19.0
root@h2968750:~#
After a while without success I tried Debian. Nearly same result.
Can anybody help me out here?
Is there a magic installation flag? Is there a way to install the missing modules?
root@h2968750:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@h2968750:~# modprobe br_netfilter
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.19.0/modules.builtin.bin'
modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/4.19.0
root@h2968750:~# k3s -version
k3s version v1.22.7+k3s1 (8432d7f2)
go version go1.16.10
root@h2968750:~#
Check output:
root@h2968750:~# k3s check-config /lib/modules
Verifying binaries in /var/lib/rancher/k3s/data/31ff0fd447a47323a7c863dbb0a3cd452e12b45f1ec67dc55efa575503c2c3ac/bin:
- sha256sum: good
- links: good
System:
- /usr/sbin iptables v1.8.2 (legacy): ok
- swap: disabled
- routes: ok
Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000
modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.19.0/modules.builtin.bin'
modprobe: FATAL: Module configs not found in directory /lib/modules/4.19.0
info: reading kernel config from /lib/modules ...
Generally Necessary:
- cgroup hierarchy: cgroups V1 mounted, cpuset|memory controllers status: good
- CONFIG_NAMESPACES: missing (fail)
- CONFIG_NET_NS: missing (fail)
- CONFIG_PID_NS: missing (fail)
- CONFIG_IPC_NS: missing (fail)
- CONFIG_UTS_NS: missing (fail)
- CONFIG_CGROUPS: missing (fail)
- CONFIG_CGROUP_CPUACCT: missing (fail)
- CONFIG_CGROUP_DEVICE: missing (fail)
- CONFIG_CGROUP_FREEZER: missing (fail)
- CONFIG_CGROUP_SCHED: missing (fail)
- CONFIG_CPUSETS: missing (fail)
- CONFIG_MEMCG: missing (fail)
- CONFIG_KEYS: missing (fail)
- CONFIG_VETH: missing (fail)
- CONFIG_BRIDGE: missing (fail)
- CONFIG_BRIDGE_NETFILTER: missing (fail)
- CONFIG_IP_NF_FILTER: missing (fail)
- CONFIG_IP_NF_TARGET_MASQUERADE: missing (fail)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: missing (fail)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: missing (fail)
- CONFIG_NETFILTER_XT_MATCH_IPVS: missing (fail)
- CONFIG_IP_NF_NAT: missing (fail)
- CONFIG_NF_NAT: missing (fail)
- CONFIG_POSIX_MQUEUE: missing (fail)
Optional Features:
- CONFIG_USER_NS: missing
- CONFIG_SECCOMP: missing
- CONFIG_CGROUP_PIDS: missing
- CONFIG_BLK_CGROUP: missing
- CONFIG_BLK_DEV_THROTTLING: missing
- CONFIG_CGROUP_PERF: missing
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: missing
- CONFIG_CGROUP_NET_PRIO: missing
- CONFIG_CFS_BANDWIDTH: missing
- CONFIG_FAIR_GROUP_SCHED: missing
- CONFIG_RT_GROUP_SCHED: missing
- CONFIG_IP_NF_TARGET_REDIRECT: missing
- CONFIG_IP_SET: missing
- CONFIG_IP_VS: missing
- CONFIG_IP_VS_NFCT: missing
- CONFIG_IP_VS_PROTO_TCP: missing
- CONFIG_IP_VS_PROTO_UDP: missing
- CONFIG_IP_VS_RR: missing
- CONFIG_EXT4_FS: missing
- CONFIG_EXT4_FS_POSIX_ACL: missing
- CONFIG_EXT4_FS_SECURITY: missing
enable these ext4 configs if you are using ext4 as backing filesystem
- Network Drivers:
- "overlay":
- CONFIG_VXLAN: missing
Optional (for encrypted networks):
- CONFIG_CRYPTO: missing
- CONFIG_CRYPTO_AEAD: missing
- CONFIG_CRYPTO_GCM: missing
- CONFIG_CRYPTO_SEQIV: missing
- CONFIG_CRYPTO_GHASH: missing
- CONFIG_XFRM: missing
- CONFIG_XFRM_USER: missing
- CONFIG_XFRM_ALGO: missing
- CONFIG_INET_ESP: missing
- CONFIG_INET_XFRM_MODE_TRANSPORT: missing
- Storage Drivers:
- "overlay":
- CONFIG_OVERLAY_FS: missing
STATUS: 24 (fail)