【问题标题】:Vagrant box add bento/centos-7 for the VirtualBox provider fails为 VirtualBox 提供程序添加 Bento/centos-7 的 Vagrant box 失败
【发布时间】:2019-02-15 20:10:45
【问题描述】:

我正在尝试通过此命令使用 Vagrant 添加一个框

vagrant box add bento/centos-7 --provider=VirtualBox

但它失败并出现以下错误

==> box: Loading metadata for box 'bento/centos-7'
    box: URL: https://vagrantcloud.com/bento/centos-7
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.

Name: bento/centos-7
Address: https://vagrantcloud.com/bento/centos-7
Requested provider: ["VirtualBox"]

我在 Windows 10 环境中使用来自 CygWin 的 Vagrant 2.2.3

建议?

【问题讨论】:

    标签: vagrant centos7 bento


    【解决方案1】:

    我已经解决了...关于提供程序名称的错误确实很愚蠢...不是“VirtualBox”,而是“virtualbox”...

    正确的命令是

    vagrant box add bento/centos-7 --provider=virtualbox
    

    【讨论】:

      猜你喜欢
      • 2017-01-11
      • 1970-01-01
      • 2016-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-27
      • 2021-12-11
      相关资源
      最近更新 更多