Minikube: hyperkit: IP address never found in dhcp leases file Temporary Error: Could not find an IP address for <mac>

Created on 4 May 2019  ยท  42Comments  ยท  Source: kubernetes/minikube

Hi,
minikube does not start on my mac, I tried multiple times to remove and reinstall Docker Desktop and docker-machine-driver-hyperkit without solving the problem.
It's not related to version 1.0.1, because the problem was present also with version 1.0.0 and maybe also with previous versions that I haven't tested.

When I lanch minikube the /usr/local/bin/docker-machine-driver-hyperkit process appears in the process list, does not use CPU, and it's still present for some time after the command exited.

Can you help me?

The exact command to reproduce the issue:

minikube stop; minikube delete ; rm -rf ~/.minikube
minikube config set vm-driver hyperkit
minikube start -v 10

The full output of the command that failed:

๐Ÿ˜„  minikube v1.0.1 on darwin (amd64)
๐Ÿ’ฟ  Downloading Minikube ISO ...
 142.88 MB / 142.88 MB [============================================] 100.00% 0s
๐Ÿคน  Downloading Kubernetes v1.14.1 images in the background ...
๐Ÿ”ฅ  Creating hyperkit VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
Found binary path at /usr/local/bin/docker-machine-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:54243
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minikube) Calling .GetMachineName
(minikube) Calling .DriverName
Creating CA: /Users/user/.minikube/certs/ca.pem
Creating client certificate: /Users/user/.minikube/certs/cert.pem
Running pre-create checks...
(minikube) Calling .PreCreateCheck
(minikube) Calling .GetConfigRaw
Creating machine...
(minikube) Calling .Create
(minikube) Downloading /Users/user/.minikube/cache/boot2docker.iso from file:///Users/user/.minikube/cache/iso/minikube-v1.0.1.iso...
(minikube) DBG | 2019/05/04 17:33:26 [INFO] Creating ssh key...
(minikube) DBG | 2019/05/04 17:33:26 [INFO] Creating raw disk image...
(minikube) DBG | Writing magic tar header
(minikube) DBG | Writing SSH key tar header
(minikube) DBG | Mounting boot2docker.iso
(minikube) DBG | executing: &{/usr/bin/hdiutil [hdiutil attach /Users/user/.minikube/machines/minikube/boot2docker.iso -mountpoint /Users/user/.minikube/machines/minikube/b2d-image] []  <nil> 0xc42000e018 0xc42000e02
0 [] <nil> <nil> <nil> <nil> <nil> false [] [] [] [] <nil> <nil>} attach /Users/user/.minikube/machines/minikube/boot2docker.iso -mountpoint /Users/user/.minikube/machines/minikube/b2d-image
(minikube) /dev/disk3                                           /Users/user/.minikube/machines/minikube/b2d-image
(minikube) DBG | Extracting Kernel Options...
(minikube) DBG | Extracted Options "loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube"
(minikube) DBG | Extracting /Users/user/.minikube/machines/minikube/b2d-image/boot/bzImage into /Users/user/.minikube/machines/minikube/bzImage
(minikube) DBG | Extracting /Users/user/.minikube/machines/minikube/b2d-image/boot/initrd into /Users/user/.minikube/machines/minikube/initrd
(minikube) DBG | Unmounting boot2docker.iso
(minikube) DBG | executing: &{/usr/bin/hdiutil [hdiutil detach /Users/user/.minikube/machines/minikube/b2d-image] []  <nil> 0xc42000e018 0xc42000e020 [] <nil> <nil> <nil> <nil> <nil> false [] [] [] [] <nil> <nil>} de
tach /Users/user/.minikube/machines/minikube/b2d-image
(minikube) "disk3" ejected.
(minikube) Using UUID f59fbfd4-6e81-11e9-bb44-f01898eab608
(minikube) Generated MAC 4e:e8:f0:ac:b:3f
(minikube) Starting with cmdline: loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube

๐Ÿ’ฃ  Unable to start VM: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f
Temporary Error: Could not find an IP address for 4e:e8:f0:ac:b:3f

๐Ÿ˜ฟ  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new

The output of the minikube logs command:

๐Ÿ’ฃ  command runner: getting ssh client for bootstrapper: Error dialing tcp via ssh client: dial tcp :22: connect: connection refused

๐Ÿ˜ฟ  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new

The operating system version:

macOS Mojave 10.14.4 (18E226)
Darwin mac.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_

causvm-driver chyperkit kinsupport long-term-support

Most helpful comment

@rkrdo Are you using a vpn at the same time, or have a vpn client installed?
In my case the problem is probably related to some weird interaction between minikube and vpn software.
But for me it's tricky to determine because it's inconsistent, or at least i didn't recognize a partern yet.

All 42 comments

This is a duplicate of #1926 - the solution is to upgrade your hyperkit driver:

curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit && sudo install -o root -g wheel -m 4755 docker-machine-driver-hyperkit /usr/local/bin/

Then run minikube delete && minikube start --vm-driver=hyperkit to recreate your VM.

If this is still broken, please re-open the bug, and include the output of:

ls -la $(which docker-machine-driver-hyperkit)

I will make sure we provide a more user friendly error message for this case. Thanks!

I've tried what you suggest many times, but I'm still having the exact same issue.

$ ls -la $(which docker-machine-driver-hyperkit)
-rwsr-xr-x 1 root wheel 27785684 May 15 19:17 /usr/local/bin/docker-machine-driver-hyperkit*

Thanks for the update! Do you mind providing updated output for minikube start --alsologtostderr -v=8 as well as the contents of /var/db/dhcpd_leases?

The newer version of the hyperkit driver (which you appear to be on) should log a bit more information on what DHCP entries it finds in that file, which would be very useful here.

Regrettably, there isn't enough information in this issue to make it actionable, and a long enough duration has passed, so this issue is likely difficult to replicate. If you can provide any additional details, such as:

  • The exact command line used
  • The full output of the command
  • The full output of "minikube logs"

Please feel free to do so at any point. Thank you for sharing your experience!

This might be a naive suggestion to the source of the problem here, but on my Mojave install there is no /var/db/dhcpd_leases. There is, however, /var/db/dhcpclient/leases.

If you are running into this, please share the output of:

docker-machine-driver-hyperkit version (it should say v1.3.0+)

and:

minikube start -v=7

Thanks!

Also experiancing this issue.

OS: macOS Mojave 10.14.6

hyperkit: v0.20190201-11-gc0dd46

docker-machine version 0.16.1, build cce350d7

> minikube start --vm-driver hyperkit -v=7
๐Ÿ˜„  minikube v1.3.0 on Darwin 10.14.6
๐Ÿ”ฅ  Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
Found binary path at /usr/local/bin/docker-machine-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:55516
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minikube) Calling .GetMachineName
(minikube) Calling .DriverName
Reading certificate data from /Users/amctavish/.minikube/certs/ca.pem
Decoding PEM data...
Parsing certificate...
Reading certificate data from /Users/amctavish/.minikube/certs/cert.pem
Decoding PEM data...
Parsing certificate...
Running pre-create checks...
(minikube) Calling .PreCreateCheck
(minikube) Calling .GetConfigRaw
Creating machine...
(minikube) Calling .Create
(minikube) Downloading /Users/amctavish/.minikube/cache/boot2docker.iso from file:///Users/amctavish/.minikube/cache/iso/minikube-v1.3.0.iso...
(minikube) DBG | 2019/08/09 08:58:10 [INFO] Creating ssh key...
(minikube) DBG | 2019/08/09 08:58:10 [INFO] Creating raw disk image...
(minikube) DBG | Writing magic tar header
(minikube) DBG | Writing SSH key tar header
(minikube) DBG | Mounting boot2docker.iso
(minikube) DBG | executing: &{/usr/bin/hdiutil [hdiutil attach /Users/amctavish/.minikube/machines/minikube/boot2docker.iso -mountpoint /Users/amctavish/.minikube/machines/minikube/b2d-image] []  <nil> 0xc4200b8008 0xc4200b8010 [] <nil> <nil> <nil> <nil> <nil> false [] [] [] [] <nil> <nil>} attach /Users/amctavish/.minikube/machines/minikube/boot2docker.iso -mountpoint /Users/amctavish/.minikube/machines/minikube/b2d-image
(minikube) /dev/disk2                                           /Users/amctavish/.minikube/machines/minikube/b2d-image
(minikube) DBG | Extracting Kernel Options...
(minikube) DBG | Extracted Options "loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube"
(minikube) DBG | Extracting /Users/amctavish/.minikube/machines/minikube/b2d-image/boot/bzImage into /Users/amctavish/.minikube/machines/minikube/bzImage
(minikube) DBG | Extracting /Users/amctavish/.minikube/machines/minikube/b2d-image/boot/initrd into /Users/amctavish/.minikube/machines/minikube/initrd
(minikube) DBG | Unmounting boot2docker.iso
(minikube) DBG | executing: &{/usr/bin/hdiutil [hdiutil detach /Users/amctavish/.minikube/machines/minikube/b2d-image] []  <nil> 0xc4200b8008 0xc4200b8010 [] <nil> <nil> <nil> <nil> <nil> false [] [] [] [] <nil> <nil>} detach /Users/amctavish/.minikube/machines/minikube/b2d-image
(minikube) "disk2" ejected.
(minikube) Using UUID 6de66e08-ba7b-11e9-8239-3af9d3d5a8c5
(minikube) Generated MAC 8a:fc:f5:2a:c6:da
(minikube) Starting with cmdline: loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube
E0809 08:59:14.679491   85696 start.go:723] StartHost: 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
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory

