在使用Vagrant是,有三种联网方式。
修改其他box的联网方式为public_network后,重新启动机器,出现红字错误:
Vagrant attempted to execute the capability 'configure_networks' on the detect guest OS 'linux', but the guest doesn't support that capability.
虚拟机可以继续运行,但是网络没有配置好。 查找网络,
https://github.com/mitchellh/vagrant/issues/6426 有两个方法,采用下面的方法就可以正常配置:
config.vm.network "public_network", type: "dhcp", auto_config: false
这里输入代码
本文介绍了在使用Vagrant时遇到的公共网络配置问题及解决方法。当尝试将虚拟机的联网方式更改为public_network时,可能会遇到不支持该功能的问题。文章提供了具体的配置指令,并附上了有效的解决方案。

1601

被折叠的 条评论
为什么被折叠?



