我在多台机器上使用流浪汉,它曾经正常工作,但它只是不能再工作了。
我定义网络的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
这是一个标准配置,我只有那个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
如何解决?
答案 0 :(得分:4)
显然我的办公室刚改变了网络配置。通过改变10.10.10.10。对于其他blok(例如10.0.0.100),它起作用了。遗憾。