I managed to end the task for the unresponding VM window by finding the VM name under Processes in task manger.
However, the same cannot be said for the vboxheadless process. I have multiple vboxheadless processes and don't know which one(s) are responsible for this VM and don't wanna take a gamble on forcing the wrong VM to close.
I tried to run vboxmanage controlvm <VM> poweroff and got text output for 10% 20% but it got stuck after that. I closed the command window.
The main VirtualBox Manger window responds but the VM is stuck at "Stopping" and the "Settings", "Discard", and "Show" options are dimmed out.
When I try to start the VM using VBoxManage I get error:
Code: Select all
>vboxmanage startvm TDS
VBoxManage.exe: error: The machine 'TDS' is already locked by a session (or being locked or unlocked)
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), ComSafeArrayAsInParam(aBstrEnv), progress.asOutParam())" at line 727 of file VBoxManageMisc.cpp