Skip to content

Instantly share code, notes, and snippets.

@redhotpenguin
Forked from codesword/minikube.md
Created September 26, 2017 23:42
Show Gist options
  • Save redhotpenguin/76ad037f5aceefad066bbf058f8b66b4 to your computer and use it in GitHub Desktop.
Save redhotpenguin/76ad037f5aceefad066bbf058f8b66b4 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