Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

driver vmwarefusion: Error creating machine: IP not found for MAC ... in DHCP leases #1340

@DieterRogiest

Description

@DieterRogiest

On OS X high sierra and on the new mojave (with virtualbox and parallels uninstalled) I am not able to create with docker-machine a boot2docker (v18.09.0-beta3) vm with driver vmwarefusion (or even driver vmware) without these errors:

Macs-MacBook-Pro:~ mac$ docker-machine -D create --vmwarefusion-boot2docker-url=/Users/mac/.docker/machine/cache/boot2docker.iso --driver=vmwarefusion vmware-dev
Docker Machine Version:  0.15.0, build b48dc28d
...
(vmware-dev) DBG | executing: /Applications/VMware Fusion.app/Contents/Public/vmrun start /Users/mac/.docker/machine/machines/vmware-dev/vmware-dev.vmx nogui
(vmware-dev) Waiting for VM to come online...
(vmware-dev) DBG | executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
(vmware-dev) DBG | MAC address in VMX: 00:0c:29:47:b5:db
(vmware-dev) DBG | Trying to find IP address in configuration file: /Library/Preferences/VMware Fusion/vmnet1/dhcpd.conf
(vmware-dev) DBG | Following IPs found map[00:50:56:c0:00:01:172.16.127.1]
(vmware-dev) DBG | Trying to find IP address in configuration file: /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf
(vmware-dev) DBG | Following IPs found map[00:50:56:c0:00:08:192.168.173.1]
(vmware-dev) DBG | Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet1.leases
(vmware-dev) DBG | Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet8.leases
(vmware-dev) DBG | Not there yet 1/60, error: IP not found for MAC 00:0c:29:47:b5:db in DHCP leases
...
(vmware-dev) DBG | Not there yet 60/60, error: IP not found for MAC 00:0c:29:47:b5:db in DHCP leases
Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting
Macs-MacBook-Pro:cache mac$ docker-machine ls
NAME          ACTIVE   DRIVER         STATE     URL   SWARM   DOCKER    ERRORS
vmware-dev    *        vmwarefusion   Running                 Unknown   IP not found for MAC 00:0c:29:47:b5:db in DHCP leases

On machine-drivers/docker-machine-driver-xhyve#9 I found :
machine-drivers/docker-machine-driver-xhyve#9 (comment) (and the following comments).
I tried to to forcefully start bootpd.plist but that didn't work.
For some reason docker-machine on my macbook with driver vmwarefusion does not get or does not request an IP address for the new vm.
In the VM I am thus not able to access the internet.
Normal VM's like CentOS are able to access the internet.
The boot2docker VM's I created with virtualbox driver could access internet but virtualbox VM's do not have CPU acceleration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions