pecigonzalo / docker-machine-vmwareworkstation

VMWare Workstation driver for Docker Machine https://github.com/docker/machine
Apache License 2.0
363 stars 67 forks source link

Network adaptor not found: B2D 18.09 , Vmware W. Pro 15 #66

Open MartinSGill opened 5 years ago

MartinSGill commented 5 years ago

Docker Machine Version: 0.14.0, build 89b8332 Boot2Docker: v18.09.0 VMWare: Workstation Pro 15 vmrun version 1.17.0 build-10737736

Steps to Reproduce:

docker-machine -D create --driver=vmwareworkstation vmware

Issue:

Timeout waiting for IP address

(vmware) DBG | MAC address in VMX: 00:0c:29:53:00:37
(vmware) DBG | Not there yet 58/60, error: IP not found for MAC 00:0c:29:53:00:37 in DHCP leases
(vmware) DBG | MAC address in VMX: 00:0c:29:53:00:37
(vmware) DBG | Not there yet 59/60, error: IP not found for MAC 00:0c:29:53:00:37 in DHCP leases

Root Cause:

NIC is missing:

image

Notes

Editing the generated VMX file and setting

ethernet0.virtualDev = "e1000"

Allows the machine to start and detect the network card.

StefanScherer commented 5 years ago

Seems related to https://github.com/boot2docker/boot2docker/issues/1345 I can see the same problem with docker-machine vmwarefusion driver.

tekook commented 5 years ago

I can confirm this. Broke a leg trying to figure out why docker-machine stopped working. Booted boot2docker.iso in a newly created vm in vmware workstation pro 15, and it worked fine.

VMware itself defaults the nic for Linux-Based VMs in VMware is always to e1000. Should we update docker-machine-vmwareworkstation to e1000?

flykarry commented 5 years ago

@tekook Can you help me compile your fork? I can't work with the go environment. and I've been trying for 2 days.... my email gja19263@163.com thanks

tekook commented 5 years ago

@tekook Can you help me compile your fork? I can't work with the go environment. and I've been trying for 2 days.... my email gja19263@163.com thanks

Compile the images, but did not seem to help.

Currently trying the new beta of boot2docker, see: https://github.com/boot2docker/boot2docker/issues/1340#issuecomment-444273243

pecigonzalo commented 4 years ago

Ill update this to e1000, probably a change in updates VMWares