3
我在多臺機器上使用vagrant,它曾經正常工作,但之後它不再工作。Vagrant :: Errors :: NetworkCollision:指定的主機網絡與非主機網絡衝突
我Vagrantfile的一部分定義網絡:
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
這是一個STANDAR配置和我只有該VM。但是,當我試圖vagrant up
,它顯示錯誤:
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
如何解決呢?