Posts Tagged ‘virtualbox’

minikube, macOS and virtualbox

Friday, October 11th, 2019

minikube is an awesome tool to play around with Kubernetes and it’s easy to install on macOS if you already have brew installed (not much harder if you just follow the instructions on though)

But sometimes, just sometimes…. spinning up a Kubernetes cluster with minikube does not work… it gets stuck somewhere. You can crank up the debug level which will fill your screen your message and you can searchengine whatever error message it spits out and try to fix it. I’ve tried it but it takes and usually does not bear frut. In the end doing the following always fixed the issues:

shutdown any minikube clusters that are running (on purpose or not)
make sure virtualbox is turned off (when in doubt, check with ps aux | grep -i virtualb )
rm -rf .minikube
rm -rf .kube
brew cask reinstall virtualbox
if you’re feeling adventerous, you can upgrade minikube and kubectl at the same time.
then spin up minikube again: minikube start -p <yourclusternamehere> (I like not using the default cluster)