From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2MknJ1LCYWBjYwAAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 14:04:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WCgXIlLCYWAyTgAA1q6Kng (envelope-from ) for ; Mon, 29 Mar 2021 12:04:34 +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 EB00C2B51F for ; Mon, 29 Mar 2021 14:04:31 +0200 (CEST) Received: from localhost ([::1]:42140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQqdB-00066E-Li for larch@yhetil.org; Mon, 29 Mar 2021 08:04:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQqc0-0005Np-Qv for guix-science@gnu.org; Mon, 29 Mar 2021 08:03:16 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:29112) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQqbx-00068T-Tt for guix-science@gnu.org; Mon, 29 Mar 2021 08:03:16 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AxRtkpKp6GbCo9zHdVHGkXjYaV5qgeYIsi2QD?= =?us-ascii?q?101hICF9WMqeisyogbAnzhfykjkcQzUNntqHNamGTxrnmaJdy48XILukQU3aqH?= =?us-ascii?q?KlRbsM0aLO4R3FXxf/+OlUyLt6f8FFY+HYIFBmga/BjjWQPM0nxLC8kZyAoevF?= =?us-ascii?q?1X9iQUVLRshbnmVEIyKaFkEzewVcH5o+E/OnhvZvnDardXQJYsnTPBBsNYX+ju?= =?us-ascii?q?fWn5HrawNuPW9D1CCyi1qTmd3HOind8hACUy5ehZcOmFK19TDR1+GYnbWW6jK0?= =?us-ascii?q?7R62071m3OHOjvtvbfb87fQoFg=3D=3D?= X-IronPort-AV: E=Sophos;i="5.81,287,1610406000"; d="scan'208";a="377162416" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 14:03:08 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?S=C3=A9bastien?= Lerique Cc: guix-science@gnu.org, zimoun Subject: Re: Introducing Guix to HPC at my institution References: <878s6pds9t.fsf@eauchat.org> <87zgz3c17o.fsf@eauchat.org> <8735wva2p9.fsf@gnu.org> <87r1kdci49.fsf@eauchat.org> <877dlucsur.fsf@eauchat.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Germinal an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 29 Mar 2021 14:03:08 +0200 In-Reply-To: <877dlucsur.fsf@eauchat.org> (=?utf-8?Q?=22S=C3=A9bastien?= Lerique"'s message of "Fri, 26 Mar 2021 17:22:43 +0900") Message-ID: <87k0pqrwub.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617019472; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=HGTg6O4QCg3eGnTRAIDCMksE6f6TfTebVSwxEk8EgkY=; b=hPqXeyqX0XjF4VNl1Ya2adr0hIqm39CZrHwMx3oirqJ9kNOl9Lupd9vLUeaqg9dSps89i0 ruwQ8yUra2kKBaXvA05/XAdl4t6GBYIj6xJgOabVJe9ZV4o1fixoadlm19GPlFeeRz7Xe3 4nhoMyuIWNMG+jP39okpHqtYBcIs5PvfjnIpWipZxc1ABoKzTGtJh6/aJeRvMpOgEvGgDF hpcITccBaoLg9lbHaoiuJVyFx+YMYM/ZynUb4/zMvjeM2+i2XNOGTqM/emW46UCp0HlZQA o/x69lH1ITceAnI1wuxL9M50HGcmp2AF3Je4e5Bvf4bD5qrgL6ceYX5X/zd90A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617019472; a=rsa-sha256; cv=none; b=VPfc/EZrippc7szHC7QPprPrCBl8LhUnB1XfI10EzFonJKZrStwMINQmDFxQt+7Ypnpqyu +ILDpfv/bVNArlG3gfVtog01UMBepS+48R/S7egfH1gRUEPPLBApS+zO8EfiuN+GuEspg6 miwvLnFPT4Ce+uf08BuXhUNbkzgogI29DRwOKHyx2IjWnYo7fKwX73k94SsiavdA6YLo16 W/L3smuNwj7SSwbdcbW0E0uqAMSF7jv2XDErCpnOYPuqrK9yiMTnku6EmdTPKEoDeapBhe abzXxv0qNwl2DL09f9l+NmZN+z937PBIIX8/W4Ir25N8gOiLddhteQdx9W60QA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Spam-Score: -2.98 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Queue-Id: EB00C2B51F X-Spam-Score: -2.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: hWgc3oT7oHna Hi S=C3=A9bastien, S=C3=A9bastien Lerique skribis: > It turns out the HPC cluster I have access to has user namespaces > activated \o/, so I'm looking into getting things running as an=20 > unpriviliged user to show other people how useful Guix can be (before > approaching higher levels in the administration). Good! > and am now following Guix's binary installation inside a user > namespace. After decompressing the binary distribution of guix=20 > inside `~/local-guix`, my na=C3=AFve next step was `unshare -mrf chroot > ~/local-guix=20 > gnu/store/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16/bin/bash`. Instead of installing the =E2=80=9Cregular=E2=80=9D binary tarball inside a= namespace, it might be easier to create a tarball like so: guix pack -RR -S /bin=3Dbin -S /etc=3Detc guix bash =E2=80=A6 and to unpack the resulting tarball. >From there, you can run ./bin/sh to get a shell that =E2=80=9Csees=E2=80=9D= /gnu/store. You can then run: . ./etc/profile And then, you should be able to run the daemon, like so: export GUIX_STATE_DIRECTORY=3D$HOME/.local/var/guix guix-daemon --disable-chroot & (Adapted from .) Does that work for you? > But my knowledge of linux namespaces is hindering my next steps :). A > few questions: > > - after setting $GUIX_PROFILE and sourcing > `/root/.config/guix/current`, running `guix` warns with: > > GC Warning: pthread_getattr_np or pthread_attr_getstack failed for > main thread > GC Warning: Couldn't read /proc/stat > > The first warning I don't know what to do with. About the second: > should I be binding `/proc` somehow? Yes, you should expose /proc. The wrappers created by =E2=80=98guix pack -= RR=E2=80=99 in the example above bind-mount everything + /gnu/store, such that you can=E2=80=99t tell the difference. > - is it possible to create build users inside the user-namespaced > chroot? No: you still have a single UID at hand, so there=E2=80=99s no way to alloc= ate new ones. > - last but not least, how would I go about sharing this setup with > other users on the cluster? Ideally I would like to have a=20 > non-priviliged build daemon that other users can call on. (Is there > such a thing as kernel group namespaces?) It=E2=80=99s not really sharable. To share it, you would need some sort of= a shared trusted =E2=80=9Cproxy=E2=80=9D; that=E2=80=99s precisely what guix-= daemon is in normal multi-user setups. HTH! Ludo=E2=80=99.