-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port collision detection broken under VMware Fusion 8.5.1 #7948
Comments
I'm seeing the exact same issue here as well. |
Same here as well |
Me too. Preventing me from working, currently. |
I managed to recover from this by downloading VMWare Fusion 8.5.0 and installing it over the top of 8.5.1, then nuking the .vagrant directory from my project. Upon |
Actually, I had to completely remove VMWare, including all the files mentioned here: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017838 Then I rebooted, installed 8.5.0 cleanly (needed to enter my license code etc again) and finally set Vagrant back up. Things are finally back to a working condition. |
If anyone has this problem and do not mind countless entries in VMware's The problem seems to be that either Vagrant or VMware couldn't properly cleaned up the port forwarding entries in |
Not only nat.conf, look at your vmnet8/../networking , lots of add_nat_portfwd items here too. |
Just for reference as I'm trying to get a reproduction of this behavior locally: did this occur after an upgrade to either fusion and/or the vagrant-vmware plugin? If so, can you provide what the previous versions were prior to upgrading? Thanks! |
Hi @chrisroberts - for me, everything was working fine on Fusion 8.5.0 - I upgraded to 8.5.1 and the issues began. Blowing away Fusion entirely (plus all supporting files) then reinstalling from an 8.5.0 download and readding my licence key fixed the problem for me, so I definitely think its a change in 8.5.1 which broke it. For reference, i'm on macOS Sierra 10.12.1, and my vagrant plugin version is 4.0.11 |
Okay, great. Thanks! |
Yes, me is the same. It broke after upgrading VMware Fusion to 8.5.1. I reverted VMware Fusion to 8.5.0 and everything back to working normally. |
Still not having any luck reproducing the behavior. Currently using:
This is a fresh VM, so I'm wondering if perhaps there's other content in the section that is causing problems? Do either of your |
If it is easily reproducible, can you start with a fresh |
My |
@sirn The debug output from the first |
Adding a "Me Too" for this issue in case any data from my configuration would be useful. Same environment as everyone else having the problem (Sierra, latest Vagrant and plugin). In my case the affected machines are Laravel Homestead images that forward a bunch of standard web dev ports (22, 80, 443, 3306, and 5432). Until recently a |
Seeing this as well.
|
For anyone adding a "me too" on this issue, I need some more information to help determine what is causing the issue. Please see this comment: #7948 (comment) |
@chrisroberts sorry that it took so long, got few stuff to finish that I can't nuke my environment. Debug logs:
Networking logs (hopefully I did not commit any sensitive information here): https://github.com/sirn/vagrant-vmware-networking-logs/commits/master Also for a reference, I'm using VMware Fusion 8.5.1 Pro. |
@chrisroberts here is a log from https://gist.github.com/zienowicz/ef14d16175f6c6f1389b5541e52b2682 |
I had the same issue with VMware Fusion 8.5.1, but after upgrading to 8.5.2 it started to work again.
|
Simply upgrading to Fusion 8.5.2 didn't work for me. I also had to remove a bunch of cruft from the associated nat.conf file. There were a number of entries under Removing everything under |
Nope. Now I'm getting the dreaded "The VMware 'vmnet' devices are failing to start" message. The box is running, and the ports seem to be forwarding, but the shared folder won't mount. My nat.conf has all those (what I thought were) extraneous entries again, plus the ones clearly added by the Vagrant plugin. |
And now we're back to the port collision error (upon subsequent |
@sirn Thank you for providing all those logs! While I cannot get this behavior to reproduce on its own, I was able to identify an anomaly within your log files that I was not experiencing. On the second
Just after this, the vmnet services are started. To simulate this, I
When Now that I can reliably reproduce this, I'm working on adding some guards to prevent this behavior. |
I had temporarily given up on this and switched to a different machine so I could get work done. Circling back to this issue, I noticed that |
I had cleaned things up before and just now halted my vm, upgraded to vagrant 1.8.7 and vmware fusion pro 8.5.2 and now it's back again. The error looks different than last time though:
Debug output is here: https://gist.github.com/vdanen/95c69e4ae6844ad8f391b8ca4dc9d797 |
So theres a new version of VMWare on the horizon, is there any chance of this bug being resolved any time soon? @chrisroberts @mitchellh can we get an update? |
Thanks @stevenwaskey that solved the issue for me as well. This bug sure is annoying |
Thanks so much @stevenwaskey, this fixed the issue for me as well. What a relief. |
I am still seeing this on High Sierra with VMWare 8.5.2 - it should be reopened. Requiring manual editing of files is not an acceptable workaround, and nor is requiring an upgrade to VMWare Fusion 10.0 (and therefore also a plugin license upgrade). |
@jen20 Hi James, what version of the VMware plugin do you currently have installed? Do you have the latest version installed (currently 5.0.2)? There is no upgrade required (VMware or plugin license) to use the latest version of the plugin. The plugin license would only need to be upgraded if you are using Fusion 10. |
I still experience the issue with: |
I experience it with the same versions of VMWare and the |
Has the If your nat file is clean and you are still getting collisions, would you gist a debug run so I can take a look at the behavior. I've got a fresh macos 10.13 + fusion 8 test instance running to see if I can force a reproduction. Some debug output may help me track down a difference to force a collision state. Thanks! |
Yes, |
OK here's a new one. A box running the latest versions of everything with Fusion 10 instead of 8.5:
The second time (with debug logging) it worked though. I think it's safe to say this isn't fixed. |
@jen20 same, if I run vagrant up enough times it will work eventually. |
@chrisroberts I have a new theory here. I've now seen it fail two or three times in a row, then succeed as soon as I enable debug output. I think the additional work of debug logging is sufficient to make the race not happen. I would suggest trying faster hardware to reproduce this. |
@chrisroberts Here is a complete debug log (with only the some directory names redacted in a way which doesn't alter semantics). https://gist.github.com/jen20/6121900158a5388576c9628150b85db5 This is with Vagrant 2.0.0 rather than 2.0.1 but nothing in the change log suggests that a fix has been applied in the point release. |
The subsequent |
I can confirm that I recently upgraded my vagrant and vagrant plugins and see this issue on: Vagrant 2.0.2 running OSX 10.13.3 High Sierra with a cleared Running |
Wondering why this is closed, this is the issue that continues to give ... |
I am having the same issue using the newer vmware-desktop plugin, version 1.0.2. Clearing out nat.conf manually resolves the issue temporarily. Vagrant 2.0.3 Vagrant installation performed through the official installers and cleared out ~/.vagrant.d to start fresh. |
@davosian Would you halt/destroy all VMware VMs and follow these steps:
After this, do you still collisions occurring? Thanks! |
@chrisroberts I followed your instructions and so far I am not having any more collisions. Thanks for your support! |
1 similar comment
@chrisroberts I followed your instructions and so far I am not having any more collisions. Thanks for your support! |
I spoke too soon - getting port collisions again when running these steps:
When I then check VMWare as default provider set in my .zshrc file:
Any idea what might be causing this? |
This is still occurring for me with the new
The Vagrantfile is:
VMWare Fusion is Looks like this issue needs to be reopened. |
This actually seems to cause numerous issues, including SSH'ing into the wrong box when multi-box setups are present. For example, in the case above, I can Not really sure how to proceed at this point - I must use VMware (I need nested virtualization) but cannot fix the bugs in the provider as the source is not available. |
I can also confirm that this is still an issue in the latest vagrant-vmware-desktop plugin, running against the most recent version of VMware Fusion 10 on macOS 10.13.4 here as well. |
I can also confirm that this is still an issue. |
Still an issue for me as well. VMware Fusion 10.1.5, macOS 10.12.6, Vagrant 2.2.3, plugin vagrant-share 1.1.9, plugin vagrant-vmware-desktop 2.0.3. Is there anything else I can do to help fix this? It's quite annoying, takes me around 15 minutes to sort out every time I need to restart the VM (which, for unrelated reasons, is quite often, pretty much once a day). |
Still an issue for me too. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
Host operating system
macOS Sierra 10.12.1
Guest operating system
Ubuntu 12.04 (VMware Fusion 8.5.1)
Vagrantfile
Debug output
https://gist.github.com/sirn/b885d89d02ec1b426b91beb35a65d34f
Expected behavior
No port collision.
Actual behavior
Vagrant detected port collision.
Steps to reproduce
vagrant up
with the provided Vagrantfile, no port collision should happen in this step.vagrant halt
to shutdown the machine.vagrant up
again.In
/Library/Preferences/VMware Fusion/vmnet8/nat.conf
, this is the[incomingtcp]
section after the firstvagrant up
run (port 8080 successfully forwarded):Then the
[incomingtcp]
section after the secondvagrant up
that resulted in an error:I've tried nuking
/Library/Preferences/VMware Fusion/networking*
and/Library/Preferences/VMware Fusion/vmnet*
and re-run VMware Fusion to have it populate the configuration prior to running, but still the same result.I can also reproduce this issue in my other machine running exactly the same setup as well.
The text was updated successfully, but these errors were encountered: