Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple virtio9p shares #194

Closed

Conversation

huguesalary
Copy link
Contributor

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 a bool flag to a string slice representing the absolute path to the Host folder to be mounted inside the guest.

This PR is divided in 2 commits:

  • The first one is the actual code allowing multiple Virtio9p
  • The second commit fixes a bug preventing a user to use both NFS and Virtio9p

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant