如何删除处于GURU_MEDITATION错误状态的VirtualBox计算机?在VirtualBox未运行时删除目录是否足够?
编辑:发布后,我删除了“在文件管理器中显示”导航到的整个目录。
看起来是这样的:
请注意,没有电源关闭,甚至删除也呈灰色显示。我相信这和我删除目录之前的样子是一样的。
编辑2:我在删除文件后尝试了命令行断电。它挂起:
vboxmanage管理控件10 wmf-vagrant_1354733432关机0%...10%...20%...
编辑3:它也无法从命令行注销它:
VBoxManage unregistervm wmf-vagrant_1354733432 --delete VBoxManage: error:当计算机被锁定时无法注销它VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007),component Machine,interface IMachine,callee Context:" unregister (fDelete ?vagrant:vagrant ComSafeArrayAsOutParam(aMedia))“在文件VBoxManageMisc.cpp
的第160行
发布于 2013-03-02 22:36:57
终止VBoxHeadless进程并运行"vagrant destroy“
使用"killall“命令销毁流浪汉并发送kill信号如下所示:
killall -9 VBoxHeadless && vagrant destroy
发布于 2014-09-26 08:48:39
我遇到了这个问题。我读到的每一件事都建议你应该总是通过Virtual Box来管理这些盒子,而不是直接访问文件。但是当我有一个无效的盒子时,unregistervm命令拒绝删除它,流浪销毁也不起作用。最后,下面的过程起作用了。
然后,我运行此命令来验证该框是否已删除。
VBoxManage list vms
在那之后,我可以创建一个具有相同名称的新vm。
发布于 2015-03-17 00:38:30
我有一个虚拟机也处于类似的状态
$ vagrant up
Bringing machine 'tempu' up with 'virtualbox' provider...
==> mms: Checking if box 'hashicorp/precise64' is up to date...
==> mms: Resuming suspended VM...
==> mms: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "9fcf2203-d4b3-47a1-a307-61bfa580bd28", "--type", "headless"]
Stderr: VBoxManage: error: The machine 'temp-ubuntu' is already locked by a session (or being locked or unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), env.raw(), progress.asOutParam())" at line 592 of file VBoxManageMisc.cpp
我查找了一个名为VBoxHeadless
的进程,但它没有运行。
然后我运行ps
,发现这个进程具有相同的vm id:
$ ps aux | grep -i virtualbox
user 63466 0.0 0.1 2523608 8396 ?? S 9:36am 0:02.67 /Applications/VirtualBox.app/Contents/MacOS/VBoxManage showvminfo 9fcf2203-d4b3-47a1-a307-61bfa580bd28 --machinereadable
终止该进程解决了该问题,并在运行vagrant up
后正确启动了虚拟机
https://stackoverflow.com/questions/13769808
复制相似问题