From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mlA6GnBqyl/vbgAA0tVLHw (envelope-from ) for ; Fri, 04 Dec 2020 16:57:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aPSIFXBqyl9EeQAA1q6Kng (envelope-from ) for ; Fri, 04 Dec 2020 16:57:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 25BFE94021E for ; Fri, 4 Dec 2020 16:57:20 +0000 (UTC) Received: from localhost ([::1]:34304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klEOU-0001Fc-Vc for larch@yhetil.org; Fri, 04 Dec 2020 11:57:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klEN2-0007Of-D9 for guix-devel@gnu.org; Fri, 04 Dec 2020 11:55:48 -0500 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:37835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klEN0-0002Ee-Rq for guix-devel@gnu.org; Fri, 04 Dec 2020 11:55:48 -0500 Received: by mail-io1-xd2f.google.com with SMTP id p187so6426104iod.4 for ; Fri, 04 Dec 2020 08:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+O06bOI6Klrrlm/ARRhTImCyZ98iydkC7/vbLXI2mWQ=; b=ago8wUU0xmoUPJMvAO4vy7IULUde89kOpNyGvOXxs9HU4eRH4MjOWUorhNy1ldLBVx EE3hMEA2iPfA2jDAW/oEcA8XG8GvHi6CjoMwj9djl/LvAMCD9yb76mV1aEhIY489Y4Cp lTtXhALhRlbLKhmC1T1Um7+90UI0Uz9ebVuC7tbJ0cMp6ZeVQ9+gE7d61fVGbTI3iMsz G2RArREp+dk6bimkeZiLlj+16QoSe85p9b7rD5xhXalT4/ymwZkHEw9IuQw6A3B2jaat NqYCdzAWRtxDmMzZDaHTDk3ILWvBBfEida5kzNLDEQWqbxnuzajNAA4fkxizpJNti1Xo l/zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+O06bOI6Klrrlm/ARRhTImCyZ98iydkC7/vbLXI2mWQ=; b=gpdyVPcNFX14eEpOULSTvFR+Pz2FhtZnPtv9phBg5LLSQfLMJ+iPQ6mdPX9n2NS8W4 NoIjV594ngtsHHHhITyf+dCKCh1C5mUXLsfL+MV6VjCTunkjrGvwpYJc/sNiPzO0evsq 9Qx1kxDMWRje76HKoAEiSJhQEeCtguK+SJdneyReZ95IqgluDDPCXDltgoLqPQHYYTYh j+EZ21KzM2SYNrrTjg+nIt4JEanyTBr65mysRsGMfHxhLvRpPFp2xaTK0c0UthJNC4tw Ekvr90ieUPKypxnWXWXuoy99/ft0KewUY4SAXsL/Dq4LybeI7cVgdqR4zzBrob+XOO3s V7WQ== X-Gm-Message-State: AOAM530e0hoQaU0WW03OfggWgw5POPLFNldDQRRwhMVy5Ci8V52DEXTZ bWX/m25uEBKoC4yx01NztwTjnw57UR+zBgd1p9yDPXYS4LI= X-Google-Smtp-Source: ABdhPJzGRstZm0JFP2j1YxouitkcT0IGOn+rkSx3e2QfVDiRdV7eWhsiyiCB8veKS0DvSXz0E6icsaitGBn5joGegBo= X-Received: by 2002:a37:a54f:: with SMTP id o76mr9986023qke.201.1607099539768; Fri, 04 Dec 2020 08:32:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Fri, 4 Dec 2020 17:32:08 +0100 Message-ID: Subject: Re: guix environment: error: cannot create container: unprivileged user cannot create user namespaces To: yasu Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2f; envelope-from=zimon.toutoune@gmail.com; helo=mail-io1-xd2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ago8wUU0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 25BFE94021E X-Spam-Score: -2.99 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: bN1rmheuZGxD Hi, Thanks for the report. Are you using Guix System or Guix on foreign? On Fri, 4 Dec 2020 at 16:53, yasu 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