-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 doesn't start in VM with no virtualisation support #4176
Comments
We do actually test this regularly in our integration tests, using |
This scenario seems to be more and more common (using a VM instead of a laptop), and probably needs some targeted setup documentation... |
If it makes things any clearer ... I've got this working yesterday for me, using info from a number of sources. This is the script I use:
|
Why are you starting it twice ? And I wonder why the cgroup driver needs tweaking like that, I was hoping for it to do the right thing out-of-the-box. But maybe it is needed, don't really this setup myself. |
So that we can give this bug a better title - what error messages were you seeing? |
I agree about the cgroup driver ... I would have expected minikube to detect docker's cgroup driver ... but it doesn't seem to. I start it twice as, between the two, I adjust the IP address for the APIserver in the config file to localhost (127.0.0.1) - as was specified on the command line options. The second start is after the config adjustment and, in part, checks that the adjustment was done correctly. |
The error message firstly the cgroup driver ( The timeout error message:
I hacked together this script at that point, so can't say if there would be further errors in the sequence ... |
I should add that I'm ssh'ing into the VM to do all this (and to control the VM) so access over the network is neither needed nor desirable. Obviously, others may have different requirements, once minikube is deployed and running. |
... thinking about this, and looking at what I've written, an ideal solution would be to create, within docker, both a subnet range which is exclusive to minikube, and within that, a bridge network for connecting the created minikube docker nodes ... with a gateway IP address which can be used by kubectl to talk to all the pods. This would be a direct equivalent of the VM networking and access could easily be constrained by iptables as it is would be with a created minikube VM. My knowledge of minikube & docker isn't adequate to do this (I'm using minikube to follow a course about kubernetes) but I can see the objective. I'm learning more than I expected, although this is slow going. :-) If you can advise about suitable options or commands or changes, I can hack the script to make it do this ... The first thing I will do is add a couple of options to the script (subnet & bridge CIDR & gateway IP address) and code to read these from /etc/hosts and /etc/networks (or extant docker network stuff) if not specified. The latter allows for restart without respecifying all options. |
This issue appears to be a duplicate of #4172, so I will close this one so that we may centralize the content relating to the issue. If you feel that this issue is not in fact a duplicate, please feel free to re-open it. Thank you for reporting this! |
I'm not sure if this is a bug or a feature request.
We have available corporate VMs which have virtualisation support in the (virtual) CPU disabled. I have tried for a week to get minikube with docker running, and each time I fix one blocker, there's another waiting.
This should be easy. :-) But it's not.
Please include this scenario in the test sets for minikube.
I'm working on Ubuntu 16.04, with the latest (as of yesterday) minikube.
The text was updated successfully, but these errors were encountered: