-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add "CONFIG_VMXNET3" (vmware ethernet driver) #1350
Conversation
@tianon I've tried to build it locally, but I get the same error as Travis https://travis-ci.org/boot2docker/boot2docker/builds/454166287#L1431 |
I've built a boot2docker.iso with that vmxnet3 kernel module and tried it with VMware Fusion 11.0.1 with docker-machine 0.15.0 from Docker for Mac 18.06.1.
and with the debug output:
I can ssh into the docker machine
Inside the docker machine I can pull and run images, but VMware shared folder doesn't seem to work. I have also tried to build a 18.06.1 docker machine and have slight problems at least with shared volumes as well. I'll try the 18.09.0 boot2docker.iso tomorrow on another Mac with VMware Fusion 10.x.x and see if it works there. |
Hmm, I wonder if we need |
Tested it in Worksation Pro 15, on Win 10
Notes Logging into the VM directly I see that eth0 is present and has the expected IP.
|
a40e9a7
to
648b287
Compare
@StefanScherer any chance I could convince you to rebuild/retest the latest here? (the |
@tianon I've built the boot2docker.iso with both kernel modules, but I still see a problem creating a machine.
Then I have cross-checked with the boot2docker.iso 18.06.1 and I also get this error. I also used the community driven |
After dozens of tries with different versions of macOS, Fusion, docker-machine binaries, boot2docker.iso's I got following news.
The modified boot2docker.iso of this PR with vmxnet3 and the vmci modules can enable the shared folders without an error, but there is still no /Users folder mounted from the host in the VM. A quick check of the docker machine for the shared folder can be done with
|
I'm using the vmwarevsphere driver and get the same error as @MartinSGill
|
Addition. Testing with boot2docker v18.06.1-ce worked fine so far,
|
Thanks @lunetics this seems the same problem. Before docker-machine inserts the TLS certs it expects the Docker engine running and listening on port 2376. For some reason using the Previous versions of boot2docker.iso automatically created some certs so Docker engine was always (vmwarefusion and virtualbox) running and listening on port 2376 so the provisioning was continued. I currently struggle at the point that newer docker-machine binaries abort at
The docker-machine binary inserts a
|
OK, learn a bit from reading the source. docker-machine 0.13.0 just didn't check the return code of vmrun enableSharedFolders, so with the 18.09.0 ISO it does not abort here, but no shared folder is mounted. We have to check how to make the vmtools work and talk with VMware hypervisor. And there is a timing issue with the userdata.tar file when it gets copied into the VM and when the /etc/init.d/docker script checks for it to create some dummy certs to start docker listening on 2376 for further provisioning. |
On macOS running the mount command manually shows me that the first two always complain an error, that's why docker-machine 0.14.0 aborts here.
The third command succeeds and the shared folder is mounted in the vm when running the boot2docker version 18.06.1.
Here VMware Fusion 11.0.1 seems to behave differently to VMware Workstation 15.0.1, I could create 18.06.1 docker machines with any docker-machine.exe version. Strange. What I can see in VMware Fusion is that the share has been added to the .vmx file, so maybe we just can skip the error checks of the first two commands (again). 😅 Running the third command with the boot2docker 18.09.0 + patches ISO I get an error:
When I run the commands manually in the 18.09.0 + patches VM here is a difference to the 18.06.1 VM:
|
…e Docker startup logic for VMware
Ok, this is updated now. I have personally tested this via:
Shared folders are working, but not mounting at |
The following was in the logs: (Which explains |
Thanks @tianon I can reproduce your results. 🎉
|
@StefanScherer should we open another ticket on the wrong / missing netstat output (to detect if docker is running?) |
Nope, this fixes that too 👍
|
Closes #1340