[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sharing host file systems with a VM
From: |
Ludovic Courtès |
Subject: |
Sharing host file systems with a VM |
Date: |
Fri, 21 Nov 2014 00:08:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
‘guix system vm’ can now be told to share more file systems with the
host, in addition to /gnu/store:
Additional file systems can be shared between the host and the VM
using the ‘--share’ and ‘--expose’ command-line options: the former
specifies a directory to be shared with write access, while the
latter provides read-only access to the shared directory.
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 the host’s ‘$HOME/tmp’:
guix system vm my-config.scm \
--expose=$HOME --share=$HOME/tmp=/exchange
Thanks David for giving me an incentive to work on this. ;-)
Ludo’.
- Sharing host file systems with a VM,
Ludovic Courtès <=