Need help setting up Incus on Gentoo ("incusbr0" error)

So I’ve been on Gentoo for a little over a month now, and for the most part when it comes to containers I’ve always used Distrobox and Podman/Docker.

Ever since I moved to Gentoo, Distrobox has been kinda buggy (either with Podman or Docker), and I’ve recently learned about Incus and wanted to try it.

At this point I can’t even get started with it due to whenever I use the “incus admin init” command I get this error at the end:

‘Error: Failed to create local member network “incusbr0” in project “default”: Failed clearing firewall: Failed clearing nftables rules for network “incusbr0”: EOF’

I’ve also recently read in several places where people have stated that Docker doesn’t play well with Incus, so I’ve completely cleaned out everything Docker and Distrobox related. I even tried different versions of Incus with creating all the necessary files for each version in “/etc/portage/”.

Just out of curiosity, I fired up a linux mint VM on my proxmox server and installed it there no problem.

My knowledge of networking is very limited and I’d sure love to get this fixed. I’ve already been struggling with this for the past 2 days.

Of course any advice or feedback would be greatly appreciated. Many thanks in advance.

I don’t use gentoo, but the first thing to check is whether you are missing nftables support.

What does sudo nft -nn list ruleset show?

If that fails, then I’d guess there’s some gentoo package you need to install. If that’s it, then the error message from incus could be improved.

1 Like

Yeah, I already had nftables installed and the openrc service starting in the default group.

And for some reason/s, while I still don’t completely understand it; I believe I just recently fixed it.

Recently I did an “@world“ update, and at the end of the prompt output it advised that use the “sudo rc-service nftables save“ command to update the configuration. I then rebooted, and was finally able to create, stop, and start containers!

1 Like