add mount.cifs #571
Comments
Agreed. The kernel module is in the OS, but not the mount tool. Very helpful for vagrant users on windows |
After a bit of research in order to get mount.cifs, we'll need to add cifs-utils, to add cifs-utils, we'll need all of Samba (I think you can see where this is going). Unfortunately (at this time, never say never) we aren't ready to give that mouse that cookie. |
Are you sure about that? Seems to run ok for me with zero deps: Build cifs-utils in a container and copy it into /tmp on the host.
Works fine!
lib requirements
If you still don't want to include it because of bloat (totally understandable), at least there's a recipe for folks who want to build it themselves :) |
|
|
|
Currently Azure with its "Azure File Service" only supports SMB with CIFS so in order to get a shared mount with CoreOS this will be needed. |
Exactly, cifs-utils >= 6.0 is required to connect using SMB version 2.1. Managed the mount to "Azure File Service" this week using Ubuntu 14.04.1 that ships with a recent version. Found this issue while my investigation if CoreOS provides this requirement.
|
|
any update ? |
Can someon list the steps needed to run cfutils on ubuntu or debian ? |
So I've got the mount.cifs file created and it works manually. As far as I'm aware, I cannot use a units file to mount the CIFS share ala http://blog.scottlowe.org/2015/02/20/config-mount-nfs-coreos/, as I don't have the mount.cifs binary in /sbin, right? Can I use a service file to auto mount at boot? Any other recommendations? |
@carpenike: Yes, you should probably use a one-shot service which fetches (if not present) and runs mount.cifs. At least that's what I am doing. (Consider running a docker container for getting the binary, as explained above). To start on boot, you need to set If the mount is needed by one or more particular services, you might as well do the mount on demand. Just add a |
Do you have a service file already? I tried getting one working earlier and will post it when I get home if you don't. Sent from my Windows Phone From: Martin Honermeyermailto:notifications@github.com @carpenikehttps://github.com/carpenike: Yes, you should probably use a one-shot service which fetches (if not present) and runs mount.cifs. At least that's what I am doing. To start on boot, you need to setAfter=network.target in the Unit section and WantedBy=multi-user.target in the Install section. If the mount is needed by one or more particular services, you might as well do the mount on demand. Just add a Requires and an After with the mount service in the depending service(s). — |
Excellent... this seems to work. Any tweaks recommended? How can I get the service to download the mount.cifs file at startup? [Unit] [Service] |
@carpenike: You can run a docker image in
|
+1 for including CIFS on releases. Hacks are nasty and decrease system stability |
btw, the binary from ubuntu:14.04 cifs-utils (mount.cifs) is compatible with coreOS. I started out using the mount.cifs_copy image but later just tried it and it works just fine. Using it for really simple use cases so not sure whether all features have the required libraries. |
+1 If you want to use Azure with CoreOS, this is probably a requirement. |
+1 |
+1 Since the kernel is already supporting CIFS since release 899.1.0 (also CEPH, NFS and 9P), I think it make senses to add in the support from the tooling side. Plus it's a must to have to run a CoreOS Kubernete cluster on Azure. |
I'm also interested in mounting Azure shares on my CoreOS kubernetes nodes. |
Off topic: @edevil I found an hacky workaround against this issue and tried to run K8s nodes. But there have the another issue. You must apply a patch to K8s if you want to use Azure File. |
I put the workaround on https://gist.github.com/monaka/5cb1f33e5317e29285843f158a387c9b . |
@monaka Any update to this issue? I am exploring using Azure File storage with CoreOS, which still requires SMB support. |
@jcrowthe The issue was fixed if you want to use CIFS on K8s (Hyperkube). And the workaround I posted above will work (probably). |
Is they any plan/ETA to get mount.cifs installed on coreos ? |
Would really like to get get an ETA/no-go on this one? A "priority/P1" from two years ago doesn't really bode well. |
@crawford, it's really valuable when using CoreOS in Azure to be able to mount Azure File Shares to the host. What problem prevents adding |
Good evening. Just adding huge +1 to have I think this now affects many people that run CoreOS + Kubernetes on Azure and will be using Azure File backend. Workarounds with putting To test that this is the case, i did following hack:
|
Two PRs have been made to address this issue. |
Thursday May 08, 2014 at 16:45 GMT
Originally opened as https://github.com/coreos/coreos-overlay/issues/595
For those of us that need to share files with a windows host.
The text was updated successfully, but these errors were encountered: