gpt4 book ai didi

vagrant - "No usable default provider could be found for your system"使用 VirtualBox

转载 作者:行者123 更新时间:2023-12-04 13:46:24 33 4
gpt4 key购买 nike

尝试使用 VirtualBox 初始化 Vagrant 框时,我不断收到此错误:

No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run development environments. Examples are VirtualBox, VMware, Hyper-V.

The easiest solution to this message is to install VirtualBox, which is available for free on all major platforms.

If you believe you already have a provider available, make sure it is properly installed and configured. You can see more details about why a particular provider isn't working by forcing usage with vagrant up
--provider=PROVIDER
, which should give you a more specific error message for that particular provider.



经过一番搜索,似乎 Vagrant 与特定版本的 VirtualBox 存在兼容性问题。我在 MacOS High Sierra 上运行 Vagrant 2.0 和 VirtualBox 5.2。这根本不可能,还是有解决方法?

更新:这是 Vagrant 和 VirtualBox 之间的兼容性问题 - 尝试安装 VirtualBox 5.1.14 并且它适用于 Vagrant 2.0。

最佳答案

您还可以通过此补丁将其与 VirtualBox 5.2 一起使用:
https://gist.github.com/roktas/ec34960d2e5d74c3cc4f35bc78bc676d

关于vagrant - "No usable default provider could be found for your system"使用 VirtualBox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46816804/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com