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即可。

 

posted @ 2016-09-10 20:51  cs_liwei  阅读(497)  评论(0编辑  收藏  举报