【问题标题】:What versions of Vagrant and VirtualBox are compatible on MacOS哪些版本的 Vagrant 和 VirtualBox 在 MacOS 上兼容
【发布时间】:2020-03-15 18:38:01
【问题描述】:

任何人都可以提供哪些版本与 mac mojave 10.14.2 上的 vagrant/ virtual box 兼容。我正在尝试从头开始学习这些技术。

我目前有 vagrant 1.7.1virtualbox 6.0.0r127566

> vagrant --version
> Vagrant 1.7.1

运行此命令的程序全新安装后返回以下错误

> vagrant status
> 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版本,但是查看网站现在不支持错误消息中提到的版本。

virtualbox 4.0

virtualbox 4.1

virtualbox 4.2

谢谢!

【问题讨论】:

  • 我会说要么升级 vagrant,要么尝试以管理员身份运行它,看看会发生什么? “ vagrant --version ”有效吗? (无引号)
  • 我已将该命令的输出添加到问题详细信息中 - 如何在 Mac 上以管理员身份运行它?
  • 尝试将 vagrant 升级到最新版本 (2.2.2),可从 vagrantup.com/downloads.html 获得。 vagrant 2.2.2 和 virtualbox 6.0 的组合在我运行 mojave 10.14.2 的机器上运行
  • 为了在 Mac 上拥有管理员权限,请按照以下步骤操作 support.apple.com/en-us/HT204012
  • 但我想我会听@mlidal 并更新你的流浪汉

标签: macos vagrant virtualbox


【解决方案1】:

尝试将 vagrant 升级到最新版本 (2.2.2),可从 https://www.vagrantup.com/downloads.html 获取。 vagrant 2.2.2 和 virtualbox 6.0 的组合在我运行 mojave 10.14.2 的机器上运行

【讨论】:

  • Virtualbox 6.0.what?? :) 我的 2.2.5 和 6.0.12 安装失败。试过 2.2.2 和 6.0.10 也没有用
【解决方案2】:

即使升级通常应该是解决方案,但如果(像我一样)您运行的是较旧的计算机/操作系统,那么降级将是使其正常工作的唯一方法。

就我而言,VirtualBox v5.1.38 和 Vagrant v1.9.6 在运行 OSX 10.11.16 (El Capitan) 的旧 Macbook 上为我工作

注意:我确实尝试了 Vagrant 2.x 和 VirtualBox 6.1/6.0.18 的多种配置,一切正常,但所有 vagrant CLI 命令在运行时都没有输出,包括没有显示错误。

运行 vagrant up --provider=virtualbox 会告诉你当前 Vagrant 安装支持哪些 VirtualBox 版本

Vagrant 以前版本下载 - https://releases.hashicorp.com/vagrant/

VirtualBox 以前版本下载 - https://www.virtualbox.org/wiki/Download_Old_Builds_6_0

【讨论】:

    猜你喜欢
    • 2020-12-13
    • 2021-07-07
    • 1970-01-01
    • 2023-03-30
    • 2017-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多