【问题标题】:Vagrant was unable to communicate with the guest machineVagrant 无法与来宾机器通信
【发布时间】:2013-10-29 15:58:35
【问题描述】:

我在 Ubuntu 12.04 上,我的 Vagranfile 看起来像这样:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

config.vm.box = "base"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"

config.vm.network :forwarded_port, guest: 80, host: 8080

config.vm.provision :puppet do |puppet|
  puppet.manifests_path = "puppet/manifests"
  puppet.module_path = "puppet/modules"
  puppet.manifest_file  = "init.pp"
  puppet.options="--verbose --debug"
end

end

这应该运行良好,相同的配置在我的 macbook 中运行正常。 我使用 Vagrant 1.3.5 和 VirtualBox 4.1.12(但在我尝试使用 4.2.18 之前)

我不知道如何解决这个问题,我已经卡了好几天了。任何帮助都会很棒。

【问题讨论】:

  • 您看到了什么类型的错误?你坚持什么/什么不起作用?

标签: virtual-machine virtualbox vagrant


【解决方案1】:
  1. 确保您拥有正确版本的 GuestAdditions。或者只是使用vagrant-vbguest plugin 它将为您检查并安装它。事实上,如果你使用 VirtualBox,它是必须有插件的。
  2. 尝试增加config.ssh.timeout(默认:5 分钟)

这并不是真正的答案,而是可能的解决方法。 vagrant 上有一个open issue

【讨论】:

    【解决方案2】:

    这是一个 Vagrant 错误,在下一个版本中应该是 fixed

    到目前为止,只需确保 ~/vagrant.d/insecure_private_key 文件由启动 Vagrant 的同一用户拥有,并且拥有权限 600,这应该会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-26
      • 1970-01-01
      • 2018-08-29
      • 1970-01-01
      • 2017-09-21
      • 1970-01-01
      相关资源
      最近更新 更多