Comment 0 for bug 2073973

Revision history for this message
Thomas Parrott (tomparrott) wrote :

We are trying to get eBPF to work for microk8s in the LXD's `ubuntu:22.04` images which use the `-kvm` variant.

With this kernel we are getting this error:

level=warning msg="Unable to ensure that BPF JIT compilation is enabled. This can be ignored when Cilium is running inside non-host network namespace (e.g. with kin
d or minikube)" error="could not open the sysctl file /host/proc/sys/net/core/bpf_jit_enable: open /host/proc/sys/net/core/bpf_jit_enable: no such file or directory
" subsys=sysctl sysParamName=net.core.bpf_jit_enable sysParamValue=1

We've confirmed this works fine in the 22.04 generic kernel, so please can we have similar eBPF support in the `-kvm` variant kernel.

Suspect we need these config options enabled:

```
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
```

It would also be useful to ensure that the kernel config is available in /proc/config.gz or /boot/config (if not already) so that applications can discover which config options are enabled.