๐Ÿ’ฃ  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
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory

๐Ÿ˜ฟ  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose
> docker-machine-driver-hyperkit version
This is a Docker Machine plugin binary.
Plugin binaries are not intended to be invoked directly.
Please use this plugin through the main 'docker-machine' binary.
(API version: 1)

(feel like I'm doing that wrong ๐Ÿ˜Ÿ )

As @snoopdouglas mentioned using Mojave there is /var/db/dhcpclient/leases but no /var/db/dhcpd_leases

I'm also having the same issue using Mojave,

The output of minikube start --vm-driver hyperkit -v=7 is:

๐Ÿ˜„  minikube v1.3.0 on Darwin 10.14.5
๐Ÿ’ฟ  Downloading VM boot image ...
    minikube-v1.3.0.iso.sha256: 65 B / 65 B [=====================] 100.00% 0s
    minikube-v1.3.0.iso: 131.07 MiB / 131.07 MiB [================] 100.00% 1s
๐Ÿ”ฅ  Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
Found binary path at /usr/local/bin/docker-machine-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:59942
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minikube) Calling .GetMachineName
(minikube) Calling .DriverName
Creating CA: /Users/ricardo/.minikube/certs/ca.pem
Creating client certificate: /Users/ricardo/.minikube/certs/cert.pem
Running pre-create checks...
(minikube) Calling .PreCreateCheck
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) Calling .GetConfigRaw
Creating machine...
(minikube) Calling .Create
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | ERROR: logging before flag.Parse: I0808 18:31:48.583791    8388 drivers.go:96] Making disk image using store path: /Users/ricardo/.minikube
(minikube) Downloading /Users/ricardo/.minikube/cache/boot2docker.iso from file:///Users/ricardo/.minikube/cache/iso/minikube-v1.3.0.iso...
(minikube) DBG | ERROR: logging before flag.Parse: I0808 18:31:48.708304    8388 drivers.go:103] Creating ssh key: /Users/ricardo/.minikube/machines/minikube/id_rsa...
(minikube) DBG | ERROR: logging before flag.Parse: I0808 18:31:48.783841    8388 drivers.go:109] Creating raw disk image: /Users/ricardo/.minikube/machines/minikube/minikube.rawdisk...
(minikube) DBG | Writing magic tar header
(minikube) DBG | Writing SSH key tar header
(minikube) DBG | ERROR: logging before flag.Parse: I0808 18:31:48.784123    8388 drivers.go:123] Fixing permissions on /Users/ricardo/.minikube/machines/minikube ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | clean start, hyperkit pid file doesn't exist: /Users/ricardo/.minikube/machines/minikube/hyperkit.pid
(minikube) DBG | Using UUID b0df7f16-ba34-11e9-8891-8c85907a2ecb
(minikube) DBG | Generated MAC e:3a:ab:fb:c9:6b
(minikube) DBG | Starting with cmdline: loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 systemd.legacy_systemd_cgroup_controller=yes base host=minikube
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | 2019/08/08 18:31:49 fcntl(F_PUNCHHOLE) failed: host filesystem does not support sparse files: Operation not permitted
(minikube) DBG | 2019/08/08 18:31:49 rdmsr to register 0x140 on vcpu 0
(minikube) DBG | 2019/08/08 18:31:49 rdmsr to register 0x140 on vcpu 1
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | 2019/08/08 18:32:06 rdmsr to register 0x64e on vcpu 0
(minikube) DBG | 2019/08/08 18:32:06 rdmsr to register 0x34 on vcpu 0
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
(minikube) DBG | exe=/usr/local/bin/docker-machine-driver-hyperkit uid=0
(minikube) DBG | hyperkit pid from json: 8416
(minikube) DBG | Searching for e:3a:ab:fb:c9:6b in /var/db/dhcpd_leases ...
E0808 18:32:51.347041    8366 start.go:723] StartHost: 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
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory

๐Ÿ’ฃ  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
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory
Temporary Error: open /var/db/dhcpd_leases: no such file or directory

๐Ÿ˜ฟ  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose

And the output of docker-machine-driver-hyperkit version is:

version: v1.3.0
commit: 43969594266d77b555a207b0f3e9b3fa1dc92b1f

minikube logs returns:

๐Ÿ’ฃ  command runner: getting ssh client for bootstrapper: Error dialing tcp via ssh client: dial tcp :22: connect: connection refused

๐Ÿ˜ฟ  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose

and like other folks in this thread, I don't have a /var/db/dhcp_leases file

@rkrdo Are you using a vpn at the same time, or have a vpn client installed?
In my case the problem is probably related to some weird interaction between minikube and vpn software.
But for me it's tricky to determine because it's inconsistent, or at least i didn't recognize a partern yet.

Same with me too. Missing /var/db/dhcpd_leases file on my mac.

Details

  • OS: High Sierra [10.13.6]
  • Same Exception Trace
  • HyperKit - latest
โžœ  ~ hyperkit -v
hyperkit: v0.20190201-11-gc0dd46

Homepage: https://github.com/docker/hyperkit
License: BSD
  • Hyperkit driver - latest
โžœ  ~ docker-machine-driver-hyperkit version
version: v1.3.0
commit: 43969594266d77b555a207b0f3e9b3fa1dc92b1f
  • Minikube - latest
โžœ  ~ minikube version
minikube version: v1.3.0
commit: 43969594266d77b555a207b0f3e9b3fa1dc92b1f

Note:

  • I can start Minikube using Virtualbox.
  • I do have Cisco AnyConnect software installed for connecting to VPN but I am not using it when starting Minikube.
  • Laptop is company managed as in few policies are in place like Siri being unavailable.

Some digging I did (if it helps) -

  • Function GetIPAddressByMACAddress() tries to get a IP Address for the assigned MAC address by reading it from file. File's path is hardcoded in LeasesPath.
  • Creating a dummy touch /var/db/dhcpd_leases doesn't help either. New exception after adding a dummy file is Temporary Error: could not find an IP address for 32:99:f0:57:d3:7a
  • Not able to start a dhcp server on mac (using bootp) either [This is most probably my fault for not doing it right]

Please let me know if you need any other information to fix this issue, happy to help. I can also voluntary to fix this issue once we can identify the root cause.

@rkrdo Are you using a vpn at the same time, or have a vpn client installed?
In my case the problem is probably related to some weird interaction between minikube and vpn software.
But for me it's tricky to determine because it's inconsistent, or at least i didn't recognize a partern yet.

@colangelo thank you for the suggestion! it turned out it to be Little Snitch that was causing preventing minikube-darwin-amd64 from creating/writing to /var/db/dhcpd_leases

Thanks @rkrdo, good to know!

I also have Little Snitch installed, and most of the times i have no issues, but sometimes especially a few months ago, if i'd recently connected or disconnetted from the vpn i was getting that error.

My opinion is that this issue is probably related to one ore more third party software that interact with the network stack, and interact badly with minikube's dhcp (or hyperkit's).

Update: This issue is still possible, but minikube v1.4 now retries the creation process, so you are much less likely to see the problem in the wild. That said, there are still programs like "Little Snitch" that may interfere, so I am leaving this open.

Also adding flake tag because this issue is the source of test flakes:

https://storage.googleapis.com/minikube-builds/logs/4980/HyperKit_macOS.txt

I am also have this identical issue just to reflect that I am using the latest and greatest. I did not know where to file my issue in the beginning, so I landed my issue here:
https://github.com/machine-drivers/docker-machine-driver-hyperkit/issues/15

Now that we have great output for our test failures, I have a theory: with a modern hyperkit driver: once you've setup 253 VM's, you will hit this failure condition. Basically:

  • The DHCP server (bootpd) is allocated to only provide 253 IP's
  • The hyperkit driver generates a unique MAC address based on the VM's unique identifier
  • bootpd preserves the last lease for every MAC address seen

My suggested workaround:

Once the lease count goes over a certain limit (>240), the driver could check if bootpd is running, and if not, flush expired leases.

It's worth noting that bootpd is only typically active for just long enough to start a hyperkit VM.

I encountered this error, but after some digging I discovered in my case the cause was bootpd being disabled (I had installed the ISC dhcpd at some point). Running the following resolved the issue:

sudo launchctl enable system/com.apple.bootpd

Hi I'm running the same issue and I don't have "Little Snitch" or bootpd installed.
Any workaround?

โžœ  ~ minikube start -v=7
๐Ÿ˜„  minikube v1.5.2 on Darwin 10.14.6
โœจ  Automatically selected the 'hyperkit' driver
๐Ÿ”ฅ  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

๐Ÿ˜ฟ  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
๐Ÿ‘‰  https://github.com/kubernetes/minikube/issues/new/choose

my /var/db/dhcpd_leases contains :

{
name=minikube
ip_address=192.168.64.14
hw_address=1,56:f:92:91:49:cf
identifier=1,56:f:92:91:49:cf
lease=0x5ded0faf
}
{
name=minikube
ip_address=192.168.64.13
hw_address=1,ea:e4:76:e6:38:8f
identifier=1,ea:e4:76:e6:38:8f
lease=0x5ded0df1
}
{
name=minikube
ip_address=192.168.64.12
hw_address=1,7a:8e:f2:a0:c2:f3
identifier=1,7a:8e:f2:a0:c2:f3
lease=0x5ded0dad
}
{
name=minikube
ip_address=192.168.64.11
hw_address=1,4e:14:6:3d:86:cb
identifier=1,4e:14:6:3d:86:cb
lease=0x5ded0c85
}
{
name=minikube
ip_address=192.168.64.10
hw_address=1,76:6f:a7:e2:e4:f2
identifier=1,76:6f:a7:e2:e4:f2
lease=0x5ded0c3c
}
{
name=minikube
ip_address=192.168.64.9
hw_address=1,52:8:75:9b:91:a3
identifier=1,52:8:75:9b:91:a3
lease=0x5decef57
}
{
name=minikube
ip_address=192.168.64.8
hw_address=1,52:2f:b5:e1:da:b6
identifier=1,52:2f:b5:e1:da:b6
lease=0x5decee09
}
{
name=minikube
ip_address=192.168.64.7
hw_address=1,de:6d:92:a5:bf:2f
identifier=1,de:6d:92:a5:bf:2f
lease=0x5deced57
}
{
name=minikube
ip_address=192.168.64.6
hw_address=1,a6:d3:4c:1b:8e:11
identifier=1,a6:d3:4c:1b:8e:11
lease=0x5deced01
}
{
name=minikube
ip_address=192.168.64.5
hw_address=1,36:df:ef:74:46:7
identifier=1,36:df:ef:74:46:7
lease=0x5dececc7
}
{
name=minikube
ip_address=192.168.64.4
hw_address=1,32:3d:f5:ad:10:c0
identifier=1,32:3d:f5:ad:10:c0
lease=0x5dece981
}
{
name=minikube
ip_address=192.168.64.3
hw_address=1,6:e6:d8:2e:66:a7
identifier=1,6:e6:d8:2e:66:a7
lease=0x5dece937
}
{
name=minikube
ip_address=192.168.64.2
hw_address=1,7e:77:3b:7b:46:7d
identifier=1,7e:77:3b:7b:46:7d
lease=0x5dece8f8
}

I have solved by clear this configuration and recreate minikube:
minikube delete
minikube start --vm-driver=hyperkit

We still see this from time to time in our integration tests. As best as I can tell, it's reflective of a class of bugs with VM startup in hyperkit, but all attempts to reliably replicate it have failed.

minikube: v1.6.2
Darwin: 10.14.6
hyperkit: v0.20190201-11-gc0dd46

I experienced this same issue.

Resolution was enabling my company VPN through "Pulse Secure" app.

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). Also using mohave and do have a company VPN software installed if that is the cause (f5 Big-IP edge client).

We're hitting this on the Azure Pipelines macOS images, either 10.14 or 10.15.

One curiosity is that multiple times I've tested this, the first couple runs work fine, but then this error reproduces 100% of the time after that. That seems like it sort of meshes with @tstromberg's theory that a lease limit is being hit... but AFAIK those hosted VMs should be completely isolated so that's really weird. Could just be a coincidence.

