Subject: Re: bug#45066: guix environment --container is borken

From: zimoun <[email-masked]>
Date: Sun, 06 Dec 2020 18:05:49 +0100

Hi,

On Sun, 06 Dec 2020 at 16:59, luhux <[email-masked]> wrote:
> In the new guix `guix environment --container` is borken.

It is not broken.

> Please fix it,

Please fix your config. :-)

The message says:

--8<---------------cut here---------------start------------->8---
$ guix environment -C --ad-hoc hello -- hello 
guix environment: error: cannot create container: unprivileged user cannot create user namespaces
guix environment: error: please set /proc/sys/kernel/unprivileged_userns_clone to "1"
--8<---------------cut here---------------end--------------->8---

Have you tried the recommendation?

--8<---------------cut here---------------start------------->8---
$ su -
Password: 
# echo 1 > /proc/sys/kernel/unprivileged_userns_clone 
# logout

$ guix environment -C --ad-hoc hello -- hello 
Hello, world!
--8<---------------cut here---------------end--------------->8---

Feel free to comment on the thread:

<https://yhetil.org/guix/[email-masked]>

if it does not work for you.

If no major objection, I am closing.

All the best,
simon