0

我试图让一个流浪的环境启动并运行。它以前完美无缺。

我去我的环境做流浪汉。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
4

1 回答 1

0

盒子由两部分组成:

  • 名字
  • 提供者(可以是 VirtualBox、VMWare、AWS ...)

当你运行时,vagrant up即使你没有指定它假定它是 libvirt 的提供者,这就是 vagrant 告诉你的Bringing machine 'default' up with 'libvirt' provider...

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

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

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

于 2016-02-25T13:23:29.737 回答