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
Auto mounting functionality for shared folders #480
Comments
Development can be tracked in the branch: https://github.com/gbraad/minishift/tree/mount-shares Configuration needed:
|
@hferentschik @LalatenduMohanty I would not really like to introduce a new verb as command, but I think this is needed? ...
This feels weird... So, what about?
Or place them inside the And how to structure them for edit and save? WDYT? I have an idea, but I appreciate feedback... |
Sure. How do you want to use that? Once Minishift is up you do mount/umount? I guess I am trying to figure out how this is tied into the current behavior of say VirtualBox and that it transparently mounts your home directory (same for xhyve with the appropriate flags). Will host folder mounts on Windows with Samba shares work differently (in terms off when and how they are established) than with VirtualBox and guest additions? Or moving forward with sshfs? @gbraad maybe you can outline how current host folder mount behavior is going to be unified with what you are doing now and this new command. Generally, I like the idea. I like the idea of having the ability to potentially umount a directory and mount a different one. What about something like
So I am proposing hostfolder as command name which seems more generic. 'share' might be pointing into Windows share and afaiu this is more generic. view let's you view the current host folders and mount and umount do the mounting and unmounting. mount would also have a flag type which lets you select between say windows share, sshfs, nfs (xhyve).
It's a possibility, but I don't think it works with the existing set. You would still need config mount, right? Seems not so intuitive to me. |
Another question in my mind. How is Windows shares host folder mounting working together with another potentially exiting host folder mount. Taking VirtualBox again. If I start the default B2D image on Windows, what's going to happen? |
Implemented in gbraad-redhat@bbec167:
PS > C:\work\bin\minishift.exe ssh "mount | grep Disks"
PS > C:\work\bin\minishift.exe hostfolder mount Disks
-- Mounting 'Disks': '//10.0.21.33/disks' ... OK
PS > C:\work\bin\minishift.exe ssh "mount | grep Disks"
//10.0.21.33/disks on /mnt/sda1/Disks type cifs (...)
PS > C:\work\bin\minishift.exe hostfolder umount Disks
-- Unmounting 'Disks': '//10.0.21.33/disks' ... OK
PS > C:\work\bin\minishift.exe ssh "mount | grep Disks"
PS > |
Will finish the mount check and IP reachability, and then defer configuration to instance specific helper functionality (see #487) |
|
Currently remaining is:
I have an idea how to tackle the automount of Users:
|
this works only for Hyper-V? |
@hferentschik no, I'd rather not... just not sure about conflicts. We can not automount Users right away when we are unsure of the hosting platform, as this will only work for Windows. Will test with Virtualbox today... Just pushed a WIP for feedback which used the instance configuration. Will move to VirtualBox for some testing. None of the current code enforces the libmachine Driver. |
right, that's what I was assuming and hoping for ;-) |
test command for PS C:\work\src\github.com\minishift\minishift> minishift.exe hostip
Checking if '10.0.21.122' is reachable ... OK this will be used for the construction of the uncpath to the local shares for |
@gbraad 👍 Nice I would love to have this output though 😉
|
@budhrg this command will disappear... |
Added config add/remove functionality |
Merged via pull request #581. 👍 |
sorry boss, I ran out of money in and out of the workshop, what would I eat if the money was only for repairing motorbikes etc |
Allow configuration to auto mount sharesPrevent remounting mounted sharesCheck if host is reachableCommand to add configuration by nameCommand to remove configuration by nameCommand to mount share by nameCommand to unmount share by nameAuto mount option forUsers
shareThe text was updated successfully, but these errors were encountered: