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

IP not found for MAC

Open vcarus opened this issue 9 years ago • 47 comments

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.

vcarus avatar Jan 29 '16 10:01 vcarus

@vcarus Thanks issue :) I small fix your comment. sorry.

and, I will investigate the cause from now. Please wait a little :)

zchee avatar Jan 29 '16 10:01 zchee

Thanks for the comment. I`m working on it just now for the bad markdown.

Still here :)

vcarus avatar Jan 29 '16 10:01 vcarus

@vcarus I think your displayed,

rdmsr to register 0x570 on vcpu 0

This means that xhyve is launch properly. So the cause does not seem to match the contents of the /var/db/dhcpd_leases.

Could you check whether you have a a6:2e:4b:e:cf:32 in /var/db/dhcpd_leases?

zchee avatar Jan 29 '16 10:01 zchee

@vcarus FYI, normal /var/db/dhcpd_leases contents,

$ cat /var/db/dhcpd_leases

{
        name=boot2docker
        ip_address=192.168.64.2
        hw_address=1,de:5f:75:68:cf:32
        identifier=1,de:5f:75:68:cf:32
        lease=0x56ab0fb6
}
{
        name=boot2docker
        ip_address=192.168.64.10
        hw_address=1,da:bf:6a:77:cf:32
        identifier=1,da:bf:6a:77:cf:32
        lease=0x56aa386a
}
{
        name=boot2docker
        ip_address=192.168.64.9
        hw_address=1,ea:2:b7:57:cf:32
        identifier=1,ea:2:b7:57:cf:32
        lease=0x56aa327c
}
{
        name=boot2docker
        ip_address=192.168.64.8
        hw_address=1,3e:da:82:1d:cf:32
        identifier=1,3e:da:82:1d:cf:32
        lease=0x56aa3193
}
{
        name=boot2docker
        ip_address=192.168.64.7
        hw_address=1,2a:6d:b:2b:cf:32
        identifier=1,2a:6d:b:2b:cf:32
        lease=0x56aa20ba
}
{
        name=boot2docker
        ip_address=192.168.64.6
        hw_address=1,4e:a7:12:3a:cf:32
        identifier=1,4e:a7:12:3a:cf:32
        lease=0x56aa201e
}
{
        name=boot2docker
        ip_address=192.168.64.5
        hw_address=1,8a:ae:d:7f:cf:32
        identifier=1,8a:ae:d:7f:cf:32
        lease=0x56aa1dab
}
{
        name=boot2docker
        ip_address=192.168.64.4
        hw_address=1,a:ce:f2:5d:cf:32
        identifier=1,a:ce:f2:5d:cf:32
        lease=0x56aa1d0a
}
{
        name=boot2docker
        ip_address=192.168.64.3
        hw_address=1,1a:cd:41:7e:cf:32
        identifier=1,1a:cd:41:7e:cf:32
        lease=0x56aa0174
}

zchee avatar Jan 29 '16 10:01 zchee

nope, it just like this

$ cat /var/db/dhcpd_leases { name=android-2600b9cc922c07dc ip_address=192.168.2.3 hw_address=1,30:75:12:7c:8c:cc identifier=1,30:75:12:7c:8c:cc lease=0x55ff919b } { name=powerdeMBP ip_address=192.168.2.2 hw_address=1,34:36:3b:c6:77:74 identifier=1,34:36:3b:c6:77:74 lease=0x55f9f492 }

vcarus avatar Jan 29 '16 10:01 vcarus

@vcarus Why wonder not.. :(

Could you try to make a few times VM, or If you have a Go environment, would you rebuilding the binary by make?

e.g.

$ go get github.com/zchee/docker-machine-driver-xhyve
$ cd $GOPATH/src/github.com/zchee/docker-machine-driver-xhyve
$ make
$ make install

zchee avatar Jan 29 '16 10:01 zchee

@vcarus I missed. Reopen.

zchee avatar Jan 29 '16 10:01 zchee

Should I rebuild /var/db/dhcpd_leases or somehow? It seems strange because powerdeMBP is no my Mac`s name, just like one of my friends.

I got docker-machine-driver-xhyve by homebrew and GO environment is OK. And I try to make a few times VM.

So I should try to install on go get now?

vcarus avatar Jan 29 '16 10:01 vcarus

@vcarus Yes, I am very interested in what is android-2600b9cc922c07dc and powerdeMBP. Why do you have any clue whether there is it?

So I should try to install on go get now?

If you install by Homebrew, it binary is 0.2.2 stable. I fixed some a bug after release 0.2.2.

zchee avatar Jan 29 '16 11:01 zchee

android-2600b9cc922c07dc and powerdeMBP seems like one of my Sony phone and one Mac of my friend.

I just uninstall homebrew version of docker-machine-driver-xhyve. And rebuilding the binary by make. Same problem here.

(dockerhost) DBG | Not there yet 60/60, error: IP not found for MAC aa:d7:ab:2d:cf:32 in DHCP leases Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

vcarus avatar Jan 29 '16 11:01 vcarus

@vcarus Hmm... Mac OS X might have been used to sharing folder(?) the /var/db/dhcpd_leases.

Could you try backup and delete /var/db/dhcpd_leases, and re-create VM? e.g.

$ sudo mv /var/db/dhcpd_leases{,.bak}
# Exists check
$ ls /var/db/dhcpd_leases.bak
$ sudo touch /var/db/dhcpd_leases
$ docker-machine -D create --driver xhyve dockerhost

zchee avatar Jan 29 '16 11:01 zchee

Thanks, I will try it later. Time to get supper :)

vcarus avatar Jan 29 '16 11:01 vcarus

@vcarus Have a good time at a supper :)

zchee avatar Jan 29 '16 11:01 zchee

@zchee Sorry to have a feedback so late. I try to delete /var/db/dhcpd_leases and re-create VM just like you told. Nothing help.

(dockerhost) DBG | Not there yet 60/60, error: IP not found for MAC e6:b7:61:25:cf:32 in DHCP leases Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

Same here.

