Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED]How do I enable CONFIG_CGROUP_BPF when using OpenRC?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
allistarM
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Thu Jul 22, 2004 1:10 am

[SOLVED]How do I enable CONFIG_CGROUP_BPF when using OpenRC?

  • Quote

Post by allistarM » Fri Jan 19, 2024 11:21 pm

Hi all,
My docker environment stopped working and the error when running "docker compose up -d" is:

Code: Select all

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown
It seems I need to enable the CONFIG_CGROUP_BPF kernel config option, but this is only available if you're using Systemd. I'm using OpenRC. Here's the details for that config option:

Code: Select all

 Symbol: CGROUP_BPF [=n]
  │ Type  : bool
  │ Defined at init/Kconfig:1157
  │   Prompt: Support for eBPF programs attached to cgroups
  │   Depends on: CGROUPS [=y] && BPF_SYSCALL [=n]
  │   Location:
  │     -> General setup
  │ (1)   -> Control Group support (CGROUPS [=y])
  │         -> Support for eBPF programs attached to cgroups (CGROUP_BPF [=n])
  │ Selects: SOCK_CGROUP_DATA [=y]
  │ Selected by [n]:
  │   - GENTOO_LINUX_INIT_SYSTEMD [=n] && GENTOO_LINUX [=y] && GENTOO_LINUX_UDEV [=y]
How do I enable this option when I'm using OpenRC? If I can't, then how do I run docker on OpenRC?
Last edited by allistarM on Sat Jan 20, 2024 12:57 am, edited 1 time in total.
Top
pietinger
Administrator
Administrator
Posts: 6630
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Jan 19, 2024 11:37 pm

This has nothing to do with systemd. Look at the line:
Depends on: CGROUPS [=y] && BPF_SYSCALL [=n]
You have CGROUPS enabled. Good. But your are missing BPF_SYSCALL.

Enable it:

Code: Select all

General setup  --->
    BPF subsystem  --->
        [*] Enable bpf() system call
Now you should be able to enable:

Code: Select all

General setup  --->
    -*- Control Group support  --->
        [*]   Support for eBPF programs attached to cgroups
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
allistarM
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Thu Jul 22, 2004 1:10 am

  • Quote

Post by allistarM » Sat Jan 20, 2024 12:57 am

Thank you very much! Your post is appreciated. I should read what the kernel config says more closely. I was worried I'd have to convert to systemd which would be an annoyance.

I now have the kernel option enabled and my docker containers are working again.
Thanks again!
Top
pietinger
Administrator
Administrator
Posts: 6630
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat Jan 20, 2024 1:20 am

allistarM wrote:Thanks again!
You are very Welcome ! :D

Have fun with Gentoo ! 8)
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
ricardo82
n00b
n00b
User avatar
Posts: 3
Joined: Sat Jun 10, 2023 10:10 am

Thx

  • Quote

Post by ricardo82 » Sat Mar 15, 2025 3:04 pm

pietinger wrote:This has nothing to do with systemd. Look at the line:
Depends on: CGROUPS [=y] && BPF_SYSCALL [=n]
You have CGROUPS enabled. Good. But your are missing BPF_SYSCALL.

Enable it:

Code: Select all

General setup  --->
    BPF subsystem  --->
        [*] Enable bpf() system call
Now you should be able to enable:

Code: Select all

General setup  --->
    -*- Control Group support  --->
        [*]   Support for eBPF programs attached to cgroups
-> solved it for me,
Ricardo is my name.
I am using gentoo since 2016.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic