【问题标题】:VBoxManage error: Details: code NS_ERROR_FAILURE (0x80004005) -VBoxManageControlVM.cppVBoxManage 错误:详细信息:代码 NS_ERROR_FAILURE (0x80004005) -VBoxManageControlVM.cpp
【发布时间】:2016-07-27 06:15:11
【问题描述】:

我在尝试使用 Vagrant 作为驱动程序运行厨房测试时遇到了关闭 VM 的 Virtualbox。

我按照“VBoxManage: error: Failed to create the host-only adapter”中的说明重新启动了 Virtualbox。

我该如何进一步解决这个问题?

  • VirtualBox 版本:5.0.14r105127
  • 厨房版本:1.6.0
  • 流浪者 1.7.3
  • 主厨客户端版本:12.8.1

这是错误:

Message: Failed to complete #destroy action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant destroy -f ----
STDOUT: ==> default: Forcing shutdown of VM...
STDERR: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["controlvm", "3fa0e654-df44-4050-809f-2d1474b74a8f", "poweroff"]
Stderr: 0%...10%...20%...30%...40%...50%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to power off machine
VBoxManage: error: The VM session was aborted
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface ISession
VBoxManage: error: Context: "RTEXITCODE handleControlVM(HandlerArg*)" at line 234 of file VBoxManageControlVM.cpp
---- End output of vagrant destroy -f ----
Ran vagrant destroy -f returned 1]

【问题讨论】:

  • 主机是什么操作系统?
  • @coderanger 我在 OS X el Capitan (10.11.4) 上并尝试启动 ubuntu

标签: chef-infra virtual-machine virtualbox development-environment


【解决方案1】:

我在尝试使用 virtualbox 驱动程序运行 docker-create 时收到此错误。就我而言,VPN 连接导致了问题。从 VPN 断开连接,然后运行 ​​docker-create 解决了我的问题。我不知道为什么。

【讨论】:

    【解决方案2】:

    花了太多时间解决神秘的 VirtualBox 错误后,我决定对我来说最快的方法不仅是重新启动 virtualbox,而且还要清理 virtualbox 临时文件夹("~/VirtualBox\ VMs" 或类似的)。

    99% 的时间,这有助于克服间歇性错误,让我能够专注于我正在处理的实际问题。

    对我来说,只有当错误在这一切之后仍然存在时,才值得进一步研究。

    【讨论】:

      猜你喜欢
      • 2020-05-14
      • 2017-01-13
      • 1970-01-01
      • 2019-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-01
      • 1970-01-01
      相关资源
      最近更新 更多