From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: =?utf-8?Q?=E2=80=98guix?= system =?utf-8?Q?vm=E2=80=99?= and shared store Date: Sun, 28 Aug 2016 16:22:21 +0200 Message-ID: <87eg592cte.fsf_-_@gnu.org> References: <87bn0pp58b.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]:41692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be0yk-0006Yt-N1 for guix-devel@gnu.org; Sun, 28 Aug 2016 10:22:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1be0yf-0004c4-Mu for guix-devel@gnu.org; Sun, 28 Aug 2016 10:22:29 -0400 In-Reply-To: (David Craven's message of "Sun, 21 Aug 2016 19:38:13 +0200") 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: David Craven Cc: guix-devel Hi, David Craven skribis: > So guix doesn't work inside a vm - because /gnu/store is mounted > readonly. Right, and also because =E2=80=98guix system vm=E2=80=99 creates a VM that = shares its store with the host system. > To be able to offload arm builds once guix system vm > --system=3Darmhf-linux works, /gnu/store needs to be writeable. > > Can multiple daemons concurrently use the same store? No. > or alternatively, can we move the > > (unless (zero? (system* unionfs "-o" > > "cow,allow_other,use_ino,suid,dev,max_files=3D65536" > "/rw-root=3DRW:/real-root=3DRO" > "/root")) > (error "unionfs failed")) > > to after the 9p filesystems have been mounted, so that the unionfs > allows writing to /gnu/store too? Yes, something like that: we need to make /gnu/store a union of the host=E2=80=99s /gnu/store and a writable tmpfs, and we need to make sure /var/guix/db/db.sqlite is populated appropriately (images produced by =E2=80=98guix system vm-image=E2=80=99 do the latter.) HTH! Ludo=E2=80=99.