From: ludo@gnu.org (Ludovic Courtès)
To: Catonano <catonano@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: qemu shared folder
Date: Mon, 22 May 2017 14:07:18 +0200 [thread overview]
Message-ID: <87tw4dt7rd.fsf@gnu.org> (raw)
In-Reply-To: <CAJ98PDz0KfHdM3Osv-B-=NtXjMUw1+oj8vzmpsNOkENq6KSYAQ@mail.gmail.com> (catonano@gmail.com's message of "Mon, 22 May 2017 10:10:11 +0200")
Hello,
Catonano <catonano@gmail.com> skribis:
> I created my virtual machine with this command
>
> guix system vm-image /etc/vm-config-desktop.scm \
> --image-size=30GB \
> --share=$HOME=/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=virtio \
> -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’s home directory
is accessible read-only, and where the ‘/exchange’ directory is a
read-write mapping of ‘$HOME/tmp’ on the host:
guix system vm my-config.scm \
--expose=$HOME --share=$HOME/tmp=/exchange
IOW, if you do “cd /exchange” in the guest, you should see the contents
of the host’s $HOME/tmp, read-write. Likewise, if $HOME = /foo in the
host, then /foo in the guest is a read-only view of the host’s /foo.
HTH!
Ludo’.
next prev parent reply other threads:[~2017-05-22 12:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-22 8:10 qemu shared folder Catonano
2017-05-22 12:07 ` Ludovic Courtès [this message]
2018-01-08 21:39 ` Catonano
2018-01-10 7:15 ` Chris Marusich
2018-01-13 18:32 ` Catonano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tw4dt7rd.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=catonano@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.