-
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
host-only cidr conflicts with the network address of a host interface #3594
Comments
Thanks for the bug report! The error message could definitely be improved here, but I think I understand what's going on here. With Virtualbox, minikube sets up VM's within the 192.168.9.1/24 network. If the error message is correct, it so happens that your Ubuntu machine has an interface that is also configured for the same IP range. You can verify this by using:
So, to use minikube, you'll need to specify a non-conflicting network. Depending on how your interface is configured, it could be another part of 192.168.0.0, such as:
Or perhaps another RFC 1918 network altogether:
Please let me know if this helps, as I'd like to see about getting the error message improved if this is the case. Alternatively, perhaps we should consider automatically choosing a non-conflicting range in this case. Thank you! |
Hi, thanks for the reply. Indeed, you were right it was conflicting with my lan ip of 192.168.99.1, which is my router setup IP. But when i try Hope this helps! Thank you! |
I switched my OS to Linux mint, 19.1, cinnamon, using virtualbox 6.0, and now everything is working with
It pulled down the ISO, started minikube fine and I'm up and running in the dashboard as well. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Bug
Please provide the following details:
Environment:
Linux
Minikube version (use
minikube version
): 0.33.1OS (e.g. from /etc/os-release):
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
VM Driver (e.g.
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): virtualboxISO version (e.g.
cat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): "Boot2DockerURL": "file:///root/.minikube/cache/iso/minikube-v0.33.1.iso",Install tools:
Others:
The above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
What happened:
Starting local Kubernetes v1.13.2 cluster...
Starting VM...
E0125 20:03:31.508584 22686 start.go:205] Error starting host: Error starting stopped host: Error setting up host only network on machine start: host-only cidr conflicts with the network address of a host interface.
Retrying.
E0125 20:03:31.508984 22686 start.go:211] Error starting host: Error starting stopped host: Error setting up host only network on machine start: host-only cidr conflicts with the network address of a host interface
minikube failed :( exiting with error code 1
What you expected to happen:
minikube to start without error
How to reproduce it (as minimally and precisely as possible):
minikube start
Output of
minikube logs
(if applicable):F0125 20:04:48.372810 22799 logs.go:50] Error getting cluster bootstrapper: getting kubeadm bootstrapper: getting ssh client: Error dialing tcp via ssh client: dial tcp 127.0.0.1:22: connect: connection refused
Anything else do we need to know:
tried to reinstall kubectl and virtualbox, and still got same issue.
The text was updated successfully, but these errors were encountered: