From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Cassou Subject: bug#39815: Sharing the store between a host and a guest Date: Fri, 28 Feb 2020 07:50:46 +0100 Message-ID: <87eeufdx2x.fsf@cassou.me> References: <87k147epvx.fsf@cassou.me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57888) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7ZUF-0004SE-Nv for bug-guix@gnu.org; Fri, 28 Feb 2020 01:51:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7ZUE-0003ng-L8 for bug-guix@gnu.org; Fri, 28 Feb 2020 01:51:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7ZUE-0003na-II for bug-guix@gnu.org; Fri, 28 Feb 2020 01:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j7ZUE-0003Vt-Fb for bug-guix@gnu.org; Fri, 28 Feb 2020 01:51:02 -0500 In-Reply-To: <87k147epvx.fsf@cassou.me> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 39815@debbugs.gnu.org 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 clone of Guix repository and the VM has read-write access to it. $ mount | grep /gnu/store /dev/vda1 on /gnu/store type ext4 (ro,relatime) I don't understand why /gnu/store is mounted read-only. Also, I haven't done that myself. $ cat ./build-vm.sh #!/bin/sh FILE=$(guix system vm-image ./current.scm --save-provenance --image-size=6G --share=/home/cassou=/mnt/host-home) cp -f "$FILE" ./image.qcow2 $ cat ./start-vm.sh #!/bin/sh qemu-system-x86_64 \ -nic user,model=virtio-net-pci \ -enable-kvm \ -m 4G \ -device virtio-blk,drive=myhd \ -drive if=none,file=./image.qcow2,id=myhd \ -virtfs local,path="/home/cassou",security_model=none,mount_tag="host-home" \ -virtfs local,path="./share/home",security_model=none,mount_tag="guest-home" As you can see, I'm not even trying to share the store. Moreover, I think the --share option passed to `guix system vm-image` above doesn't do anything. If it is the case, I would expect the command to complain about the unknown parameter. Can anyone please give me a clue as to what is happening and why? Is there a way I can install applications in my VM? -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill