bug#39815: Sharing the store between a host and a guest

2020-03-09 Thread Damien Cassou
Ludovic Courtès writes: > However, one thing that could work is to: > > 1. in the guest, set GUIX_DAEMON_SOCKET=guix://localhost:1234; > > 2. set up QEMU port forwarding such that the guest’s port 1234 is > somehow redirected to a port the host guix-daemon listens to (with > ‘--liste

bug#39815: Sharing the store between a host and a guest

2020-03-08 Thread Ludovic Courtès
Hi! Leo Famulari skribis: > 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 s

bug#39815: Sharing the store between a host and a guest

2020-02-29 Thread Damien Cassou
Hi Léo, Leo Famulari writes: > Currently Guix does not include tools to support your use case of > "writable and shared /gnu/store in the VM" […] Thank you very much for your extensive explanation. I understand things better now. -- Damien Cassou "Success is the ability to go from one failure

bug#39815: Sharing the store between a host and a guest

2020-02-28 Thread Leo Famulari
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

bug#39815: Sharing the store between a host and a guest

2020-02-27 Thread Damien Cassou
Hi, I kept experimenting. I can't manage to install anything in the VM: $ guix pull Updating channel 'guix' from Git repository at 'file:///home/cassou/...' guix pull: error: Git error: failed to mmap. Could not write data: Invalid argument The folder at 'file:///home/cassou/...' contains a git

bug#39815: Sharing the store between a host and a guest

2020-02-27 Thread raingloom
Would have to share the connection with the Guix daemon. The VM would see the changes but it could write to the store directly. But that's effectively what you want. When you use guix as a user, the guix command doesn't write to the store, it tells the daemon to do things. Same deal here. On

bug#39815: Sharing the store between a host and a guest

2020-02-27 Thread Damien Cassou
Hi, `guix system vm` generates a VM which shares /gnu/store with the host. However, the share is done read-only. The info pages recommends copying the VM image and making it writable. Is it possible/recommended to get a writable and shared /gnu/store in the VM? Best, -- Damien Cassou "Succes