I faced the issue also, and solved it by:

  • disabling internet sharing in OSX (I don't know if it helped solving)
  • editing the /var/db/dhcpd_leases and changed the entry named "minishift" by setting the fields hw_address=1,32:76:8c:29:47:3f and identifier=1,32:76:8c:29:47:3f to the mac address specified in the error message

Mac Os Catalina 10.15.3
โžœ ~ minikube start --memory=8192 --cpus=4 --vm-driver=hyperkit
๐Ÿ˜„ minikube v1.7.3 on Darwin 10.15.3
โœจ Using the hyperkit driver based on user configuration
๐Ÿ”ฅ Creating hyperkit VM (CPUs=4, Memory=8192MB, Disk=20000MB) ...

๐Ÿ’ฃ Unable to start VM. Please investigate and run 'minikube delete' if possible: creating host: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: could not find an IP address for ba:5d:59:26:f9:29

๐Ÿ˜ฟ minikube is exiting due to an error. If the above message is not useful, open an issue:
๐Ÿ‘‰ https://github.com/kubernetes/minikube/issues/new/choose

I'm seeing the same error as @JanYunkai

Got same issue with minikube v1.7.3 on Darwin 10.14.6, fix this by adding argument --vm-driver=virtualbox

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). Also using mohave and do have a company VPN software installed if that is the cause (f5 Big-IP edge client).

Same issue, same configuration as @nickwilmes except Catalina. As a workaround, the virtualbox driver seems to be working (thx @fezho)

I also met the issue when I connected with my Cisco AnyConnect VPN. Resolved by disconnect the VPN.

Apparently this was caused by the McAfee Total Protection that i have installed on my macbook (Catalina v10.15.3). Disabling the Firewall function, resolved this issue.

@tstromberg I encountered the same problem on macOS Catalina 10.15.4 :

Temporary Error: open /var/db/dhcpd_leases: no such file or directory

On my machine, I had installed the following from homebrew:

  • brew install docker
  • brew install docker-machine
  • brew install docker-machine-driver-hyperkit
  • brew install hyperkit

to work around the problem, I uninstalled everything:

  • brew uninstall docker
  • brew uninstall docker-machine
  • brew uninstall docker-machine-driver-hyperkit
  • brew uninstall hyperkit

Then I Installed Docker Desktop for Mac from here:
https://hub.docker.com/editions/community/docker-ce-desktop-mac/

After doing that, I had:

docker version
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:21:11 2020
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:29:16 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

I did not install docker-machine or docker-machine-driver-hyperkit.
It looks like Docker Desktop for Mac includes hyperkit.

At this point I was able to start docker containers and did not have the issue with the missing /var/db/dhcpd_leases file.

when I am following below steps I got success -

1.Disconnect any VPN
2.minikube delete && minikube start --vm-driver=hyperkit

  1. minikube start
  2. (base) 90-X50XLVDQ-3GN:PycharmProjects jayeshdilip.dalal$ minikube start
    ๐Ÿ˜„ minikube v1.9.2 on Darwin 10.15.3
    โœจ Using the hyperkit driver based on existing profile
    ๐Ÿ‘ Starting control plane node m01 in cluster minikube
    ๐Ÿƒ Updating the running hyperkit "minikube" VM ...
    ๐Ÿณ Preparing Kubernetes v1.18.0 on Docker 19.03.8 ...
    ๐ŸŒŸ Enabling addons: default-storageclass, storage-provisioner
    ๐Ÿ„ Done! kubectl is now configured to use "minikube"

โ— /usr/local/bin/kubectl is v1.15.5, which may be incompatible with Kubernetes v1.18.0.
๐Ÿ’ก You can also use 'minikube kubectl -- get pods' to invoke a matching version

even check in
cat /var/db/dhcpd_leases

there is IP address.

Is anybody still seeing this issue with the latest release (v1.9.2)?

Yes, me, and I guess many others that commented this issue.
Nothing changed in the latest releases, at least for me.
The only way that I have to make it work is to reboot, and then start minikube before starting the VPN.
Once I start the VPN, there is no way to have minikube start until I reboot: disconnecting the VPN, executing minikube delete, etc. do not fix the problem, at least for me.

If you get this error, please try --driver=docker as a workaround: particularly if you are a VPN user!

