使用Laravel Homestead,第一次遇到狂野的僵尸vm,我无法摧毁。
$Vagrant global-status
...Nothing
$vboxmanage list vms
..."homestead-7" {a00faea2-9b77-466d-beac-ab892dc0f0c9}
$vboxmanage unregistervm homestead-7 --delete
...VBoxManage: error: Cannot unregister the machine 'homestead-7' while it is locked
$vboxmanage startvm homestead-7
...VBoxManage: error: The machine 'homestead-7' is already locked by a session (or being locked or unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), env.raw(), progress.asOutParam())" at line 589 of file VBoxManageMisc.cpp
答案 0 :(得分:2)
杀死VBoxHeadless进程并运行“vboxmanage unregistervm homestead-7 --delete”。