Subject: Re: bug#45069: BUG: Re: guix environment: error: cannot create container: unprivileged user cannot create user namespaces

From: zimoun <[email-masked]>
Date: Mon, 07 Dec 2020 14:26:21 +0100

Hi Pierre,

On Mon, 07 Dec 2020 at 12:57, Pierre Neidhardt <[email-masked]> wrote:

> Guix' bug?

You get something as:

  $ guix environment -C guix
  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"

right?   Have you tried to do the recommendation?

      please set /proc/sys/kernel/unprivileged_userns_clone to "1"

in other words, as root:

  # echo 1 > /proc/sys/kernel/unprivileged_userns_clone
  $ guix environment -C --ad-hoc hello -- hello

and report.

Thanks,
simon