【问题标题】:Vagrant on Windows 7 error: Box 'hashicorp/precise32' could not be foundWindows 7 上的 Vagrant 错误:找不到框“hashicorp/precise32”
【发布时间】:2015-05-11 14:45:07
【问题描述】:

我在 Windows 7 上安装了 Vagrant 1-7-2,但无法运行。我按照 www.vagrantup.com 上的入门说明进行操作,这看起来很简单,但对我不起作用。我收到此错误:

【问题讨论】:

  • 你的 Vagrant 版本是什么?你可以放你的 Vagrantfile 吗?
  • 我看到我的帖子的第一句话不见了:“嗨,我在 Windows 7 上安装了 Vagrant 1-7-2”:所以版本 1.7.2(最新)。如何发布 vagrant 文件?
  • 谢谢!你可以放你的 Vagrantfile 吗?并运行vagrant box list?
  • 流浪盒子列表说:没有安装盒子!使用 'vagrant box add' 添加一些 vagrant 文件:kopy.io/8Bw6f

标签: vagrant vagrant-windows


【解决方案1】:

Vagrant 1.5 之后,Vagrant Cloud 可用。所以,vagrant 在 vagrant cloud 中查找框。

这个 Vagrantfile 应该足够了:

Vagrant.configure(2) do |config|
    config.vm.box = "hashicorp/precise32"
end

不过,你可以试试:

$ vagrant box add hashicorp/precise32
$ vagrant up

【讨论】:

    【解决方案2】:

    vagrant box add hashcorp/precise32 给出这个错误:

    【讨论】:

      【解决方案3】:

      我找到了原因和解决方案:问题是 AVG Anti-virus。我暂时禁用了 AVG,但它确实“流浪”了。

      在这篇文章中找到了这个:http://www.tagwith.com/question_95494_solved-how-to-vagrant-up-with-puphpet-on-windows-7-x64-with-vagrant-1-7-2

      感谢 acfreitas 的帮助和建议!

      【讨论】:

        猜你喜欢
        • 2016-04-23
        • 1970-01-01
        • 2017-01-26
        • 1970-01-01
        • 2013-01-13
        • 2014-10-24
        • 2013-06-08
        • 2016-01-06
        • 2017-11-19
        相关资源
        最近更新 更多