From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sDZYG0EjYWA8yQAAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 02:45:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GL1HFUEjYWBXbAAA1q6Kng (envelope-from ) for ; Mon, 29 Mar 2021 00:45:53 +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 83AAA17C1E for ; Mon, 29 Mar 2021 02:45:52 +0200 (CEST) Received: from localhost ([::1]:50258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQg2Q-0002Nb-Am for larch@yhetil.org; Sun, 28 Mar 2021 20:45:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQg24-0002NG-5P for help-guix@gnu.org; Sun, 28 Mar 2021 20:45:28 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:51326 helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQg21-0004ex-Q0 for help-guix@gnu.org; Sun, 28 Mar 2021 20:45:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1616978720; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=5TrhlvHUO/oYJPYyyF7UfSkEQ/R+CyzkLzwtYBNsiCw=; b=HcUDnynbrozgpdL+UFNDk2Pn71bF0HI5z3LpsCzaCoCu2Jnif1D6ORasoqfzhCZRD+XoqF gj5XKjahVl6ef4NT4JmiUNZB/hEPVBycchxXefp8f9A6C4ZD0BS2w7ZNosfZJmIKPJ/8lv boo5T0lN6Gn1LNb7/oXoWmt/dY9rcq4= From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: help-guix@gnu.org Subject: Introducing Guix to HPC at my institution Date: Mon, 29 Mar 2021 09:45:13 +0900 Message-ID: <87h7kuwzxi.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616978753; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5TrhlvHUO/oYJPYyyF7UfSkEQ/R+CyzkLzwtYBNsiCw=; b=Gv3X3SNdQzchAKipUMALCiA5v2BnnAOvVK2SkNRJ/S4QvOyeOBgQ9/71In3fbDnGi1Slaf uZQxoUumYm25qETbEP/TmvXkZV/fs1vQh9C6QL6ashmFyHM5qu3sBpZAKIRNybJuSXCKd9 XEhMazB/OWA0geoe28EUBFNl77CLJuA3coP1+aihJZu7K01em35kPdF/83HEyvxCjB725y znhyVfQbKdptwr0WSCyDFb2XdZ9vqI4gcBkDXbbVwvRvEE8Viebkb3cEiipH8gYNQtXO2x TbdZbR+/Th98gDi3ZjCAzanjG0XYws6XM/Lzwx49m6ta+PbczWRvVGht9e8GxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616978753; a=rsa-sha256; cv=none; b=krPGx72avWazJGIvOfDonbYK75tRe/tC15uBwlKfSwoepjZ9tit9yYuWd+Vt+5CeJsW2u3 UD8EGjP1xvCVupW1KCNZ2rgMOiQz+f7FaE/p23ph2C7xKNXgGAGXawxlbLt2/LOP30QzWz QLQ8LCmoUhkBdqmk5KMMAxpMzmI/FceUhGGe1BZ0+ssANyMCNDBXuvmJXQgknas/HW1qTl G2oP1/Vp/UvYs7ed9GGp1COGk35/dFL4kboHXWPi4d2qHIX9elJBrQ+e04BL64oP/+xhj/ 63/VYh46KahYus6HX9MxLafz0kXEr5PvpC/6q3eXPmNze7lupTXpeDDipzjYTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=HcUDnynb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=HcUDnynb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 83AAA17C1E X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: dCsyhwnsHViQ Dear all, (I am reposting a question I asked on the guix-science list --=20 with a broader audience here I hope someone has an answer :) ) I am interested in introducing Guix to the HPC cluster at my=20 institution, and it turns out they have user namespaces activated=20 \o/. So I'm looking into getting things running as an unpriviliged=20 user, to show other people how useful Guix can be (before=20 approaching higher levels in the administration). Is it possible=20 to install guix without being root? I tried a few things, based on the following notes: https://hpc.guix.info/blog/2017/09/reproducibility-and-root-privileges/ https://hpc.guix.info/blog/2017/10/using-guix-without-being-root/ http://issues.guix.gnu.org/34494 I am now following Guix's binary installation inside a user=20 namespace. After decompressing the binary distribution of guix=20 inside `~/local-guix`, my na=C3=AFve next step was `unshare -mrf chroot=20 ~/local-guix=20 gnu/store/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16/bin/bash`.=20 Then after setting $GUIX_PROFILE and sourcing=20 `/root/.config/guix/current`, running `guix` warns with: GC Warning: pthread_getattr_np or pthread_attr_getstack failed=20 for main thread GC Warning: Couldn't read /proc/stat So my very limited knowledge of linux namespaces is hindering my=20 next steps :). A few questions: 1. Should I do anything about the first warning? About the second=20 warning: should I be binding `/proc` somehow? 2. Is it possible to create build users inside the user-namespaced=20 chroot? 3. Last but not least: if I can create build users inside the=20 chroot (question 2.), I suppose I can then run guix-daemon=20 properly. How would I go about sharing this setup with other users=20 on the cluster? Ideally I would like to have a non-priviliged=20 build daemon that other users can call on. (Is there such a thing=20 as kernel group namespaces?) Is this the right way to go for running guix without being root,=20 or is there a better way? Thanks for any guidance you might provide! Best, S=C3=A9bastien