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.
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 sys/net/ core/bpf_ jit_enable: open /host/proc/ sys/net/ core/bpf_ jit_enable: no such file or directory net.core. bpf_jit_ enable sysParamValue=1
d or minikube)" error="could not open the sysctl file /host/proc/
" subsys=sysctl sysParamName=
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:
``` BPF_SYSCALL= y
CONFIG_
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.