VBoxManage:错误:详细信息:带有 meanjs 和 vagrant 的代码 NS_ERROR_FAILURE (0x80004005)
Posted
技术标签:
【中文标题】VBoxManage:错误:详细信息:带有 meanjs 和 vagrant 的代码 NS_ERROR_FAILURE (0x80004005)【英文标题】:VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005) with meanjs and vagrant 【发布时间】:2017-01-13 16:43:15 【问题描述】:我正在尝试基于 vagrant 运行 mean.js 项目,但在 ubuntu 14.04 LTS 64 bi
t 上使用 vagrant up
命令时出现以下错误。
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "d660b7d6-06a3-49bc-8b90-cbad92632c11", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'pets_default_1473142645576_38190' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
请帮我解决问题。
【问题讨论】:
类似问题:askubuntu.com/questions/527699/… 我发现这会导致 Ubuntu 的更新尚未完成。运行更新并重新启动修复它。 【参考方案1】:我使用以下步骤解决了:
在安装 VirtualBox-5.0 之前,我已经完全删除了旧的 VirtualBox 版本!
卸载 VirtualBox
sudo apt-get purge "^virtualbox-.*"
更新软件存储库
sudo apt-get update
清理
sudo apt-get autoremove | sudo apt-get autoclean | sudo apt-get clean
设置 API 存储库(适用于 Ubuntu 14.04(“Trusty”))
echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" | sudo tee /etc/apt/sources.list.d/oracle-vbox.list
设置 Oracle 密钥
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
6.安装Oracle Virtualbox
sudo apt-get update
sudo apt-get install virtualbox-5.1
Start Virtualbox
virtualbox
如需更多帮助,请查看here。
希望这对其他人有所帮助。
【讨论】:
【参考方案2】:您好,我已经重新安装了虚拟盒子,问题已经为我解决了。
在我的mac上安装虚拟盒子时,它不允许我安装。所以我去了系统偏好->安全和隐私->常规-'允许应用程序下载'->点击“允许”按钮。
在上述系统偏好更改后,我已经成功安装了虚拟盒子。
厨房汇合 -> 成功完成。
【讨论】:
这也解决了更新到 Big Sur 时的问题。只需删除以前的 Virtualbox 版本,重新启动,下载并安装新的 Virtualbox,然后转到设置并允许 Virtualbox 的更新。【参考方案3】:我也遇到了同样的问题,但Santosh Shinde's answer 帮我解决了。
不过,我想补充一点:
卸载您 PC 上所有可用的旧版/以前版本的 Virtualbox 后:
sudo apt-get purge "^virtualbox-.*"
并清理您的系统:
sudo apt-get autoremove
无需从 Ubuntu 的 Apt 存储库安装 Virtualbox,只需访问 Virtualbox 的downloads 页面,即可下载最新版本的 Virtualbox。
这是因为 Apt 存储库可能没有最新版本的 Virtualbox。
就是这样。
我希望这会有所帮助
【讨论】:
【参考方案4】:由于某种原因,我的 virtualbox linux 主机有一个过时的 vboxdrv 内核模块。
我完全删除了 VirtualBox 包,然后重新安装,但这个旧版本的内核模块仍然存在。
手动删除不需要的模块,然后重新安装最新的 VirtualBox,然后通常的 vboxconfig 重新构建最新的模块,我们就完成了。
/usr/bin/vboxmanage startvm Win10-Server --type headless
现在按预期工作。 :-)
【讨论】:
【参考方案5】:在 Chrome 上安装了一些 cripto 插件后,我遇到了同样的错误。然后看到虚拟框扩展在 root 和用户下不起作用。在我的 linux 发行版中,/opt
所有者由 cripto 插件安装程序更改为用户。将/opt
更改为root 所有者已经解决了问题。
【讨论】:
【参考方案6】:我刚刚在一个完全不涉及 vagrant 的 FreeBSD 机器上发生了这种情况。
[root@freebsdserver ~]# vboxmanage startvm yavm
Waiting for VM "yavm" to power on...
VBoxManage: error: The virtual machine 'yavm' has terminated unexpectedly during startup because of signal 6
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
在这种情况下,这是因为“freebsdserver”正在无头运行。修复是运行:
# vboxmanage startvm yavm --type headless
【讨论】:
以上是关于VBoxManage:错误:详细信息:带有 meanjs 和 vagrant 的代码 NS_ERROR_FAILURE (0x80004005)的主要内容,如果未能解决你的问题,请参考以下文章
为啥我的云函数返回带有代码 INTERNAL 的异常,并且详细信息为 null 并带有未处理的错误 TypeError: is not a function
如何获取带有错误请求状态代码的详细信息(自定义错误消息)?这样我就可以对其进行断言
Vagrant VBoxManage:错误:AMD-V 不可用(VERR_SVM_NO_SVM)