Vagrant::Errors::NetworkCollision: The specified host network collides with a non-hostonly network

风流意气都作罢 提交于 2019-12-10 10:05:56

问题


I'm using vagrant with multiple machine, it's ever worked normally, but then it just doesn't work again.

My part of Vagrantfile that 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

It's a standar configuration and I only have that vm. But when I tried to 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?


回答1:


Apparently my office just changed the network configuration. By changing 10.10.10.10. to other blok (e.g 10.0.0.100), it workedagain. Sorry.



来源:https://stackoverflow.com/questions/26051239/vagranterrorsnetworkcollision-the-specified-host-network-collides-with-a-no

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!