:(

vcarus avatar Jan 29 '16 19:01 vcarus

@vcarus What is the result of this command that's now in the state?

$ cat /var/db/dhcpd_leases

zchee avatar Jan 29 '16 19:01 zchee

empty here.

vcarus avatar Jan 29 '16 20:01 vcarus

@vcarus Hmm... This case may be the same as https://github.com/zchee/docker-machine-driver-xhyve/issues/9 but, I do not know yet how to solve :(

BTW, Can you start a successful xhyve? e.g.

git clone https://github.com/mist64/xhyve
cd xhyve
make

and, please edit xhyverun.sh to this.

#!/bin/sh

# Linux
KERNEL="test/vmlinuz"
INITRD="test/initrd.gz"
CMDLINE="earlyprintk=serial console=ttyS0"

MEM="-m 4G"
SMP="-c 4"
NET="-s 2:0,virtio-net"
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
#IMG_HDD="-s 4,virtio-blk,/somepath/somefile.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
ACPI="-A"
#UUID="-U deadbeef-dead-dead-dead-deaddeafbeef"

# Linux
build/xhyve $ACPI $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $UUID -f kexec,$KERNEL,$INITRD,"$CMDLINE"

This script is launch tiny core linux with vmnet.framework shared network.

zchee avatar Jan 29 '16 20:01 zchee

(�- //\ Core is distributed with ABSOLUTELY NO WARRANTY. v_/_ www.tinycorelinux.com

tc@box:~$ Switched to clocksource tsc

Seems xhyve works OK.

vcarus avatar Jan 29 '16 20:01 vcarus

@vcarus OK.

Could you post result of this commands?

In tiny core linux

ifconfig
ping google.com

In host (OS X) with other terminal. It remains running the tiny core linux.

cat /var/db/dhcpd_leases

If result of ifconfig is

eth0      Link encap:Ethernet  HWaddr 82:FE:20:2A:CF:32
          inet addr:192.168.64.11  Bcast:192.168.64.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:881 (881.0 B)  TX bytes:342 (342.0 B)

There should be the IP is in /var/db/dhcpd_leases.

{
        name=box
        ip_address=192.168.64.11
        hw_address=1,82:fe:20:2a:cf:32
        identifier=1,82:fe:20:2a:cf:32
        lease=0x56ad1b67
}

zchee avatar Jan 29 '16 20:01 zchee

Sorry google is blocked right here in China, I ping Baidu instead.

ifconfig eth0 Link encap:Ethernet HWaddr 8A:B1:92:49:CF:32 inet addr:192.168.64.3 Bcast:192.168.64.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:20 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3834 (3.7 KiB) TX bytes:8550 (8.3 KiB)

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tc@box:~$ ping baidu.com PING baidu.com (180.149.132.47): 56 data bytes 64 bytes from 180.149.132.47: seq=0 ttl=46 time=52.792 ms 64 bytes from 180.149.132.47: seq=1 ttl=46 time=52.665 ms 64 bytes from 180.149.132.47: seq=2 ttl=46 time=52.056 ms 64 bytes from 180.149.132.47: seq=3 ttl=46 time=52.994 ms 64 bytes from 180.149.132.47: seq=4 ttl=46 time=51.391 ms ^C --- baidu.com ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 51.391/52.379/52.994 ms

On my host OS

$ cat /var/db/dhcpd_leases { name=box ip_address=192.168.64.3 hw_address=1,8a:b1:92:49:cf:32 identifier=1,8a:b1:92:49:cf:32 lease=0x56ad1bf2 } { name=boot2docker ip_address=192.168.64.2 hw_address=1,e6:b7:61:25:cf:32 identifier=1,e6:b7:61:25:cf:32 lease=0x56ad18fd }

vcarus avatar Jan 29 '16 20:01 vcarus

@vcarus Oh, Why do you have it?

{
name=boot2docker
ip_address=192.168.64.2
hw_address=1,e6:b7:61:25:cf:32
identifier=1,e6:b7:61:25:cf:32
lease=0x56ad18fd
}

It maybe successful launch docker-machine-driver-xhyve

(dockerhost) DBG | Not there yet 60/60, error: IP not found for MAC e6:b7:61:25:cf:32 in DHCP leases Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

zchee avatar Jan 29 '16 20:01 zchee

xhyve goes OK. I am not so sure about how boot2docker works. I have checked homebrew, boot2docker not installed. VM still cannot be created, strange things...

vcarus avatar Jan 29 '16 21:01 vcarus

@vcarus Hmm...

However, If there is name=boot2docker in /var/db/dhcpd_leases, docker-machine-driver-xhyve seems certainly is writing to /var/db/dhcpd_leases.

Other causes, it does not be able to parse the /var/db/dhcpd_leases. but we will succeed, it is strange...

for ((i = 0; i < 100; i++)); do ( echo "count $i" && cat /var/db/dhcpd_leases && sleep ); done; It is a simple monitoring /var/db/dhcpd_leases command. 100 repeat. Could you create VM with the run this command in another terminal window?

zchee avatar Jan 29 '16 22:01 zchee

@vcarus If you do not get the IP when result of cat command has changed , it's docker-machine-driver-xhyve bug.

zchee avatar Jan 29 '16 22:01 zchee

@zchee Maybe you missed 1 after sleep? for ((i = 0; i < 100; i++)); do ( echo "count $i" && cat /var/db/dhcpd_leases && sleep 1); done;

I delete /var/db/dhcpd_leases, and re-create VM again with the script running in another terminal window. Sorry to find the result of cat command never changed. /var/db/dhcpd_leases keep empty during the creating.

vcarus avatar Jan 30 '16 02:01 vcarus

@vcarus Hmm. Why wonder was able to create one-time :(

I will do my best to your successful launching xhyve. but, sorry, information is too little. So, If you have a time, Do you take a screen cast that two of the window is displaying?

zchee avatar Jan 30 '16 02:01 zchee

I will be away for one day to a meeting. Just leave my Mac for one second... Maybe I will try later. Have a good day :)

vcarus avatar Jan 30 '16 02:01 vcarus

@vcarus OK :) I look forward of your screencast.

zchee avatar Jan 30 '16 02:01 zchee

Have this same issue

stonevil avatar Feb 01 '16 01:02 stonevil

https://asciinema.org/a/5bk3emo1o9qfl7t07nq9632qj

Sorry for coming so late...

vcarus avatar Feb 01 '16 03:02 vcarus