Hello,

Chris Marusich <[email protected]> skribis:

> [email protected] writes:
>
>> I am running a 'guix system vm' and 'guix package -i' fails ...
>>
>> g1@server17 ~$ guix package -i icecat
>> guix package: error: build failed: opening lock file
>> `/gnu/store/4iznqdzql2cp4l2jkr09jn10xxw861c4-mirrors.lock': Read-only
>> file system
>>
>> Any idea what I am doing wrong? Here are the details ...
>>
>> guix system vm -M 4 -c 4 /home/g1/src/vm/vms/server17/server17.scm
>>
>> sudo /gnu/store/1vnsn52grzvpzrdndv1f3nkf7mdwd5wk-run-vm.sh -name
>> server17 -net
>> tap,ifname=server17,script=/home/g1/src/vm/qemu-ifup,downscript=/home/g1/src/vm/qemu-ifdn
>> -daemonize -display none

No need to run that as root.  :-)

>> TIA - George
>
> I think this is expected behavior.

Yes, it’s a known limitation.

I was thinking we could have the VM talk to the host daemon socket:

  guix system vm config.scm --share=/var/guix/daemon-socket

However that doesn’t work, I suppose 9p doesn’t support forwarding
sockets.

The other option would be to make /gnu/store a writable overlayfs, which
should allow us to run a local guix-daemon with its own store in the VM.

Ludo’.

Reply via email to