From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: qemu shared folder Date: Mon, 22 May 2017 14:07:18 +0200 Message-ID: <87tw4dt7rd.fsf@gnu.org> References: 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]:52734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCm7R-0005Hh-UP for help-guix@gnu.org; Mon, 22 May 2017 08:07:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCm7N-0003r1-16 for help-guix@gnu.org; Mon, 22 May 2017 08:07:25 -0400 In-Reply-To: (catonano@gmail.com's message of "Mon, 22 May 2017 10:10:11 +0200") 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: Catonano Cc: help-guix Hello, Catonano skribis: > I created my virtual machine with this command > > guix system vm-image /etc/vm-config-desktop.scm \ > --image-size=3D30GB \ > --share=3D$HOME=3D/exchange > > then I copied the image from the store to a local folder > then I run it with this command > > qemu-system-x86_64 \ > -net user \ > -net nic,model=3Dvirtio \ > -enable-kvm -m 4096 .../projects/qemu-image > > Now: I understand that there should be a folder that is shared among the 2 > machines, the host and the guest > > I can't find it > > Where is it ? > > Where is iit on the host ? > And where is it on the guest ? The documentation (info "(guix) Invoking guix system") phrases it this way: 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 =E2=80=98$HOME/tmp=E2=80=99 on the host: guix system vm my-config.scm \ --expose=3D$HOME --share=3D$HOME/tmp=3D/exchange IOW, if you do =E2=80=9Ccd /exchange=E2=80=9D in the guest, you should see = the contents of the host=E2=80=99s $HOME/tmp, read-write. Likewise, if $HOME =3D /foo i= n the host, then /foo in the guest is a read-only view of the host=E2=80=99s /foo. HTH! Ludo=E2=80=99.