From: Leo Famulari <leo@famulari.name>
To: Damien Cassou <damien@cassou.me>
Cc: 39815@debbugs.gnu.org
Subject: bug#39815: Sharing the store between a host and a guest
Date: Fri, 28 Feb 2020 16:07:53 -0500 [thread overview]
Message-ID: <20200228210753.GA30122@jasmine.lan> (raw)
In-Reply-To: <87eeufdx2x.fsf@cassou.me>
Hi Damien,
Currently Guix does not include tools to support your use case of
"writable and shared /gnu/store in the VM".
`guix system container` might be useful but the isolation guarantees are
weaker than with QEMU. However, QEMU is not bulletproof either.
The recommended way to get a writeable store in a VM is to use `guix
system vm-image`, copy the image out of /gnu/store, make it writeable
with `chmod`, and then run it in QEMU. This will not share the store
with the host.
As you found, what you get with `guix system vm` is read-only. Even
though you copied build-vm.sh out of /gnu/store, it is just a shell
script that refers to immutable data in the host /gnu/store.
In order to share the store with a VM, you would need to also share the
store database — at least /var/guix/db if not all of /var/guix — and
also use the host's guix-daemon.
It would be great to support your use case but I don't think anyone has
worked on it yet.
Leo
next prev parent reply other threads:[~2020-02-28 21:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 20:28 bug#39815: Sharing the store between a host and a guest Damien Cassou
2020-02-27 20:33 ` raingloom
2020-02-28 6:50 ` Damien Cassou
2020-02-28 21:07 ` Leo Famulari [this message]
2020-02-29 14:11 ` Damien Cassou
2020-03-08 22:16 ` Ludovic Courtès
2020-03-09 13:00 ` Damien Cassou
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=20200228210753.GA30122@jasmine.lan \
--to=leo@famulari.name \
--cc=39815@debbugs.gnu.org \
--cc=damien@cassou.me \
/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.