Found that the port forwarding in VMWare Fusion is managed in the file: /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
It appears that the forwarded ports get written to this file, but are never removed. There's a section: # Use these with care - anyone can enter into your VM through these... # The format and example are as follows: #<external port number> = <VM's IP address>:<VM's port number> #8080 = 172.16.3.128:80 And the vagrant port forwarding gets written here as # VAGRANT-BEGIN: /Users/....../.vagrant/machines/default/vmware_fusion/8155631a-1c29-42a1-9a4f-0567011f98bd/oel66.vmx 2222 = 192.168.225.148:22 # VAGRANT-END: /Users/......../.vagrant/machines/default/vmware_fusion/8155631a-1c29-42a1-9a4f-0567011f98bd/oel66.vmx After stopping and starting the vagrant box, the entry for 2222 gets moved out of the VAGRANT-BEGIN/END section, and is left behind. Meanwhile, a new entry is added to the VAGRANT-BEGIN/END section, since vagrant fixes the port collisions. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4b90e98a-6c73-421e-8e72-205741cc59b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
