Skip to content

Instantly share code, notes, and snippets.

@hugoeanogueira
Forked from codesword/minikube.md
Created February 1, 2017 12:10
Show Gist options
  • Save hugoeanogueira/26725a2d54c23fd1db3ef996aeebe49e to your computer and use it in GitHub Desktop.
Save hugoeanogueira/26725a2d54c23fd1db3ef996aeebe49e to your computer and use it in GitHub Desktop.
Installing minikube using xhyve driver

###Install docker-machine-driver-xhyve docker-machine-driver-xhyve is a docker machine driver plugin for xhyve native OS X Hypervisor. xhyve is a lightweight OS X virtualization solution. In my opinion, it's a far better option than virtualbox for running minikube. ####Brew On MacOS sierra, download latest using

brew install docker-machine-driver-xhyve --HEAD
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

####Build from source

go get -u -d github.com/zchee/docker-machine-driver-xhyve
cd $GOPATH/src/github.com/zchee/docker-machine-driver-xhyve

# just in case
git submodule update --init

# build and install 
make install
# or if want verbose
make install V=1

###Install minikube OSX

curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.12.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

###Start Minikube

minikube start --memory=2048 --vm-driver=xhyve

#To debug you can start minikube using:
minikube start --v=5 --logtostderr --show-libmachine-logs --vm-driver=xhyve

After starting, wait a few seconds for minikube to stabilize before running any kubectl command. If you try running immediately, you might run into error: You must be logged in to the server (the server has asked for the client to provide credentials) error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment