docker-machine-driver-xhyve icon indicating copy to clipboard operation
docker-machine-driver-xhyve copied to clipboard

Fix NFS mount for macOS 10.14

Open urbantrout opened this issue 5 years ago • 5 comments

Fixes the following error:

(default) Error setting up mounts: Something went wrong running an SSH command!
(default) command : echo -e "#/bin/bash\nsudo mkdir -p /Users\nsudo /usr/local/etc/init.d/nfs-client start\nsudo mount -t nfs -o noacl,async 192.168.64.1:/Users /Users\n" | sudo tee /var/lib/boot2docker/bootlocal.sh && sudo chmod +x /var/lib/boot2docker/bootlocal.sh && /var/lib/boot2docker/bootlocal.sh

urbantrout avatar Mar 26 '19 11:03 urbantrout

Might be a good idea to if/else wrap and check [ -z $(sw_vers | grep 10.14) ]. Also, the CI looks to be broken and unrelated to your changes. :(

NorseGaud avatar Mar 26 '19 17:03 NorseGaud

Also, full error:

(default) Error setting up mounts: Something went wrong running an SSH command!
(default) command : echo -e "#/bin/bash\nsudo mkdir -p /Users\nsudo /usr/local/etc/init.d/nfs-client start\nsudo mount -t nfs -o noacl,async 192.168.64.1:/Users /Users\n" | sudo tee /var/lib/boot2docker/bootlocal.sh && sudo chmod +x /var/lib/boot2docker/bootlocal.sh && /var/lib/boot2docker/bootlocal.sh
(default) err     : exit status 32
(default) output  : #/bin/bash
(default) sudo mkdir -p /Users
(default) sudo /usr/local/etc/init.d/nfs-client start
(default) sudo mount -t nfs -o noacl,async 192.168.64.1:/Users /Users
(default) 
(default) Starting nfs client utilities.
(default) mount.nfs: an incorrect mount option was specified
(default) 
(default) 
(default) NFS share folder must be root. Please insert root password.
Waiting for machine to be running, this may take a few minutes...

NorseGaud avatar Mar 26 '19 17:03 NorseGaud

I added the OS version check. Don't know what to do about the CI issues. I don't think this is related to my issue.

urbantrout avatar Mar 30 '19 11:03 urbantrout

I added the OS version check. Don't know what to do about the CI issues. I don't think this is related to my issue.

Nah, it isn't. I think this project is dead unfortunately. The travis setup is broken due to dependencies being out of date.

NorseGaud avatar Apr 02 '19 17:04 NorseGaud

@NorseGaud @urbantrout Actually, the problem is here: $( [ -n "$(sw_vers | grep 10.14)" ] && echo ",nfsvers=3 ") Here is screenshot from Travis build: image

Probably, it would be simple and not bad solution to replace this checking with just nfsvers=3 and forget about old macOS versions :)

iworker avatar May 12 '20 22:05 iworker