machine-drivers / docker-machine-driver-xhyve

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve
BSD 3-Clause "New" or "Revised" License
888 stars 74 forks source link

Machine didn't return an IP after 120 seconds, aborting #97

Open quinncomendant opened 8 years ago

quinncomendant commented 8 years ago

I'm experiencing an issue similar to #9, #59, and #91. Perhaps you can help me identify if it is a problem on my side.

  Model Name: MacBook Pro
  Model Identifier: MacBookPro12,1
  Processor Name: Intel Core i5
  Processor Speed: 2.9 GHz
  Number of Processors: 1
  Total Number of Cores: 2
  L2 Cache (per Core): 256 KB
  L3 Cache: 3 MB
  Memory: 8 GB
  Boot ROM Version: MBP121.0167.B15
  SMC Version (system): 2.28f7
  Serial Number (system): C2QR203YGKJN
  Hardware UUID: BC41ECAC-FC98-5F98-A854-A83B191916E2

I have installed docker, docker-compose, docker-machine, xhyve, and docker-machine-driver-xhyve via homebrew:

[asdf@localhost/0 ~] brew list docker docker-compose docker-machine xhyve docker-machine-driver-xhyve
/usr/local/Cellar/docker/1.10.1/bin/docker
/usr/local/Cellar/docker/1.10.1/etc/bash_completion.d/docker
/usr/local/Cellar/docker/1.10.1/share/fish/vendor_completions.d/docker.fish
/usr/local/Cellar/docker/1.10.1/share/zsh/site-functions/_docker
/usr/local/Cellar/docker-compose/1.6.0/bin/docker-compose
/usr/local/Cellar/docker-compose/1.6.0/etc/bash_completion.d/docker-compose
/usr/local/Cellar/docker-compose/1.6.0/libexec/bin/docker-compose
/usr/local/Cellar/docker-compose/1.6.0/libexec/lib/ (43 files)
/usr/local/Cellar/docker-compose/1.6.0/libexec/vendor/ (248 files)
/usr/local/Cellar/docker-compose/1.6.0/share/zsh/site-functions/_docker-compose
/usr/local/Cellar/docker-machine/0.6.0/bin/docker-machine
/usr/local/Cellar/docker-machine/0.6.0/etc/bash_completion.d/ (3 files)
/usr/local/Cellar/xhyve/0.2.0/bin/xhyve
/usr/local/Cellar/docker-machine-driver-xhyve/0.2.2/bin/docker-machine-driver-xhyve

Then I create a machine…

[asdf@localhost/0 ~] docker-machine create dev --driver xhyve --xhyve-experimental-nfs-share
Creating CA: /Users/asdf/.docker/machine/certs/ca.pem
Creating client certificate: /Users/asdf/.docker/machine/certs/cert.pem
Running pre-create checks...
Creating machine...
(dev) Image cache directory does not exist, creating it at /Users/asdf/.docker/machine/cache...
(dev) No default Boot2Docker ISO found locally, downloading the latest release...
(dev) Latest release for github.com/boot2docker/boot2docker is v1.10.1
(dev) Downloading /Users/asdf/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.10.1/boot2docker.iso...
(dev) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(dev) Copying /Users/asdf/.docker/machine/cache/boot2docker.iso to /Users/asdf/.docker/machine/machines/dev/boot2docker.iso...
(dev) Creating VM...
(dev) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(dev) /dev/disk2                                            /Users/asdf/.docker/machine/machines/dev/b2d-image
(dev) "disk2" unmounted.
(dev) "disk2" ejected.
(dev) Generating 20000MB disk image...
(dev) created: /Users/asdf/.docker/machine/machines/dev/root-volume.sparsebundle
(dev) Creating SSH key...
(dev) Fix file permission...
(dev) Generate UUID...
(dev) Convert UUID to MAC address...
(dev) Starting dev...
(dev) Waiting for VM to come online...
(dev) Waiting on a pseudo-terminal to be ready... done
(dev) Hook up your terminal emulator to /dev/ttys004 in order to connect to your VM

Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

I tried running docker-machine restart dev several times, always with Machine didn't return an IP after 120 seconds, aborting.

I'm doing something wrong?

quinncomendant commented 8 years ago

I'm still having this problem with docker-machine-driver-xhyve, but I would like to inform you that I did solve the issue I was having with corectl by disabling the OS X firewall. Doing so did not help with docker-machine-driver-xhyve unfortuantely, even with the firewall completely disabled I still get Machine didn't return an IP after 120 seconds, aborting.

I guess docker-machine-driver-xhyve and corectl get the DHCP IP address using different methods?