Vagrant没有说盒子不存在

时间:2016-02-25 13:10:55

标签: vagrant fedora-23

我试图让一个流浪汉的环境运转起来。它以前完美无缺。

我去了我的环境并做了流浪汉。 Vagrant无法找到盒子并前往Hashicorp寻找它,即使它是在本地注册的。

[<username>@localhost sugarcrm-vagrant-base]$ vagrant version
Installed Version: 1.8.1
Latest Version: 1.8.1

You're running an up-to-date version of Vagrant!

[<username>@localhost sugarcrm-vagrant-base]$ vagrant box list
<companyname>/opensuse132-sugarcrm75-base (virtualbox, 0)

[<username>@localhost sugarcrm-vagrant-base]$ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box '<companyname>/opensuse132-sugarcrm75-base' could not be found. Attempting to find and install...
    default: Box Provider: libvirt
    default: Box Version: >= 0
The box '<companyname>/opensuse132-sugarcrm75-base' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/<companyname>/opensuse132-sugarcrm75-base"]
Error: The requested URL returned error: 404 Not Found

1 个答案:

答案 0 :(得分:0)

这个盒子由两件事组成:

  • 名称
  • 提供者(可以是VirtualBox,VMWare,AWS ......)

当你运行vagrant up时,即使你没有指定提供者,它也认为它是libvirt,那就是流浪汉告诉你的Bringing machine 'default' up with 'libvirt' provider...

您可能已将env变量VAGRANT_DEFAULT_PROVIDER设置为libvirt,因为默认情况下virtualbox是默认提供程序

但是当你查看你的盒子列表时,你只能得到虚拟机提供者的机器

运行vagrant up --provider=virtualbox,然后一切正常

相关问题