Skip to content

Instantly share code, notes, and snippets.

@bitjockey42
Last active May 10, 2016 14:11
Show Gist options
  • Save bitjockey42/c1c52a031b0796ceef02d70ef2041931 to your computer and use it in GitHub Desktop.
Save bitjockey42/c1c52a031b0796ceef02d70ef2041931 to your computer and use it in GitHub Desktop.
How to set up dlite (stable 1.1.5) on OS X El Capitan (10.11.4)
# BEGIN: dlite
/Users -network 192.168.64.0 -mask 255.255.255.0 -alldirs -maproot=root:wheel
# END: dlite
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.64.18 local.docker # added by dlite

With homebrew

Install:

brew install dlite
sudo dlite install
dlite update -v 2.3.0
dlite start

Without homebrew

Download from releases.

mv ~/Downloads/dlite /usr/local/bin
chmod +x /usr/local/bin/dlite
sudo dlite install
dlite update -v 2.3.0
dlite start

NFS setup

Check to make sure /etc/exports, which is used for NFS mounting, contain something like what I have in the file etc--exports. If not:

sudo curl -o /etc/exports https://gist.githubusercontent.com/0x414A/c1c52a031b0796ceef02d70ef2041931/raw/etc--hosts

I'm not sure why but sometimes dlite fails to set up /etc/exports.

Troubleshooting

If you get something like this:

docker run hello-world
docker: Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22).
See 'docker run --help'.

You have to manually update the DHyve OS:

dlite stop && dlite update -v 2.3.0 && dlite start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment