我在尝试使用Vagrant作为驱动程序运行厨房测试时,遇到Virtualbox关闭了一个VM。
我重新启动了Virtualbox,如"VBoxManage:错误:无法创建仅限主机的适配器"中所述。
如何进一步解决此问题?
- 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]
我在尝试使用virtualbox
驱动程序运行docker-create
时收到此错误。在我的案例中,VPN连接导致了问题。断开与VPN的连接,然后运行docker create解决了我的问题。我不知道为什么。
在花了太多时间处理神秘的VirtualBox错误后,我决定最快的方法不仅是重新启动VirtualBox,而且还要清理VirtualBox临时文件夹("~/VirtualBox VMs"
或类似文件)。
99%的时间,这有助于克服间歇性错误,并使我能够专注于我正在处理的实际问题。
对我来说,只有在这一切之后错误仍然存在,才值得进一步研究。