Vagrant 不会说盒子不存在
Vagrant won't says box doesn't exist
我尝试建立一个 vagrant 环境 运行。它之前一直完美运行。
我去我的环境做vagrant up。
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
盒子由两部分组成:
- 姓名
- 提供商(可以是 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
然后一切正常
我尝试建立一个 vagrant 环境 运行。它之前一直完美运行。
我去我的环境做vagrant up。 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
盒子由两部分组成:
- 姓名
- 提供商(可以是 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
然后一切正常