无法stream浪 – 如何设置“提供者”

我试图逃跑,但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. 

我之前安装了VirtualBox版本4.3.26 r989888和Linux Ubuntu(64位)

之后: vagrant box add precise32 http://files.vagrantup.com/precise32.box

==> box: Adding box 'precise32' (v0) for provider: box: Downloading: http://files.vagrantup.com/precise32.box box: Progress: 100% (Rate: 1425k/s, Estimated time remaining: --:--:--) ==> box: Successfully added box 'precise32' (v0) for 'virtualbox'!

当我列出vagrant box list

 lucid32 (virtualbox, 0) precise32 (virtualbox, 0) 

什么是“提供者”

vagrant package --base vagrant-ubuntu64

 Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed. Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires this to be available on the PATH. If VirtualBox is installed, please find the `VBoxManage` binary and add it to the PATH environmental variable. 

如何帮助他检测VirtualBox?

快速注意 – Vagrant 1.8.4和Virtualbox 5.1.X在MacOS 10.11上不兼容(无法设置提供程序)。

Virtualbox 5.0.10工作得很好。

我可以简单地通过安装最新版本的Vagrant来解决这个问题(截至撰写本文1.7.4)。

好的,所以我有与Windows,vagrant和virtualbox相同的问题,并做到了这一点。

  1. 点击Windows桌面上的“This PC”/“我的电脑”
  2. select“属性”
  3. 转到“高级”选项卡
  4. 点击底部的“环境variables…”
  5. 在系统variables下,点击“新build…”
  6. 将“variables名称”设置为“VBOX_INSTALL_PATH”
  7. 将“variables值”设置为“C:\ Program Files \ Oracle \ VirtualBox \”
  8. select“确定”并closures所有其他设置窗口

信贷到这里: https : //github.com/mitchellh/vagrant/issues/3852

我假设有一个环境variables(或Linux用户的path,我认为:P)需要虚拟机可执行文件的“path”。

自从VirtualBox 4.3.12以来似乎有一个问题报告:

VirtualBox自动创build以下环境variablesVBOX_MSI_INSTALL_PATH

但是,vagrant(如果您查找base.rb文件)使用variablesVBOX_INSTALL_PATH

所以你可以 – 更新variables名称VBOX_MSI_INSTALL_PATH并将其更改为VBOX_INSTALL_PATH – 使用与VBOX_INSTALL_PATH相同的值创build一个新的variables名VBOX_MSI_INSTALL_PATH

在窗口提醒My Computer (right click) --> Properties --> Advanced System Settings --> Environment Variables并寻找你需要pipe理的variables

简单地尝试带走stream浪汉并指定您想要使用的提供者:

 vagrant up --provider virtualbox 

根据下面的截图,它会告诉你为什么指定的提供商不工作的原因。 就我而言,这是一个不受支持的VirtualBox 5.2版本。 我不得不将它降级到v 5.1

在这里输入图像说明

我正在运行macOS 10.12,并使用自制软件安装vagrant 5.1。

我得到了与OP一样的错误,并通过下载最新版本的VirtualBox(v5.1.6)来修复它。

NB这个版本在下载页面上标记为amd64,这只是64位标准的名称,并且可以在Intel的Mac上安装。