Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR allows the user to specify multiple folders to share via virtio9p.
Previously, only
/Users
was being shared inside the guest at/Users
.With this PR, it is possible to
mount
any Host folder inside the Guest at/xhyve-virtio9p
(by default). This default can be changed via the--xhyve-virtio-9p-root
command line argument.This commit changes
--xhyve-virtio-9p
from abool flag
to astring slice
representing the absolute path to the Host folder to be mounted inside the guest.This PR is divided in 2 commits:
Here's an example of how to use:
docker-machine -D create -d xhyve --xhyve-disk-size 10000 --xhyve-memory-size 4000 --xhyve-cpu-count 2 --xhyve-virtio-9p /Users --xhyve-virtio-9p /usr --xhyve-virtio-9p-root /myVirtio9pRoot test
This command will share the host folders
/Users
and/usr
in the guest at/myVirtio9pRoot/Users
and/myVirtio9pRoot/usr