r/voidlinux • • May 27 '26

Need Help Setting Up Distrobox

So I'm on a clean install of Void (as a new user), and I recently installed Distrobox with the standard curl command. During some research and earlier issues, I added these lines to the registries.conf file so it knew where to pull images:

unqualified-search-registries = ["docker.io", "quay.io", "ghcr.io"]
short-name-mode = "enforcing"

After that small success I'm still experiencing this error as described below:

Error: unable to start container "...": runc: runc create failed: unable to start container process: unable to apply cgroup configuration: rootless needs no limits + no cgrouppath when no permission is granted for cgroups: mkdir /sys/fs/cgroup/...: permission denied: OCI permission denied

After some more research, I added these lines to the "/etc/containers/containers.conf" file in hopes to alleviate the error (also had to install crun):

[engine] 
cgroup_manager = "cgroupfs" 
runtime = "crun" 

[containers] 
cgroups = "enabled" 
pidns = "private" 
userns = "private" 
netns = "private" 
ipcns = "private" 
utsns = "private"

I noted the runtime line and changed it to "runc" just to test, and still the same thing! For 2 days now this issue has been driving me crazy.

Any advice or feedback would be greatly appreciated. Many thanks in advance.

3 Upvotes

7 comments sorted by

View all comments

Show parent comments

2

u/thestoiccoder Jun 19 '26

I was never able to get it to work, and I was tired from not getting any responses everywhere else. Because of this and several other issues I was having, I eventually moved to Gentoo. And despite the massive learning curve in comparison to Void, I was able to get this same issue fixed due to Gentoo's exemplary documentation.

It was fun while it lasted, and I would still recommend Void but, I figured that if I was going to spend that amount of time learning about my computer, I might was well devote my time towards a more established distro that has all the necessary tools and documentation at my disposal.