-
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
hyperkit: /var/db/dhcpd_leases: no such file or directory -> could not find an IP address #6143
Comments
I suspect that the InternetSharing daemon or bootpd may be busted or disabled in some way on this host, which the docker-machine-hyperkit driver uses. Before running
and share the result? You should see some entries like:
Also, open up the Console application, and search for "dhcp". You should see something like: It's interesting that Docker works but minikube doesn't, as both use hyperkit. I wonder if there is anything unusual in the DfD network configuration which may be affecting things. My apologies for the issue, and thanks for helping us solve this! |
Related, but likely has a different root cause: #4206 |
I don't think I am going to be very helpful in solving this issue. I did attach a file with the output of fs_usage just in case it might help. I work for a healthcare company and I suspect our security folk have done something with the proxy that is causing this error. I believe minikube was working a few weeks ago, but I recently upgrade to mojave. I have not heard of any changes in our security polices, but I would not be surprised that with the update of the OS, they put in some changes to the way the mac proxy works. If this is true, I probably can't back out the changes or make changes that could test any fixes. It does work with virtualbox and my docker desktop version of kubernetes is working. I would be happy to try things, but I may not be able make changes to my machine that might solve this issue. |
the same issue
|
Seeing same issue with a fresh install of docker for mac and minikube. It seems to be consistent (I tried uninstalling and reinstalling at least 5 times and got the same error each time). Using Mohave on my mac. minikube version: v1.6.2 commit: 54f28ac |
If anyone is running into this issue, please update this issue. Also, it would be worth hearing if |
@tstromberg I had the same issue and the docker driver worked for me but hyperkit driver did not
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I was running into the same issues. Turned out had nothing to do with either bootp or internet sharing, and was due to the fact the mac firewall was enabled. Hopefully will help others whom couldn't get hyperkit working on catalina (10.15.5 (19F101)) |
@jaysonwor do you mind sharing how to disable mac frewall in terminal and what version do you use ? |
Sure. Click "Apple" icon -> System Preferences -> Security & Privacy -> Firewall "Turn off". Probably not the best solution but at least it worked (minikube 1.12 with hyperkit up and running) |
A bit more info about my setup just in case. I tried rm /var/db/dhcp_leases and it creates the file okay whereas before it was throwing error. Removed all traces of the "minikube" cluster. |
I'm also seeing this issue when I try to use
Interestingly sometimes re-running the job works. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Same issue Seems to work fine if I have Docker running as the drive switches to Docker. ❯ minikube start
👍 Starting control plane node minikube in cluster minikube |
Won't hyperkit be much more efficient on Mac (as opposed to Docker/VirtualBox)? I personally especially dislike VirtualBox, Docker for Mac I can live with for the time being |
I no longer have a mac and retired. I forgot about this issue. Sorry, I am closing it now. |
Refer to my comment #4206 (comment) describing pf changes which unblocked me. |
❌ Exiting due to DRV_CP_ENDPOINT: Unable to get control-plane node minikube endpoint: failed to lookup ip for "" i was struggling with the same issue for long time, Just completely restarting my macbook and starting the minikube resolved the issue |
I have reinstalled minikube using brew and it works if the driver is virtual box. I have docker desktop working and I can select between docker desktop kubernetes and minikube if minikube is running on virtualbox.
I added a dhcpd_leases file in the /var/db directory and the error changed to:
error: could not find an IP address for de:57:7:ad:86:12
The exact command to reproduce the issue:
minikube start --memory 2000MB --disksize 20000MB
The full output of the command that failed:
minikube v1.6.1 on Darwin 10.14.6
✨ Automatically selected the 'hyperkit' driver (alternates: [virtualbox])
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: open /var/db/dhcpd_leases: no such file or directory
🔥 Deleting "minikube" in hyperkit ...
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: open /var/db/dhcpd_leases: no such file or directory
🔥 Deleting "minikube" in hyperkit ...
🔥 Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🔄 Retriable failure: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: open /var/db/dhcpd_leases: no such file or directory
🔥 Deleting "minikube" in hyperkit ...
💣 Unable to start VM: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: open /var/db/dhcpd_leases: no such file or directory
The output of the
minikube logs
command:💣 api load: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new/choose
The operating system version:
macOS Mojave 10.14.6
The text was updated successfully, but these errors were encountered: