我在多台机器上使用 vagrant,它曾经正常工作,但后来它就不再工作了。
我在 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
这是标准配置,我只有那个虚拟机。但当我尝试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
如何修复它?
显然我的办公室刚刚更改了网络配置。通过更改 10.10.10.10。对于其他块(例如 10.0.0.100),它再次工作。对不起。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)