Unfortunately matching the generic kernel configuration isn't a possibility,
that would introduce too much changes, I did push for this before without
success.
However, for k8s here, it results in 13 configs which should be ok.
Here is all that I enabled :
CONFIG_BPF_JIT
CONFIG_BPF_JIT_DEFAULT_ON
CONFIG_NET_EGRESS
CONFIG_NET_SCHED
CONFIG_NET_SCH_INGRESS
CONFIG_NET_CLS
CONFIG_NET_CLS_CGROUP
CONFIG_NET_CLS_BPF
CONFIG_NET_CLS_ACT
CONFIG_NET_SCH_FIFO
CONFIG_CRYPTO_USER_API
CONFIG_CRYPTO_USER_API_HASH
CONFIG_SCHEDSTATS
Could you try the resulting kernel ? It's available here :
https://people.canonical.com/~thibf/2073973/
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/2073973
Title:
Add eBPF support to ubuntu:22.04 -kvm variant kernel
Status in cloud-images:
New
Status in linux-kvm package in Ubuntu:
New
Status in linux-kvm source package in Jammy:
In Progress
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/2073973/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp