fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.08k stars 111 forks source link

bwrap: No permissions to creating new namespace #261

Closed ochen1 closed 3 years ago

ochen1 commented 3 years ago
$ junest
Could not understand if user namespace is enabled. No config.gz file found. Proceeding anyway...
bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.
Error: Something went wrong while executing bwrap command. Exiting

Any idea how to fix this?

I don't have any root permissions, and am trying to run this from inside a Heroku dyno / container.

fsquillace commented 3 years ago

Look at: https://github.com/fsquillace/junest/wiki/Linux-distros-with-user-namespace-enabled-by-default

Debian is one of the few linux distro which still does not have the user namespace enabled by default. The only option would be to use proot as backend (e.g. junest proot -f), it does not work all the time well though.