Virtual Box不在High Sierra上安装

Rom*_*man 85 macos virtualbox vagrant macos-high-sierra

通过brew cask install virtualbox我安装Virtualbox时出现以下错误:

==> Satisfying dependencies
==> Downloading http://download.virtualbox.org/virtualbox/5.1.28/VirtualBox-5.1.28-117968-OSX.dmg
Already downloaded: /Users/romanderlemenko/Library/Caches/Homebrew/Cask/virtualbox--5.1.28-117968.dmg
==> Verifying checksum for Cask virtualbox
==> Installing Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
==> installer: Package name is Oracle VM VirtualBox
==> installer: Installing at base path /
==> installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
Error: Command failed to execute!

==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/virtualbox/5.1.28-117968/VirtualBox.pkg -target /

==> Standard Output of failed command:
installer: Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)


==> Standard Error of failed command:


==> Exit status of failed command:
#<Process::Status: pid 3578 exit 1>
Run Code Online (Sandbox Code Playgroud)

通过.dmg软件包安装时,安装程​​序只是说安装失败了 在此输入图像描述

在这两种情况下,我最终安装了Virtualbox.但是当我使用vagrant up这里开始我的Vagrant盒子时,我得到了:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "dda26a7b-cc0e-440c-b0db-9b3d3bac5925", "--type", "headless"]

Stderr: VBoxManage: error: The virtual machine 'rooxie-vm' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
Run Code Online (Sandbox Code Playgroud)

这可能是因为High Sierra的新文件系统?

Nip*_*oel 209

我有同样的问题.这是Mac OS问题.转到系统首选项/安全和隐私.允许Oracle安装软件.之后重试安装虚拟框.它对我有用.祝好运!

编辑:开始安装,但停在允许您选择安装位置的位置.然后转到设置中的安全性并允许它...然后继续. - 贾斯汀斯坦利

在此输入图像描述

  • 我终于可以通过这样做来安装:开始安装但停在允许你选择安装位置的地方.然后转到设置中的安全性并允许它...然后继续. (23认同)
  • 唯一适用于我的选项:安装安装程序,运行VirtualBox.pkg.当您进入具有安装按钮的屏幕并为您提供"更改安装位置..."选项时,请勿按任何内容!现在打开系统偏好设置 - >安全和隐私 - >常规.按下窗格底部的解锁按钮并提供密码.现在按下"允许"按钮指向窗格中间.返回安装,然后继续安装.现在盈利. (14认同)
  • 我尝试了以上所有内容然后我意识到即使安装程序报告失败,VirtualBox仍然安装并正常工作. (11认同)
  • 它花了大约五次尝试......但这终于奏效了. (8认同)
  • 不适合我. (4认同)
  • "Oracle America Inc"甚至没有出现在我的安全和隐私设置中. (4认同)
  • @TomAranda完美的例子,一个人永远不应该放弃 (2认同)