Giter Club home page Giter Club logo

machine-drivers / docker-machine-driver-xhyve Goto Github PK

View Code? Open in Web Editor NEW
888.0 888.0 74.0 20.96 MB

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)

Home Page: https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve

License: BSD 3-Clause "New" or "Revised" License

Makefile 17.09% Go 76.06% C 6.34% Dockerfile 0.50%
docker docker-machine go hyperkit hypervisor libmachine-driver-plugin macos minikube minishift xhyve

docker-machine-driver-xhyve's People

Contributors

chirino avatar codekitchen avatar dalehamel avatar dlorenc avatar gbraad avatar huguesalary avatar jamesraybould avatar jgeiger avatar johanneswuerbach avatar nathanleclaire avatar pauliusm avatar pierrezurek avatar praveenkumar avatar r2d4 avatar saljam avatar scorphus avatar zchee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-machine-driver-xhyve's Issues

MacOSX 10.11.4 15E65 (official release)

I still get the same error on the officiel release of OS X 10.11.4 :

(default) Convert UUID to MAC address...
Error creating machine: Error in driver during machine creation: exit status 1
open : no such file or directory
notifying bugsnag: [Error creating machine: Error in driver during machine creation: exit status 1]

Using docker-machine-driver-xhyve without sudo privledges

Reposted from Homebrew/legacy-homebrew#48002

I installed via the script in the PR and found that because the docker-machine driver requires sudo, the subsequent VM requires sudo for any docker-machine command run against it.

monkey@host$ docker-machine env xhyve
open /Users/monkey/.docker/machine/machines/xhyve/config.json: permission denied

monkey@host$ docker ps
Could not read CA certificate "/Users/monkey/.docker/machine/machines/xhyve/ca.pem": open /Users/monkey/.docker/machine/machines/xhyve/ca.pem: permission denied

This will create a drastic departure for the workflow of users who are used to running docker commands as non-root. I'm not sure how to best support this workflow.

Please add to README as requirement.

A quick test to see if this will work on your MAC is:

$ sysctl kern.hv_support
kern.hv_support: 0

If the value is 0 then it will not work, if 1 then it should work. I have a (later than 2010) Macbook 13, but after investing time installing all the code etc it failed to start the VM during the driver provision.

I think you could save people a lot of time by including the above snippet. Are you OK to add it?

Thanks,

Alex

(xhyve) Generate UUID...
(xhyve) DBG | Generated UUID: 05B9FB16-CD8A-4525-ABC8-72859E43E50B
(xhyve) Convert UUID to MAC address...
notifying bugsnag: [Error in driver during machine creation: exit status 1]
Error creating machine: Error in driver during machine creation: exit status 1
...
...
...
$ docker-machine start xhyve
(xhyve) Waiting for VM to come online...
(xhyve) Waiting on a pseudo-terminal to be ready... vmx_init: processor not supported by Hypervisor.framework
$ system_profiler SPHardwareDataType
Hardware:

    Hardware Overview:

      Model Name: MacBook
      Model Identifier: MacBook7,1
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.4 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache: 3 MB
      Memory: 4 GB
      Bus Speed: 1.07 GHz
      Boot ROM Version: MB71.0039.B0B
      SMC Version (system): 1.60f5
      Sudden Motion Sensor:
          State: Enabled

Building doesn't make lib9p

I'm working on updating the homebrew configuration to be able to build the HEAD Homebrew/legacy-homebrew#49467 . I'm not a go developer, so I may be missing something, but it appears that nothing makes the vendor/build/* directories, and go build doesn't set the proper environment variables for cgo to find the lib9p build.

What is the "recommended" way to build from source? The README has instructions to fetch precompiled binaries from either brew or via go get, and my (uninformed) attempts to "go deps" or "go build" to trigger lib9p's compilation didn't work,, which led to my admittedly gross little hack.

B2D iso and directory created by root owner

When does not exists $HOME/.docker directory, boot2docker.iso and $HOME/.docker/machine/cache will be create by root owner.
In that case, Error will occur when extractKernelImages.

virtio_net: Could not create vmnet interface, permission denied or no entitlement?

I installed using brew install docker-machine-driver-xhyve ran the chown/chmod, and tried running: docker-machine create dev --driver xhyve --xhyve-experimental-nfs-share

The output looks OK until I get the following:

(dev) Waiting for VM to come online...
(dev) Waiting on a pseudo-terminal to be ready... virtio_net: Could not create vmnet interface, permission denied or no entitlement?

I found #85 but am not sure if this is the same thing.

I tried doing chown/chmod on ht actual /usr/local/bin file instead and get the same results.

I discovered nlf/dhyve#37 with the following:

the file /Library/Preferences/SystemConfiguration/com.apple.vmnet doesn't exist.

I also do not find this file on my system (I am on Yosemite 10.10.5). I have no idea if this is the cause or if it may be something else.

This is really unfortunate since I really like this project.

As a workaround I am able to use https://github.com/ailispaw/boot2docker-xhyve. But I would rather use this one instead, if possible.

Another comment is that I found a really nice writeup at: https://allysonjulian.com/posts/setting-up-docker-with-xhyve/

docker-machine rm hangs

Not sure what's going on, but rm just hangs completely and never finishes on incomplete VMs.

'guestfs.h' file not found

Hi,

When building on Mac OS X inside the folder ~/gopath/src/github.com/zchee/docker-machine-xhyve, I have the following error :

$ make
# ./scripts/static.sh godep go build -i -o ./bin/docker-machine-xhyve ./bin
godep go build -i -o ./bin/docker-machine-driver-xhyve ./bin
# libguestfs.org/guestfs
/usr/local/Cellar/libguestfs/1.31.7/lib/golang/src/libguestfs.org/guestfs/guestfs.go:30:10: fatal error: 'guestfs.h' file not found
#include "guestfs.h"
         ^
1 error generated.
godep: go exit status 2
make: *** [bin/docker-machine-driver-xhyve] Error 1

My GOPATH is :

$ echo $GOPATH
~/gopath:/usr/local//Cellar/libguestfs/1.31.7/lib/golang

I followed the README file, do you have any idea ?

Thanks,

Pierre

Command not found: VBoxManage

Error creating machine: Error with pre-create check: Error detecting VBox version: exec: "VBoxManage": executable file not found in $PATH

'upgrade' doesn't work

Even though upgrade went without problems, the VM's version remains the same.

09:37 $ docker-machine upgrade xhyve
Waiting for SSH to be available...
Detecting the provisioner...
Upgrading docker...
Stopping machine to do the upgrade...
(xhyve) Stopping xhyve ...
(xhyve) "disk2" unmounted.
(xhyve) "disk2" ejected.
Upgrading machine "xhyve"...
Default Boot2Docker ISO is out-of-date, downloading the latest release...
Latest release for github.com/boot2docker/boot2docker is v1.10.1
Downloading /Users/mikhail/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.10.1/boot2docker.iso...
0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Copying /Users/mikhail/.docker/machine/cache/boot2docker.iso to /Users/mikhail/.docker/machine/machines/xhyve/boot2docker.iso...
Starting machine back up...
(xhyve) Waiting for VM to come online...
(xhyve) Waiting on a pseudo-terminal to be ready... done
(xhyve) Hook up your terminal emulator to /dev/ttys002 in order to connect to your VM
Restarting docker...

09:39 $ docker-machine ssh xhyve
                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 1.10.0, build master : b09ed60 - Thu Feb  4 20:16:08 UTC 2016
Docker version 1.10.0, build 590d5108
docker@boot2docker:~$

The upgrade does put a new boot2docker.iso to the VM's directory, but it doesn't update vmlinuz64/
/initrd.img from that ISO.

The only workaround is to extract those files from an ISO and replace them for the VM

Can not open boot2docker.iso use hdiutil

Result:

(xhyve) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(xhyve) DBG | Mounting boot2docker.iso
(xhyve) DBG | executing: &{/usr/bin/hdiutil [hdiutil attach /Users/zchee/.docker/machine/machines/xhyve/boot2docker.iso -mountpoint /Users/zchee/.docker/machine/machines/xhyve/b2d-image] []  <nil> %!s(*os.File=&{0xc820014390}) %!s(*os.File=&{0xc8200143c0}) [] %!s(*syscall.SysProcAttr=<nil>) %!s(*os.Process=<nil>) <nil> <nil> %!s(bool=false) [] [] [] [] %!s(chan error=<nil>)} attach /Users/zchee/.docker/machine/machines/xhyve/boot2docker.iso -mountpoint /Users/zchee/.docker/machine/machines/xhyve/b2d-image
open : no such file or directory
notifying bugsnag: [Error in driver during machine creation: unexpected EOF]
Error creating machine: Error in driver during machine creation: unexpected EOF

SSHKeyPath is not being set for the machine

Not sure if it is a requirement for docker-machine drivers but it seems that the xhyve driver is not setting it!

$ docker-machine create remove --driver xhyve
....
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on
this virtual machine, run: docker-machine env remove

$ docker-machine inspect remove | grep -i sshkey
        "SSHKeyPath": "",

I have not been able to check other drivers besides virtualbox (which sets up that field). LMK if you need any additional information!


References codekitchen/dinghy#150
/cc @codekitchen

Show a nice warning when running without root

Currently users running docker-machine create -d xhyve test without root are receiving an ugly error message Error creating machine: Error in driver during machine creation: exit status 1

Instead this driver should print a nice warning and tell the users that root is required.

unrecognized import path "libguestfs.org/guestfs"

❯ go version
go version go1.5.1 darwin/amd64

❯ brew install libguestfs --devel --env=std
Warning: zchee/libguestfs/libguestfs-1.31.7 already installed

then, I tried to make docker-machine-xhyve, but shows following error when run go get and make.

❯ go get -d github.com/zchee/docker-machine-xhyve
package libguestfs.org/guestfs: unrecognized import path "libguestfs.org/guestfs"cd $GOPATH/src/github.com/zchee/docker-machine-xhyve

❯ make
==> Build docker-machine-xhyve ...
 go build -o bin/docker-machine-driver-xhyve -ldflags  -w -s -X github.com/zchee/docker-machine-xhyve/version.GitCommit=7b49bbd  github.com/zchee/docker-machine-xhyve/bin 
# github.com/zchee/docker-machine-xhyve/vendor/libguestfs.org/guestfs
vendor/libguestfs.org/guestfs/guestfs.go:31:10: fatal error: 'guestfs.h' file not found
#include "guestfs.h"
         ^
1 error generated.
make: *** [build] Error 1

I wrote export GO15VENDOREXPERIMENT=1 to my .zshrc and retried, then go get shows no errors, but make shows same error.

about IP address

when i docker-machine restart default ,
the boot2docker ip will change,
and the env command is error.
can you fix it?

Xcode 6.3: format-pedantic error in vhpet.c

Hello,

with Xcode 6.3 I get the following error:

$ make V=1
cc src/vmm/io/vhpet.c
LANG=en_US.US-ASCII clang -arch x86_64 -x c -std=c11 -fno-common -fvisibility=hidden -DXHYVE_CONFIG_ASSERT -Os -flto -fstrict-aliasing -Weverything -Werror -Wno-unknown-warning-option -Wno-reserved-id-macro -pedantic -fmessage-length=152 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -g -DVERSION=\"v0.2.0-12-g793d17\" -Iinclude  -MMD -MT build/vmm/io/vhpet.o -MF build/vmm/io/vhpet.d -o build/vmm/io/vhpet.o -c src/vmm/io/vhpet.c
src/vmm/io/vhpet.c:294:60: error: format specifies type 'void *' but the argument has type 'struct vhpet *' [-Werror,-Wformat-pedantic]
                xhyve_abort("vhpet(%p) callout with counter disabled\n", vhpet);
                                   ~~                                    ^~~~~
In file included from src/vmm/io/vhpet.c:35:
include/xhyve/support/misc.h:22:19: note: expanded from macro 'xhyve_abort'
                fprintf(stderr, __VA_ARGS__); \
                                ^~~~~~~~~~~

My clang version is Apple LLVM version 7.3.0 (clang-703.0.29).

Thanks,
Gregor

Build isn't including the updated --memory-size flags?

I've been updating and building from master, and it seems that the resulting binary doesn't have the correct flags generated. I'm wondering if it's something odd I'm doing or there's just an issue elsewhere.

From the root of the project, I do a make install and when I try to a create a machine, it fails showing the non-memory-size flag.

docker-machine create --driver xhyve --xhyve-cpu-count=8 --xhyve-memory-size=8192

Can't use volumes from docker-compose

Hi!
What should I do if I want to use volumes from docker-compose? It'll be possible or I should use unison / rsync?
My /Users/ folder is mounted in docker machine, but I don't see files inside containers.

ip not found in dhcp leases

dhcp problem for me too.

(atomotic) DBG | Not there yet 1/60, error: IP not found for MAC 3a:47:46:45:cf:32 in DHCP leases
(atomotic) DBG | operation not supported by device
(atomotic) DBG | xhyve: illegal option -- F

following the full debug:

xhyve

xhyve -v
xhyve: 793d17

docker-machine

docker-machine -v
docker-machine version 0.5.5, build

run

➜  ~  docker-machine -D create --driver xhyve atomotic
Docker Machine Version:  0.5.5, build
Found binary path at /Users/raffaele/go/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:61674
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /Users/raffaele/go/bin/docker-machine-driver-xhyve
Launching plugin server for driver xhyve
Plugin server listening at address 127.0.0.1:61678
() DBG | operation not supported by device
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(atomotic) Calling .GetMachineName
(atomotic) Calling .DriverName
(atomotic) Calling .GetCreateFlags
(atomotic) Calling .SetConfigFromFlags
Running pre-create checks...
(atomotic) Calling .PreCreateCheck
(atomotic) DBG | ===== Docker Machine xhyve Driver Version 0.2.1 (HEAD) =====
(atomotic) DBG |
(atomotic) DBG | executing: /usr/local/bin/VBoxManage -v
(atomotic) DBG | STDOUT: 5.0.10r104061
(atomotic) DBG |
(atomotic) DBG | STDERR:
(atomotic) Calling .GetConfigRaw
Creating machine...
(atomotic) Calling .Create
(atomotic) DBG | local Boot2Docker ISO version:  v1.9.1
(atomotic) Copying /Users/raffaele/.docker/machine/cache/boot2docker.iso to /Users/raffaele/.docker/machine/machines/atomotic/boot2docker.iso...
(atomotic) Creating VM...
(atomotic) DBG | Mounting boot2docker.iso
(atomotic) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(atomotic) DBG | executing: &{/usr/bin/hdiutil [hdiutil attach /Users/raffaele/.docker/machine/machines/atomotic/boot2docker.iso -mountpoint /Users/raffaele/.docker/machine/machines/atomotic/b2d-image] []  <nil> 0xc82002c010 0xc82002c018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} attach /Users/raffaele/.docker/machine/machines/atomotic/boot2docker.iso -mountpoint /Users/raffaele/.docker/machine/machines/atomotic/b2d-image
(atomotic) /dev/disk3                                           /Users/raffaele/.docker/machine/machines/atomotic/b2d-image
(atomotic) DBG | Extracting vmlinuz64 into /Users/raffaele/.docker/machine/machines/atomotic
(atomotic) DBG | Extracting initrd.img into /Users/raffaele/.docker/machine/machines/atomotic
(atomotic) DBG | Unmounting boot2docker.iso
(atomotic) DBG | executing: &{/usr/bin/hdiutil [hdiutil detach /Users/raffaele/.docker/machine/machines/atomotic/b2d-image] []  <nil> 0xc82002c010 0xc82002c018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} detach /Users/raffaele/.docker/machine/machines/atomotic/b2d-image
(atomotic) "disk3" unmounted.
(atomotic) "disk3" ejected.
(atomotic) Generating 20000MB disk image...
(atomotic) DBG | executing: &{/usr/bin/hdiutil [hdiutil create -megabytes 20000 -type SPARSEBUNDLE /Users/raffaele/.docker/machine/machines/atomotic/root-volume] []  <nil> 0xc82002c010 0xc82002c018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} create -megabytes 20000 -type SPARSEBUNDLE /Users/raffaele/.docker/machine/machines/atomotic/root-volume
(atomotic) created: /Users/raffaele/.docker/machine/machines/atomotic/root-volume.sparsebundle
(atomotic) Creating SSH key...
(atomotic) Fix file permission...
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/boot2docker.iso
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/config.json
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/id_rsa
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/id_rsa.pub
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/initrd.img
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/root-volume.sparsebundle
(atomotic) DBG | /Users/raffaele/.docker/machine/machines/atomotic/vmlinuz64
(atomotic) Generate UUID...
(atomotic) DBG | Generated UUID: 518331EF-99AB-481E-9F89-147C845DE9A6
(atomotic) Convert UUID to MAC address...
(atomotic) DBG | Converted MAC address: ea:7:bc:13:cf:32
(atomotic) Starting atomotic...
(atomotic) DBG | [xhyve -A -U 518331EF-99AB-481E-9F89-147C845DE9A6 -c 1 -m 1024M -l com1,autopty -s 0:0,hostbridge -s 31,lpc -s 2:0,virtio-net -s 3,ahci-cd,/Users/raffaele/.docker/machine/machines/atomotic/boot2docker.iso -s 4:0,ahci-hd,/dev/rdisk3 -f kexec,/Users/raffaele/.docker/machine/machines/atomotic/vmlinuz64,/Users/raffaele/.docker/machine/machines/atomotic/initrd.img,loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 base host=boot2docker -F /Users/raffaele/.docker/machine/machines/atomotic/atomotic.pid]
(atomotic) Waiting for VM to come online...
(atomotic) DBG |
(atomotic) DBG | Not there yet 1/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG | operation not supported by device
(atomotic) DBG | xhyve: illegal option -- F
(atomotic) DBG | Usage: xhyve [-behuwxMACHPWY] [-c vcpus] [-g <gdb port>] [-l <lpc>]
(atomotic) DBG |              [-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid] -f <fw>
(atomotic) DBG |        -A: create ACPI tables
(atomotic) DBG |        -c: # cpus (default 1)
(atomotic) DBG |        -C: include guest memory in core file
(atomotic) DBG |        -e: exit on unhandled I/O access
(atomotic) DBG |        -f: firmware
(atomotic) DBG |        -g: gdb port
(atomotic) DBG |        -h: help
(atomotic) DBG |        -H: vmexit from the guest on hlt
(atomotic) DBG |        -l: LPC device configuration. Ex: -l com1,stdio -l com2,autopty -l com2,/dev/myownpty
(atomotic) DBG |        -m: memory size in MB
(atomotic) DBG |        -M: print MAC address and exit if using vmnet
(atomotic) DBG |        -p: pin 'vcpu' to 'hostcpu'
(atomotic) DBG |        -P: vmexit from the guest on pause
(atomotic) DBG |        -s: <slot,driver,configinfo> PCI slot config
(atomotic) DBG |        -u: RTC keeps UTC time
(atomotic) DBG |        -U: uuid
(atomotic) DBG |        -v: show build version
(atomotic) DBG |        -w: ignore unimplemented MSRs
(atomotic) DBG |        -W: force virtio to use single-vector MSI
(atomotic) DBG |        -x: local apic is in x2APIC mode
(atomotic) DBG |        -Y: disable MPtable generation
(atomotic) DBG | exit status 1 &{0xc8200161e0} &{0xc820016210}
(atomotic) DBG |
(atomotic) DBG | Not there yet 2/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 3/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 4/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 5/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 6/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 7/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 8/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 9/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 10/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 11/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 12/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 13/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 14/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 15/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 16/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 17/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 18/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 19/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 20/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 21/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 22/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 23/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 24/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 25/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 26/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 27/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 28/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 29/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 30/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 31/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 32/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 33/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 34/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 35/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 36/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 37/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 38/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 39/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 40/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 41/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 42/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 43/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 44/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 45/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 46/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 47/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 48/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 49/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 50/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 51/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 52/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 53/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 54/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 55/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 56/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 57/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 58/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 59/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
(atomotic) DBG |
(atomotic) DBG | Not there yet 60/60, error: IP not found for MAC ea:7:bc:13:cf:32 in DHCP leases
open : no such file or directory
notifying bugsnag: [Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting]
Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

Please declare a license

I am not able to find the license under which you are releasing this (very helpful) code. Could you please add one?

For background, this may prevent some companies with a strong IP and compliance group from being able to use or contribute to this project.

Could not create vmnet interface, permission denied or no entitlement?

I am using the brew installed version of the xhyve driver, running the following command to create an xhyve machine.

docker-machine create --driver xhyve --xhyve-experimental-nfs-share test

And getting the following output (and error):

docker-machine create --driver xhyve --xhyve-experimental-nfs-share test

Running pre-create checks...
Creating machine...
(test) Copying /Users/josh/.docker/machine/cache/boot2docker.iso to /Users/josh/.docker/machine/machines/test/boot2docker.iso...
(test) Creating VM...
(test) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(test) /dev/disk2                                           /Users/josh/.docker/machine/machines/test/b2d-image
(test) "disk2" unmounted.
(test) "disk2" ejected.
(test) Generating 20000MB disk image...
(test) created: /Users/josh/.docker/machine/machines/test/root-volume.sparsebundle
(test) Creating SSH key...
(test) Fix file permission...
(test) Generate UUID...
(test) Convert UUID to MAC address...
(test) Starting test...
(test) Waiting for VM to come online...
(test) Waiting on a pseudo-terminal to be ready... virtio_net: Could not create vmnet interface, permission denied or no entitlement?

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

When I try to bring it up again after creating.

Starting "test"...
(test) Waiting for VM to come online...
(test) Waiting on a pseudo-terminal to be ready... done
(test) Hook up your terminal emulator to /dev/ttys010 in order to connect to your VM
Machine didn't return an IP after 120 seconds, aborting

I am using binaries from the latest Docker toolbox release, docker-machine version 0.5.6, build 61388e9 with VBox 5.0.12.

make docker-machine-driver-xhyve go gettable

Building with the makefile might be useful for development, but you don't always need one for Go and being able to install the driver binary by just running:

go get github.com/zchee/docker-machine-driver-xhyve

makes it easier to get started and is more idiomatic Go.

IP not found for MAC

Got a problem here just like #9
But I got no idea how to solve it.

I cannot create a vm.

I run

$ brew install xhyve docker docker-machine docker-compose docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ docker-machine --debug create dockerhost --driver xhyve

Then it goes

`Docker Machine Version:  0.5.6, build 61388e9
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:52104
() 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
() DBG | operation not supported by device
Plugin server listening at address 127.0.0.1:52108
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(dockerhost) Calling .GetMachineName
(dockerhost) Calling .DriverName
(dockerhost) Calling .GetCreateFlags
(dockerhost) Calling .SetConfigFromFlags
Running pre-create checks...
(dockerhost) Calling .PreCreateCheck
(dockerhost) DBG | ===== Docker Machine xhyve Driver Version 0.2.2 (Homebrew) =====
(dockerhost) DBG |
(dockerhost) Calling .GetConfigRaw
Creating machine...
(dockerhost) Calling .Create
(dockerhost) DBG | local Boot2Docker ISO version:  v1.9.1
(dockerhost) Copying /Users/vcarus/.docker/machine/cache/boot2docker.iso to /Users/vcarus/.docker/machine/machines/dockerhost/boot2docker.iso...
(dockerhost) DBG | Mounting boot2docker.iso
(dockerhost) Creating VM...
(dockerhost) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(dockerhost) DBG | executing: &{/usr/bin/hdiutil [hdiutil attach /Users/vcarus/.docker/machine/machines/dockerhost/boot2docker.iso -mountpoint /Users/vcarus/.docker/machine/machines/dockerhost/b2d-image] []  <nil> 0xc820036010 0xc820036018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} attach /Users/vcarus/.docker/machine/machines/dockerhost/boot2docker.iso -mountpoint /Users/vcarus/.docker/machine/machines/dockerhost/b2d-image
(dockerhost) /dev/disk9                                             /Users/vcarus/.docker/machine/machines/dockerhost/b2d-image
(dockerhost) DBG | Extracting vmlinuz64 into /Users/vcarus/.docker/machine/machines/dockerhost
(dockerhost) DBG | Extracting initrd.img into /Users/vcarus/.docker/machine/machines/dockerhost
(dockerhost) DBG | Unmounting boot2docker.iso
(dockerhost) DBG | executing: &{/usr/bin/hdiutil [hdiutil detach /Users/vcarus/.docker/machine/machines/dockerhost/b2d-image] []  <nil> 0xc820036010 0xc820036018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} detach /Users/vcarus/.docker/machine/machines/dockerhost/b2d-image
(dockerhost) "disk9" unmounted.
(dockerhost) "disk9" ejected.
(dockerhost) Generating 20000MB disk image...
(dockerhost) DBG | executing: &{/usr/bin/hdiutil [hdiutil create -megabytes 20000 -type SPARSEBUNDLE /Users/vcarus/.docker/machine/machines/dockerhost/root-volume] []  <nil> 0xc820036010 0xc820036018 [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>} create -megabytes 20000 -type SPARSEBUNDLE /Users/vcarus/.docker/machine/machines/dockerhost/root-volume
(dockerhost) created: /Users/vcarus/.docker/machine/machines/dockerhost/root-volume.sparsebundle
(dockerhost) Creating SSH key...
(dockerhost) Fix file permission...
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/boot2docker.iso
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/config.json
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/id_rsa
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/id_rsa.pub
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/initrd.img
(dockerhost) Generate UUID...
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/root-volume.sparsebundle
(dockerhost) DBG | /Users/vcarus/.docker/machine/machines/dockerhost/vmlinuz64
(dockerhost) DBG | Generated UUID: A1E87D00-0802-46B0-87AC-F2D499AFAAD0
(dockerhost) Convert UUID to MAC address...
(dockerhost) DBG | Converted MAC address: a6:2e:4b:e:cf:32
(dockerhost) Starting dockerhost...
(dockerhost) DBG | [xhyve -A -U A1E87D00-0802-46B0-87AC-F2D499AFAAD0 -c 1 -m 1024M -l com1,autopty -s 0:0,hostbridge -s 31,lpc -s 2:0,virtio-net -s 3,ahci-cd,/Users/vcarus/.docker/machine/machines/dockerhost/boot2docker.iso -s 4:0,ahci-hd,/dev/rdisk9 -f kexec,/Users/vcarus/.docker/machine/machines/dockerhost/vmlinuz64,/Users/vcarus/.docker/machine/machines/dockerhost/initrd.img,loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10 base host=boot2docker -F /Users/vcarus/.docker/machine/machines/dockerhost/dockerhost.pid]
(dockerhost) Waiting for VM to come online...
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 1/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG | operation not supported by device
(dockerhost) Waiting on a pseudo-terminal to be ready... done
(dockerhost) Hook up your terminal emulator to /dev/ttys001 in order to connect to your VM
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 2/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 3/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG | rdmsr to register 0x570 on vcpu 0
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 4/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 5/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 6/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 7/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 8/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 9/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 10/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 11/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 12/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 13/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 14/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 15/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 16/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 17/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 18/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 19/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 20/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 21/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 22/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 23/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 24/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 25/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 26/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 27/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 28/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 29/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 30/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 31/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 32/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 33/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 34/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 35/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 36/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 37/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 38/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 39/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 40/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 41/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 42/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 43/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 44/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 45/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 46/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 47/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 48/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 49/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 50/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 51/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 52/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 53/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 54/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 55/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 56/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 57/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 58/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 59/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
(dockerhost) DBG |
(dockerhost) DBG | Not there yet 60/60, error: IP not found for MAC a6:2e:4b:e:cf:32 in DHCP leases
Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

Here is my environment.

$ system_profiler SPHardwareDataType
Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro11,2
      Processor Name: Intel Core i7
      Processor Speed: 2.2 GHz
      Number of Processors: 1
      Total Number of Cores: 4
      L2 Cache (per Core): 256 KB
      L3 Cache: 6 MB
      Memory: 16 GB
      Boot ROM Version: MBP112.0138.B16
      SMC Version (system): 2.18f15`
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.11.4
BuildVersion:   15E33e

How could I fix it? Thx.

nfs share permissions problem

I followed your instructions for creating a vm and using the experimental nfs share. The issue I have hit is that inside the vm/containers the share doesn't have permissions to write (ie create new folders and files).

Any suggestions?

If this is a bug I am happy to try to fix it.

I really like your project and am happy to contribute to your project if you can give me a quick walkthrough your code. Will help with other issues being reported.

Thanks.

Issue booting, "open: no such file or directory"

(default) Generate UUID...
(default) DBG | Generated UUID: ACB20647-A8F7-45E4-8F52-3B30068D4F62
(default) Convert UUID to MAC address...
open : no such file or directory
notifying bugsnag: [Error in driver during machine creation: exit status 2]
Error creating machine: Error in driver during machine creation: exit status 2

I think it may be related to the fact I emptied /var/db/dhcpd_leases

The file exists but now has no content.

The docs confused me a little :( I did this because when I rebooted my machine, it wouldn't start xhyve - it would just hang and the process would exit/timeout

Fatal error when building from source due to missing lib9p.h

When building from source, starting from these commands:

export GO15VENDOREXPERIMENT=1  
go get -u github.com/zchee/docker-machine-driver-xhyve 

Setup fails here:

Developer/code/Go/src/github.com/zchee/docker-machine-driver-xhyve/vendor/github.com/hooklift/xhyve/pci_virtio_9p.c:49:10: fatal error: 
      'lib9p.h' file not found

"Driver xhyve not found" after installing docker-machine-driver-xhyve via brew on OS X

I've run following commands to install docker-machine-driver-xhyve on OS X 10.11.3:

$ brew install docker-machine-driver-xhyve

$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

Installation was successful, /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve binary is present and upon running it directly returns message that seems to indicate it is executable and working:

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)

The problem occurred when running "docker-machine create":

  • docker-machine -D create --driver xhyve xhyve-test
  • docker-machine -D create --driver xhyve default

both commands returned same error:
Driver xhyve not found

I've also tried adding /usr/local/opt/docker-machine-driver-xhyve/bin to PATH, but this solved nothing.

Please help.

Build issue with docker v1.10

Image build dies with error immediately following the MAINTAINER line using docker v1.10.

Sample Dockerfile:

FROM debian:wheezy

MAINTAINER me
Sending build context to Docker daemon 1.783 MB
Step 1 : FROM debian:wheezy
 ---> 48304f60c1b9
Step 2 : MAINTAINER me
network  not found

invalid flag argument in current master

I've been trying for a while to get this working, but it fails to find the -F flag (introduced in an unmerged PR against xhyve):

$ docker-machine -D create -d xhyve xhyve-dev
...
(xhyve-dev) DBG | operation not supported by device
(xhyve-dev) DBG | xhyve: illegal option -- F
(xhyve-dev) DBG | Usage: xhyve [-behuwxMACHPWY] [-c vcpus] [-g <gdb port>] [-l <lpc>]
(xhyve-dev) DBG |              [-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid] -f <fw>
...

The full output: debug.txt

Occasionally, hangs at get ip

When xhyve vm MAC Address is,

22:f0:9d:6:cf:32

but searched,

22:f:9d:6:cf:32

Need to be trimmed only 0 in the one's place.

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

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?

Compact disk image size

Hi,
I'm sorry if these are stupid questions but I'm new to xhyve (and hyve in general). I decided to try this driver as I wanted to avoid VirtualBox overhead in default boot2docker installation.

How can I localise the disk image used by virtual machine created with docker-machine create --driver xhyve docker command? Can I compact the disk space so the vm will returned unused disk space to the host system?

unrecognized import path "libguestfs.org/guestfs"

Hi,
thank you for this great work.
I have a an issue when trying to compile docker-machine-xhyve
When trying to

go get  github.com/zchee/docker-machine-xhyve

I have the following error:

package libguestfs.org/guestfs: unrecognized import path "libguestfs.org/guestfs"

despite I ran previously and successfully:

 brew install libguestfs --with-go --devel --env=std

Might want to re-release a binary

Hey @zchee, we accidentally introduced some regressions in API in latest versions of Machine. I think you might want to re-compile and re-release the binary for this. Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.