machine-drivers / docker-machine-driver-xhyve

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve
BSD 3-Clause "New" or "Revised" License
888 stars 74 forks source link

Installation on OSX prevents OSX to sleep because of use of nfsd #209

Open akram opened 5 years ago

akram commented 5 years ago

installation on OSX prevents OSX to sleep because of use of nfsd

it adds the following line in /etc/exports

# XHYVE
/Users -mapall=501 -network 192.168.64.0 -alldirs -mask 255.255.255.0

nfsd is invoked by launchd while booting by the accompanying com.apple.nfsd.plist file in /System/Library/LaunchDaemons/. it's only kept alive, when /etc/exports exists. If the path doesn't exist, nfsd will not run.

So removing /etc/exports will disable nfsd temporarily until the path is recreated or executing launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsd.plist