Post Collision on 2222 with Vagrant Up

199 views
Skip to first unread message

Wes Smith

unread,
Apr 23, 2020, 3:41:36 AM4/23/20
to Vagrant
vagrant up --provision
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Checking if box 'generic/debian10' version '2.0.6' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for the VM to receive an address...
Some of the defined forwarded ports would collide with existing
forwarded ports on
VMware network devices. This can be due to
existing
Vagrant-managed VMware machines, or due to manually
configured port forwarding
with VMware. Please fix the following
port collisions
and try again:


2222


This keeps happening.  I'm editing /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf to clean any ports before running vagrant up, but nothing's working.  


Vagrant 2.2.7
vmrun version 1.17.0 build-13668589

Any ideas?  I'm at wits end here.

I've tried to delete the VM, clean the settings, restart the host machine.  Nothing's working here.

thanks!

Jeff Bonhag

unread,
Apr 24, 2020, 11:55:14 AM4/24/20
to vagra...@googlegroups.com
Hi there,

Is port 2222 in use by some other process?

Are there any entries listed in the settings file? This is located at /opt/vagrant-vmware-desktop/settings/nat.json. If so, remove them (or just delete the file and let it be recreated) and restart the vagrant-vmware-utility with launchctl.

If you are still encountering collisions, can you please open a new GitHub issue with a debug gist of a 'vagrant up --debug'. The extra logging that's been added will hopefully help determine what's causing this state.

Thanks!

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/3abe3112-be73-4884-ab77-c70d2c61c0fe%40googlegroups.com.

Wes Smith

unread,
May 11, 2020, 11:01:05 AM5/11/20
to Vagrant
Hi Jeff,
I cleaned out the nat.json file and restarted my machine.  I'm still seeing the port collision issue.  Here's the debug gist: https://gist.github.com/weshoke/3208260f3933b3ea4afb9374298499b7. Any ideas?
thanks,
wes
To unsubscribe from this group and stop receiving emails from it, send an email to vagra...@googlegroups.com.

dragon788

unread,
May 12, 2020, 12:26:47 PM5/12/20
to Vagrant
I used to use these aliases for diagnosing/correcting this issue a few years ago.


There is some kind of a race condition with the VMware provider and VMware's networking setup that causes hiccups occasionally. Resetting the network settings totally to default via one of these aliases always cleared it up for me.

Wes Smith

unread,
May 12, 2020, 2:24:40 PM5/12/20
to Vagrant
Thanks for the tips.  I regularly clean out /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf on OSX and doing so hasn't helped me at all with this situation.  Anyone else have ideas?

Sophia Castellarin

unread,
May 13, 2020, 10:15:16 AM5/13/20
to Vagrant
In addition to cleaning out /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf you may also need to clean out the port forwards defined in /Library/Preferences/VMware\ Fusion/networking. The entries of interest will take the form `add_nat_portfwd <device> <protocol> <host port> <ip> <guest port>`.

Wes Smith

unread,
May 18, 2020, 3:59:00 AM5/18/20
to Vagrant
Hi Sophia,
Clearing out that file also didn't help.  Anyone have additional thoughts as to how to figure out what's going on?
Reply all
Reply to author
Forward
0 new messages