Vagrant的一个BUG - 不支持'change_host_name'
==> master: Setting hostname... Vagrant attempted to execute the capability 'change_host_name' on the detect guest OS 'linux', but the guest doesn't support that capability. This capability is required for your configuration of Vagrant. Please either reconfigure Vagrant to avoid this capability or fix the issue by creating the capability.
使用的BOX 【Ubuntu precise 64 VirtualBox】:
http://files.vagrantup.com/precise64.box
Vagrant1.8.5
VirtualBox5.1.4
会发生无法通过Vagrantfile修改hostname的问题。
解决方案:
https://github.com/mitchellh/vagrant/issues/7625
根据上面的回复编辑生成/etc/os-release,重新vagrant package 生成新的box,使用这个box即可。
--------------
路漫漫其修远兮
路漫漫其修远兮
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步