0

我正在尝试使用带有此命令的 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

建议?

4

1 回答 1

0

我已经解决了……关于提供者名称,这是一个非常愚蠢的错误……不是“VirtualBox”,而是“virtualbox”……

正确的命令是

vagrant box add bento/centos-7 --provider=virtualbox
于 2019-02-16T15:00:55.430 回答