In the end, there is not a whole lot more we can do about this particular error, as it is internal to hyperkit. Two observations I've had are:

  • This error can be related to Internet Sharing (hyperkit uses the DHCP server from it)
  • This error can happen if two VM's are started simultaneously. We've now prevented this in the minikube code base.

I'm going to leave this open as a long-term support issue, as users are likely to hit it for years to come.

@winhung have your mcafee team create a rule in the firewall:

Rule Action: | Allow
-- | --
Direction: | Either
Connection type: | All types (Wired,Wireless,Virtual)
Protocol: | UDP/IPv4
Local port: | 67-68
Remote port: | 67-68

I tried several times this issue exists when you first create ingress service on the minikube
Its not particular to any of the minikube driver setup.

I know my solution would not be a best choice but i worked a several times using different virtual machines like vritualbox, hyperkit and Docker

Here's my solution
1) Delete the minikube from any of the virtual machine you are running
2) Install helm using exact same instruction given in the https://docs.nginx.com/nginx-ingress-controller/installation/installation-with-helm/
3) Start the minikube using any vertual machine ( minikube start --vm-driver='driver')
4) apply your nginx ingress service using kubectl.

I believe this solution would work for sure.
Heres what i tried for every vm
minikube start --vm-driver=docker
๐Ÿ˜„ minikube v1.12.1 on Darwin 10.15.5
โœจ Using the docker driver based on user configuration
๐Ÿ‘ Starting control plane node minikube in cluster minikube
๐Ÿ”ฅ Creating docker container (CPUs=2, Memory=4000MB) ...
๐Ÿณ Preparing Kubernetes v1.18.3 on Docker 19.03.2 ...
๐Ÿ”Ž Verifying Kubernetes components...
๐ŸŒŸ Enabled addons: default-storageclass, storage-provisioner
๐Ÿ„ Done! kubectl is now configured to use "minikube"

minikube get pods
ingress.extensions/ingress-service created
minikube start --vm-driver=virtualbox
๐Ÿ˜„ minikube v1.12.1 on Darwin 10.15.5
โœจ Using the virtualbox driver based on user configuration
๐Ÿ‘ Starting control plane node minikube in cluster minikube
๐Ÿ”ฅ Creating virtualbox VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
๐Ÿณ Preparing Kubernetes v1.18.3 on Docker 19.03.12 ...
๐Ÿ”Ž Verifying Kubernetes components...
๐ŸŒŸ Enabled addons: default-storageclass, storage-provisioner
๐Ÿ„ Done! kubectl is now configured to use "minikube"

minikube start --vm-driver=hyperkit
๐Ÿ˜„ minikube v1.9.2 on Darwin 10.15.3
โœจ Using the hyperkit driver based on existing profile
๐Ÿ‘ Starting control plane node m01 in cluster minikube
๐Ÿƒ Creating hyperkit VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
๐Ÿณ Preparing Kubernetes v1.18.0 on Docker 19.03.8 ...
๐ŸŒŸ Enabling addons: default-storageclass, storage-provisioner
๐Ÿ„ Done! kubectl is now configured to use "minikube"

Looks like for me it's solved.
Running on macOS 10.15.6 (19G2021) and minikube v1.12.3 and I'm not experiencing the problem anymore, while before on my machines it was failing almost 100% of the times.

On Catalina (10.15.6) I'm not seeing a dhcpd_leases file written, and so the loop never completes -- I can of course write that file, to bump the loop forward, though it'll never get to a reachable, routed IP address. Firewall tested on and off, internet sharing tested on and off.

Docker hyperkit did need a bump, homebrew didn't seem to have the right version:

sudo curl https://github.com/machine-drivers/docker-machine-driver-hyperkit/releases/download/v1.0.0/docker-machine-driver-hyperkit -Lo /usr/local/bin/docker-machine-driver-hyperkit

Definitely needed to bump hyperkit (so maybe I made a mistake in my homebrew download):

brew upgrade hyperkit

Seems like there's a long standing issue somewhere in here about setting up networking.

@Downchuck the other alternative is to completely uninstall Homebrew packages of Docker and Hyperkit and instead install Docker Desktop for Mac:

https://github.com/kubernetes/minikube/issues/4206#issuecomment-605590333

@rodrigc there are many alternatives, such as using virtualbox, parallels or installing Docker for Mac. Using an alternative does not address the long standing issues, unless it is demonstrating a fix. If there is a fix in the Docker for Mac implementation it would be very helpful to understand it so as to address the breakdown here.

Was this page helpful?
0 / 5 - 0 ratings