Hi.
I just wanted to report this issue. I’m a Web developer, and I use a lot of Virtual Machines (provisioned on Virtualbox by Vagrant). Since the last program update, my VMs refuse to start. I receive the following message:
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 8080 is already in use
on the host machine.
To fix this, modify your current projects Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:
config.vm.network :forwarded_port, guest: 80, host: 1234
Sometimes, Vagrant will attempt to auto-correct this for you. In this
case, Vagrant was unable to. This is usually because the guest machine
is in a state which doesn't allow modifying port forwarding.
However, no matter what port I tried to use, I kept getting the same error.
I spent hours trying to get to the bottom of this. Since it always used to work with avast! I assumed that it wasn’t the problem. After more than 10 reboots, I disabled avast!, and everything worked as expected. Re-enabling avast! broke it again.
It would be great if you could fix this, or offer a workaround that doesn’t involve disabling my protection. It could be Vagrant that’s the problem, but I’m assuming it’s Virtualbox, since vagrant is pretty much a wrapper for it.
Many thanks in advance.