docker-machine-driver-xhyve icon indicating copy to clipboard operation
docker-machine-driver-xhyve copied to clipboard

Not working on macOS

Open nikolay opened this issue 9 years ago • 8 comments

$ 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 avatar Jul 14 '16 21:07 nikolay

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

nikolay avatar Jul 14 '16 21:07 nikolay

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.

cmoulliard avatar Jul 15 '16 08:07 cmoulliard

ping @zchee

hugohenrique avatar Jul 18 '16 22:07 hugohenrique

I avoided this problem by installing brew install xhyve

hugohenrique avatar Jul 18 '16 22:07 hugohenrique

@hugohenrique I already had that in place.

nikolay avatar Jul 19 '16 15:07 nikolay

$ 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

nikolay avatar Jul 19 '16 16:07 nikolay

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"

tharpa avatar Sep 10 '17 21:09 tharpa

@tharpa Try uninstalling virtualbox, this worked for me.

dimidd avatar Mar 21 '18 09:03 dimidd