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

Not working on macOS #128

Open nikolay opened 7 years ago

nikolay commented 7 years ago
$ docker-machine create dev --driver xhyve
Creating CA: /Users/NikolayKolev/.docker/machine/certs/ca.pem
Creating client certificate: /Users/NikolayKolev/.docker/machine/certs/cert.pem
Running pre-create checks...
Creating machine...
(dev) Image cache directory does not exist, creating it at /Users/NikolayKolev/.docker/machine/cache...
(dev) No default Boot2Docker ISO found locally, downloading the latest release...
(dev) Latest release for github.com/boot2docker/boot2docker is v1.11.2
(dev) Downloading /Users/NikolayKolev/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.11.2/boot2docker.iso...
Error attempting heartbeat call to plugin server: unexpected EOF
(dev) 0%....10%....20%....30%.
Error creating machine: Error in driver during machine creation: unexpected EOF
Error attempting heartbeat call to plugin server: connection is shut down
nikolay commented 7 years ago

Both xhyve and the docker-machine driver are installed via Homebrew and permissions are changes according to the instructions.

cmoulliard commented 7 years ago

I don't know if your problem is the same as mine on MacOS

ProductName:    Mac OS X
ProductVersion: 10.11.5
BuildVersion:   15F34

but here is my output

docker-machine -D create --driver xhyve dev-xhyve
Docker Machine Version:  0.7.0, build a650a40
Found binary path at /usr/local/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:60446
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:60450
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(dev-xhyve) Calling .GetMachineName
(dev-xhyve) Calling .DriverName
(dev-xhyve) Calling .GetCreateFlags
(dev-xhyve) Calling .SetConfigFromFlags
Running pre-create checks...
(dev-xhyve) Calling .PreCreateCheck
(dev-xhyve) DBG | ===== Docker Machine xhyve Driver Version 0.2.2 (Homebrew) =====
(dev-xhyve) DBG |
(dev-xhyve) DBG | executing: /usr/local/bin/VBoxManage -v
(dev-xhyve) DBG | STDOUT: 5.0.20r106931
(dev-xhyve) DBG |
(dev-xhyve) DBG | STDERR:
(dev-xhyve) Calling .GetConfigRaw
Creating machine...
(dev-xhyve) Calling .Create
(dev-xhyve) DBG | local Boot2Docker ISO version:  v1.11.2
(dev-xhyve) Copying /Users/chmoulli/.docker/machine/cache/boot2docker.iso to /Users/chmoulli/.docker/machine/machines/dev-xhyve/boot2docker.iso...
(dev-xhyve) Creating VM...
(dev-xhyve) DBG | Mounting boot2docker.iso
(dev-xhyve) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(dev-xhyve) DBG | executing: &{/usr/bin/hdiutil [hdiutil attach /Users/chmoulli/.docker/machine/machines/dev-xhyve/boot2docker.iso -mountpoint /Users/chmoulli/.docker/machine/machines/dev-xhyve/b2d-image] []  <nil> 0xc82002e010 0xc82002e018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} attach /Users/chmoulli/.docker/machine/machines/dev-xhyve/boot2docker.iso -mountpoint /Users/chmoulli/.docker/machine/machines/dev-xhyve/b2d-image
(dev-xhyve) DBG | hdiutil: attach failed - Operation timed out
Error creating machine: Error in driver during machine creation: exit status 1
Opting out of crash reporting.
hugohenrique commented 7 years ago

ping @zchee

hugohenrique commented 7 years ago

I avoided this problem by installing brew install xhyve

nikolay commented 7 years ago

@hugohenrique I already had that in place.

nikolay commented 7 years ago
$ brew reinstall xhyve
==> Reinstalling xhyve
==> Downloading https://github.com/mist64/xhyve/archive/v0.2.0.tar.gz
==> Downloading from https://codeload.github.com/mist64/xhyve/tar.gz/v0.2.0
######################################################################## 100.0%
==> make GIT_VERSION=0.2.0
🍺  /usr/local/Cellar/xhyve/0.2.0: 3 files, 228.5K, built in 17 seconds
$ docker-machine create dev --driver xhyve
Running pre-create checks...
Creating machine...
(dev) No default Boot2Docker ISO found locally, downloading the latest release...
(dev) Latest release for github.com/boot2docker/boot2docker is v1.11.2
(dev) Downloading /Users/NikolayKolev/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.11.2/boot2docker.iso...
(dev) 0%....10%.
Error attempting heartbeat call to plugin server: unexpected EOF
Error creating machine: Error in driver during machine creation: unexpected EOF
tharpa commented 6 years ago

Not working on my on MacBook 12" (2017) running macOS Sierra 10.12.6 either:

==> Reinstalling xhyve 
==> Downloading https://homebrew.bintray.com/bottles/xhyve-0.2.0.sierra.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/ed/edc2e17147d4ae9333033e7317590a48b752b418df689a6dae45bd29a12eaca8?__gda__=exp=1505079849~hmac=ee41acbe6c4088aaecdcd4a4e686c09d77d62
######################################################################## 100.0%
==> Pouring xhyve-0.2.0.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/xhyve/0.2.0: 10 files, 11.2MB
$ docker-machine create dev --driver xhyve
Running pre-create checks...
Error with pre-create check: "Error detecting VBox version: exit status 126"
dimidd commented 6 years ago

@tharpa Try uninstalling virtualbox, this worked for me.