all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: yasu <yasu@yasuaki.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: guix environment: error: cannot create container: unprivileged user cannot create user namespaces
Date: Fri, 4 Dec 2020 17:32:08 +0100	[thread overview]
Message-ID: <CAJ3okZ19V7jh8SEOSKR+kMw_9qCWupjiHecNi+0v2A_fKH2EKQ@mail.gmail.com> (raw)
In-Reply-To: <e5c86d238ca5174b745b8ea6cb0cb6ad6b20aa5e.camel@yasuaki.com>

Hi,

Thanks for the report.  Are you using Guix System or Guix on foreign?


On Fri, 4 Dec 2020 at 16:53, yasu <yasu@yasuaki.com> wrote:

> I rely on the -C option below to compile ./pre-inst-env .

Aside that nothing, --pure, or -C should work.  The nothing could not,
depending on your setup.  Anyway.


> ~/co/guix (master)$ 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"

Have you tried to do the recommandation?

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

(as root if you can).  For example, on Debian, I have been doing that
since ever.  And even I have documented it to not forget when I
reinstall. :-)

--8<---------------cut here---------------start------------->8---
    Be careful !
    #+begin_src shell
      # as root
      echo "kernel.unprivileged_userns_clone = 1" > /etc/sysctl.d/local.conf
      sysctl --system
    #+end_src
--8<---------------cut here---------------end--------------->8---


All the best,
simon


  parent reply	other threads:[~2020-12-04 16:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 15:52 guix environment: error: cannot create container: unprivileged user cannot create user namespaces yasu
2020-12-04 16:04 ` Ricardo Wurmus
2020-12-04 16:29   ` Yasuaki Kudo
2020-12-04 16:32 ` zimoun [this message]
2020-12-04 18:55   ` Pjotr Prins
2020-12-04 20:44     ` Yasuaki Kudo
2020-12-05  0:20     ` yasu
2020-12-06 12:41       ` BUG: " yasu
2020-12-06 16:16         ` bug#45069: " Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-12-06 16:56         ` zimoun
2020-12-06 20:51           ` yasu
2021-01-06 10:49             ` raingloom
2020-12-06 20:54           ` bug#45069: " Jesse Dowell
2020-12-07 11:57             ` Pierre Neidhardt
2020-12-07 12:29               ` Paul Garlick
2020-12-07 12:41                 ` Yasuaki Kudo
2020-12-07 17:13                 ` Pierre Neidhardt
2020-12-07 17:35                   ` bug#45069: Guix System: unprivileged user cannot create user namespaces? zimoun
2020-12-07 17:55                     ` Vagrant Cascadian
2020-12-07 20:03                       ` zimoun
2020-12-08  3:20                       ` Bengt Richter
2020-12-07 19:50                   ` bug#45069: BUG: Re: guix environment: error: cannot create container: unprivileged user cannot create user namespaces Paul Garlick
2020-12-07 20:35                     ` Pierre Neidhardt
2020-12-07 21:09                       ` zimoun
2021-01-04  9:11                       ` Pierre Neidhardt
2020-12-07 13:26               ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ3okZ19V7jh8SEOSKR+kMw_9qCWupjiHecNi+0v2A_fKH2EKQ@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=yasu@yasuaki.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.