-
Notifications
You must be signed in to change notification settings - Fork 72
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 NFS shares #121
Multiple NFS shares #121
Conversation
Just curious what the status of this is? |
Please merge! |
Hi there, Would rebasing this on top of the latest master allow it to be merged? |
@huguesalary Oh, thanks reply. and Sorry for very late reply... Current disk sharing is two options. virtio-9p or NFS. So, If you try to rebase to master, I want to merge this PR. However, @dlorenc is implementing #189, I want to hear his opinion. |
Thanks @zchee for the context. I think keeping the NFS option is valuable. osxfs is still incredibly slow and personally the only way I've been able to have a usable docker machine was by using NFS. At worst it gives people the option to use NFS. I'll try to rebase and resubmit soon. |
Yeah this nfs implementation should be fine to keep. If anything we might standardize some flags on the minikube side, but it won't effect this. |
Alright just rebased this on the latest master |
@huguesalary Thanks!! I’ll merge it after checking. |
…experimental-nfs-share` flag allowing for multiple NFS Shared folders
By default (changeable with `xhyve-experimental-nfs-share-root`, see below) NFS shares are rooted at /xhyve-nfsshares to avoid the situation where a NFS Share `/usr` would be mounted at `/usr` 2 backward incompatible changes: - renamed `xhyve-experimental-nfs-share` to `xhyve-experimental-nfs-share-enable` - change `xhyve-experimental-nfs-share` from being a boolean to a string slice taking multiple path to be shared via NFS - NFS Shares are now mounted under a default directory /xhyve-nfsshares (the old code was mounting everything under `/` causing, for example, `/usr` to be mounted at `/usr`) Other change: - add `xhyve-experimental-nfs-share-root` to allow specifying where in the guest the NFS Shares will be rooted at Here's an example of how to use: `docker-machine -D create -d xhyve --xhyve-disk-size 40000 --xhyve-memory-size 4000 --xhyve-cpu-count 2 --xhyve-experimental-nfs-share-enable --xhyve-experimental-nfs-share /Users --xhyve-experimental-nfs-share /usr/ --xhyve-experimental-nfs-share-root /nfsharesfromhost test` This command will share the host folders /Users and /usr in the guest at /nfsharesfromhost/Users and /nfsharesfromhost/usr
@huguesalary sorry, i'm busy. I'll check today. |
No worries! Take your time. |
@huguesalary merged. thanks! |
Added the ability to setup multiple NFS Shares
By default (changeable with
xhyve-experimental-nfs-share-root
, see below) NFS shares are rooted at /xhyve-nfsshares to avoid the situation where a NFS Share/usr
would be mounted at/usr
2 backward incompatible changes:
xhyve-experimental-nfs-share
toxhyve-experimental-nfs-share-enable
xhyve-experimental-nfs-share
from being a boolean to a string slice taking multiple path to be shared via NFS/
causing, for example,/usr
to be mounted at/usr
)Other change:
xhyve-experimental-nfs-share-root
to allow specifying where in the guest the NFS Shares will be rooted atHere's an example of how to use:
docker-machine -D create -d xhyve --xhyve-disk-size 40000 --xhyve-memory-size 4000 --xhyve-cpu-count 2 --xhyve-experimental-nfs-share-enable --xhyve-experimental-nfs-share /Users --xhyve-experimental-nfs-share /usr/ --xhyve-experimental-nfs-share-root /nfsharesfromhost test
This command will share the host folders /Users and /usr in the guest at /nfsharesfromhost/Users and /nfsharesfromhost/usr