minikube: Error getting state for host: exit status 126
Minikube version (use minikube version):
minikube version: v0.8.0
Environment:
- OS (e.g. from /etc/os-release): OS X El Capitan 10.11.6
- VM Driver (e.g.
cat ~/.minikube/machines/minikubeVM/config.json | grep DriverName): “DriverName”: “virtualbox”, - Docker version (e.g.
docker -v): Docker version 1.12.0, build 8eab29e
(Docker for Mac)
- Install tools: OS X binary package
What happened:
(docsamples10) waprin-macbookpro:django_postgres_redis waprin$ minikube start --vm-driver=xhyve E0824 15:32:51.389622 30129 start.go:89] Error starting host: Error getting state for host: exit status 126 Error getting state for host: exit status 126 (docsamples10) waprin-macbookpro:django_postgres_redis waprin$ minikube docker-env E0824 15:23:04.955046 29839 env.go:247] Error setting machine env variable(s): exit status 126
What you expected to happen:
- Don’t get errors or get errors that make it clear how to fix.
- Make it clearer how to blow away any config that might be breaking things
How to reproduce it (as minimally and precisely as possible):
OS X, Docker for Mac, download minikube OS X binary and do minikube start
Anything else do we need to know:
I think minikube start might have succeeded the first time and then all the commands started giving the 126, but I’m having problems digging up the bash history. Either way now start fails right away.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (17 by maintainers)
As a referential point for anyone who run into this issue on El Capitan and found this via Google (like I did):
If you partially removed VirtualBox, most likely the files you need to “fully” remove it are
/usr/local/bin/VBox*and/usr/local/bin/vbox*Removing those and then
minikube start --vm-driver=xhyvegot me up and running.Thanks for a solution it worked for me.
rm -rf /usr/local/bin/{VBox,vbox}*is the necessary step to do.Could we maybe make:
Also mention something about how you probably tried to remove VirtualBox unsuccesfully and need to do:
It looks like minikube did not delete gracefully. A
minikube deleteshould wipe the config file, and then a subsequentminikube start --vm-driver=xhyveshould work properly.Sometimes the
minikube startcommand is not clear. We should add a check to see if the driver flag passed in matches the known configuration that would require a restart or deletion.Yes, I can confirm that a sloppy VirtualBox uninstall left these files in
/usr/local/binAfter removing them,
minikube start --vm-driver=xhyveworks as expected.I met this problem on windows7 and I used virtualbox as vm-driver. solved it by following steps : delete the .minikube folder whitch under “C:\Users\USER_NAME” then
minikube startSorry, vboxmanage. and since this is osx case matters. I think it’s VBoxManage
Wiping the config files worked for me:
rm -rf ~/.minikubeYou’re the second person to run into this xhyve bug, we should try to make the error clearer at least, or change this case to a warning in the driver.