新手问题 Mac 上 Vagrant 问题 "No Usable default provider could be found for your system"

z_ach · 2016年07月13日 · 最后由 angelbeats_wine 回复于 2019年03月29日 · 5888 次阅读

在 mac 上装 vagrant(v1.8.4) VirtualBox(5.1.0), 自己用 packer build 了一个 archlinux 的 box,build 和 add 的过程都正常。 vagrant up 的过程报错,完整错误如下

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.

加了 --provider=VirtualBox 参数后报错没有区别。

有人知道怎么办么 (=゚ω゚) ノ

I think you should try vagrant up --provider=virtualbox instead of vagrant up --provider=VirtualBox. Also, I'd like to recommend you to try parallels on mac. It provides better experience than VirtualBox. Check out the repo to see if you can get something out of it.

🍒

#1 楼 @novtopro tried just now ,not work :( too poor to afford parallels. Use commandline only, Virtualbox is just fine.

Your Packer has detected VirtualBox successfully, while Vagrant failed to do so. Maybe you should verify your VirtualBox installation. I can't get more information from the text you posted, so you'll still have to resolve this problem by yourself or try to google it.

#3 楼 @novtopro Thanks. I found it :). VirtualBox 5.1 is too new for vagrant. temporary solution: https://github.com/mitchellh/vagrant/issues/7411#issuecomment-232305067 tested, works.

Thank you. I've also had this problem. It's solved now.

需要 登录 后方可回复, 如果你还没有账号请 注册新账号