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 vagrant up

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?

+3


source to share


1 answer


Apparently my office just changed my network configuration. Changing 10.10.10.10. to another block (like 10.0.0.100), it worked. Unfortunately.



+4


source







All Articles