From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guixsd in lxd container Date: Mon, 19 Jun 2017 13:41:06 +0200 Message-ID: <874lvcyzl9.fsf@gnu.org> References: <87h8zo3jzk.fsf@gnu.org> <8737b6qnhp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMv3V-00087F-1J for guix-devel@gnu.org; Mon, 19 Jun 2017 07:41:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMv3U-0000I2-5n for guix-devel@gnu.org; Mon, 19 Jun 2017 07:41:17 -0400 In-Reply-To: (Eddy Pronk's message of "Fri, 16 Jun 2017 22:21:59 +1000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Eddy Pronk Cc: guix-devel@gnu.org, David Thompson Hi Eddy, Sorry for the delay. Eddy Pronk skribis: > On Mon, Jun 12, 2017 at 6:26 AM, Ludovic Court=C3=A8s wrot= e: >>> I had to comment out some snippets from activation.scm: >>> >>> ;; activate-modprobe >>> ;; activate-firmware >>> ;; activate-ptrace-attach >> >> Yeah, =E2=80=98guix system container=E2=80=99 does that too: >> >> http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system.scm#n418 >> http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services.scm#n466 >> >> I think we should look for ways that would allow you to reuse what =E2= =80=98guix >> system container=E2=80=99 does. > > Shall I open a bug for this so it can be tracked? Before, I=E2=80=99d like to make sure we have a good understanding of what = we need. My first question would be, do we really need to have a mechanism other than =E2=80=98guix system container=E2=80=99? I guess that if the host sys= tem runs LXD, it=E2=80=99s better to use it than to spawn the script that =E2=80=98guix s= ystem container=E2=80=99 generates. In that case, what about adding an LXD backend to =E2=80=98guix system container=E2=80=99? AIUI LXD has a REST API=C2=B9; by doing a POST on /1.0= /images, we should be able to register our container image, though it=E2=80=99s not = clear to me what image format is expected. If we can figure out these details, it might not be that hard to implement. Dave, there=E2=80=99s also some overlap with your work on =E2=80=98guix del= oy=E2=80=99 I think. Thoughts? Ludo=E2=80=99. =C2=B9 https://github.com/lxc/lxd/blob/master/doc/rest-api.md