From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Sharing host file systems with a VM Date: Fri, 21 Nov 2014 00:08:20 +0100 Message-ID: <87a93lv5az.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]:53688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xraq0-0000MQ-Lr for guix-devel@gnu.org; Thu, 20 Nov 2014 18:08:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xrapr-0007Jq-CE for guix-devel@gnu.org; Thu, 20 Nov 2014 18:08:32 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:34576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrapr-0007JY-6A for guix-devel@gnu.org; Thu, 20 Nov 2014 18:08:23 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D4E794028 for ; Fri, 21 Nov 2014 00:08:21 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V7a4TZhTN1kv for ; Fri, 21 Nov 2014 00:08:21 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 4907083C for ; Fri, 21 Nov 2014 00:08:21 +0100 (CET) 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel =E2=80=98guix system vm=E2=80=99 can now be told to share more file systems= with the host, in addition to /gnu/store: Additional file systems can be shared between the host and the VM using the =E2=80=98--share=E2=80=99 and =E2=80=98--expose=E2=80=99 com= mand-line options: the former specifies a directory to be shared with write access, while the latter provides read-only access to the shared directory. The example below creates a VM in which the user=E2=80=99s home direct= ory is accessible read-only, and where the =E2=80=98/exchange=E2=80=99 dir= ectory is a read-write mapping of the host=E2=80=99s =E2=80=98$HOME/tmp=E2=80=99: guix system vm my-config.scm \ --expose=3D$HOME --share=3D$HOME/tmp=3D/exchange Thanks David for giving me an incentive to work on this. ;-) Ludo=E2=80=99.