Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"minikube start" fails with E0908 on MacOS Sierra running on MacBook 12" 2017 #1931

Closed
tharpa opened this issue Sep 8, 2017 · 6 comments
Closed

Comments

@tharpa
Copy link

tharpa commented Sep 8, 2017

I've installed minikube v0.22.0 using brew on my MacBook 12" but minikube start fails with E0908:

Starting local Kubernetes v1.7.5 cluster...
Starting VM...
E0908 17:17:33.767424    3593 start.go:143] Error starting host: Error creating host: Error executing step: Running precreate checks.
: exit status 126.

 Retrying.
E0908 17:17:33.768637    3593 start.go:149] Error starting host:  Error creating host: Error executing step: Running precreate checks.
: exit status 126
$ 
$ minikube version
minikube version: v0.22.0

Any idea what the error code means and how to fix it?

@r2d4
Copy link
Contributor

r2d4 commented Sep 8, 2017

Have you installed either virtualbox or the docker-machine-driver-xhyve? https://github.com/kubernetes/minikube/blob/master/docs/drivers.md

@tharpa
Copy link
Author

tharpa commented Sep 9, 2017

Yes, I've installed the docker-machine-driver-xhyve using brew according to this instructions:

https://github.com/zchee/docker-machine-driver-xhyve#install


# docker-machine-driver-xhyve need root owner and uid
$ 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```

@tharpa
Copy link
Author

tharpa commented Sep 10, 2017

It turns out you need to install Virtualbox as well: brew cask install virtualbox After that, the Issue is solved for me.

@tharpa tharpa closed this as completed Sep 10, 2017
@r2d4
Copy link
Contributor

r2d4 commented Sep 10, 2017

You don't actually need virtualbox if you're using the xhyve driver. Most likely, you have an incomplete uninstall of virtualbox, leaving the VboxManage binary.

See machine-drivers/docker-machine-driver-xhyve#134 (comment)
#519

@tharpa
Copy link
Author

tharpa commented Sep 11, 2017

Interesting, that might be the case as I've copied over the whole /usr/local from my iMac. So, you're saying because the VboxManage binary is there, you're detection mechanism is confused? I was also trying to start with the explicit specification of the xhyve driver with no success.

@r2d4
Copy link
Contributor

r2d4 commented Sep 11, 2017

Yeah, the original issue (which I'll try to track down) was that xhyve would panic if <= virtualbox 5 was installed. So there was a check added to the xhyve driver to see the version of virtualbox before starting

https://github.com/zchee/docker-machine-driver-xhyve/blob/master/xhyve/xhyve.go#L398-L425

However, if the binary is present, but it can't check the version for some reason - kernel modules are loaded, or the installation is incomplete - the command will exit with a non-zero exit code, so starting xhyve will fail prematurely, since it can't determine the version of virtualbox.

I think there have been some discussions about changing this or not making the check fatal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants