From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohit yadav Subject: Re: How to install guix without root permission Date: Fri, 6 Jan 2017 17:26:11 -0600 Message-ID: References: <87tw9cmh75.fsf@gnu.org> <87r34gkyj2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113b118e4a4b3b0545755a4a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPduT-0005JU-Oo for help-guix@gnu.org; Fri, 06 Jan 2017 18:26:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPduP-0000oU-SO for help-guix@gnu.org; Fri, 06 Jan 2017 18:26:57 -0500 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:33613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPduP-0000o9-Lc for help-guix@gnu.org; Fri, 06 Jan 2017 18:26:53 -0500 Received: by mail-oi0-x231.google.com with SMTP id 128so437933462oig.0 for ; Fri, 06 Jan 2017 15:26:53 -0800 (PST) In-Reply-To: <87r34gkyj2.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: help-guix@gnu.org --001a113b118e4a4b3b0545755a4a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =E2=80=8B On Fri, Jan 6, 2017 at 9:18 AM, Ludovic Court=C3=A8s wrote: > rohit yadav skribis: > > > =E2=80=8BThanks for the reply. =E2=80=8BThe proot (https://proot-me.git= hub.io/) project > > allows you to map $HOME/gnu/store to /gnu/store etc. However, where I a= m > > struggling is the guixbuild users and group creation, and running guix > > daemon. > > Yes, though PRoot relies on syscall interception using ptrace(2), which > is inefficient (which may or may not be a problem, depending on the > application). > > =E2=80=8B I am not greatly familiar with the lower level details of linux= kernel yet. How lot of these useful utilities work is not clear to me. I will probably work on it sometime (any references?). For now, the performance is not an issue. However, the main issue how to create guixbuild group and users?=E2=80=8B > > I am using kernel 4+, which supports namespaces. > > =E2=80=8BHow should I check it? Currently I believe that ubuntu 16.04 LTS= (host os) supports cgroup for LXD (LXC containers).=E2=80=8B > Yes, but some distributions compile it out or turn it off by default. > See > scripts/environment.scm#n517>, > for a way to check whether user namespaces are enabled. > > > This reminds if there is any effort to provide a lxc container for > > guixSD. > > Not that I know of, but I don=E2=80=99t think it would help the non-root = use > case. > =E2=80=8BYes, I agree, it would make it really easy for people wanting to t= ry guixsd and infact use in production inside lxc container. Also, from testing point it will be really easy. beside container utility provided by guix. May be not the highest priority for the developers right now. > > Ludo=E2=80=99. > --001a113b118e4a4b3b0545755a4a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=E2=80=8B

On Fri, Jan 6, 2017 at 9= :18 AM, Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
rohit yadav <rohityadav@utexas.edu> skribis:

> =E2=80=8BThanks for the reply. =E2=80=8BThe proot (https://proot-me.= github.io/) project
> allows you to map $HOME/gnu/store to /gnu/store etc. However, where I = am
> struggling is the guixbuild users and group creation, and running guix=
> daemon.

Yes, though PRoot relies on syscall interception using ptrace(2), wh= ich
is inefficient (which may or may not be a problem, depending on the
application).

=E2=80=8B I am not greatly familiar with the lower level details of linux= kernel yet. How lot of these useful utilities work is not clear to me. I w= ill probably work on it sometime (any references?). For now, the performanc= e is not an issue. However, =C2=A0the main issue how to create guixbuild gr= oup and users?=E2=80=8B
> I am using kernel 4+, which supports namespaces.

=E2=80=8BHow sh= ould I check it? Currently I believe that ubuntu 16.04 LTS (host os) suppor= ts cgroup for LXD (LXC containers).=E2=80=8B
Yes, but some distributions compile it out or turn it off by default= .
See
<http://git.savan= nah.gnu.org/cgit/guix.git/tree/guix/scripts/environment.scm#n517<= /a>>,
for a way to check whether user namespaces are enabled.

> This reminds if there is any effort to provide a lxc container for
> guixSD.

Not that I know of, but I don=E2=80=99t think it would help the non-= root use
case.

Ludo=E2=80=99.

--001a113b118e4a4b3b0545755a4a--