Vagrant :: Errors :: NetworkCollision: The specified host network collides with a non-hosting network
I use vagrant with multiple machines, it has ever worked fine but then it just doesn't work again.
My part of the Vagrantfile defining the network:
config.vm.define "app" do |layer| layer.vm.provision "chef_solo", id:"chef" do |chef| ..... end # Forward port 80 so we can see our work layer.vm.network "forwarded_port", guest: 80, host: 9999 layer.vm.network "private_network", ip: "10.10.10.10" end
This is the default configuration and I only have this vm. But when i tried
it shows error:
Vagrant::Errors::NetworkCollision: The specified host network collides with a non-hostonly network! This will cause your specified IP to be inaccessible. Please change the IP or name of your host only network so that it no longer matches that of a bridged or non-hostonly network
How to fix it?
source to share