厨师Vagrant无法解决主持人www.getchef.com'

时间:2015-01-06 13:11:04

标签: ruby vagrant chef chef-solo vagrantfile

当我跑步时:

:$ vagrant provision

or 

:$ vagrant up

我收到了这个错误:

nisevi@localhost processor (master):$ vagrant provision
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't resolve host 'www.getchef.com'

如果有人知道这个错误的相关内容,我会非常感激。

###################################编辑

一位同事给了我这个帖子:

https://serverfault.com/questions/453185/vagrant-virtualbox-dns-10-0-2-3-not-working

作为参考,我能够找到有关mi问题的一些有趣信息。但现在我正在处理其他问题:bit.ly/1BxehY0

2 个答案:

答案 0 :(得分:0)

由于配置错误和VirtualBox安装不正确,您的虚拟机可能没有任何网络访问权限。尝试注释掉Chef配置器,然后使用vagrant ssh登录VM。看看你是否可以从内部访问互联网,如果没有,请在进行之前解决。如果您包含Vagrant文​​件的内容,我们可能会提供更多帮助。

答案 1 :(得分:0)

对于我的工作:

  • 流浪汉ssh(它投掷错误做流浪汉)。
  • 再次做了流浪汉。

就是这样。