Sometimes I get the following message:
Code: Select all
VBoxManage: error: The machine 'Windows8.1' 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(), ComSafeArrayAsInParam(aBstrEnv), progress.asOutParam())" at line 727 of file VBoxManageMisc.cpp
I always use: "Save the state of the virtual machine" to end ma VM session.
0. My VM was closed with "Save the state of the virtual machine"
1. I start my VM with a command in my *.sh script.
2. When my VM is started, I wait only A FEW SECONDS and then I choose manually "Save the state of the virtual machine" to shut my VM down.
3. I start my VM again with the command in my *.sh script.
4. Now I get the message above and my VM does not start in a way as expected.
--> to step 2): When I wait longer, before I choose "Save the state of the virtual machine" (for example 5 min) to shut my VM down, I do not have this issue.
5. When I then shut it down normal (Switch off), and start it new, I get again this message, when I run the command. However, unlike step 4), the VM now works in a way as expected.
6. To get totally rid of this issue, I have to start Linux new.
What does this message mean?
What can I do, to pretend this message?
Do I have to start a service or do I have to exit a service?
Has this something to do with "virtual Box extensions pack"?
VirtualBox version: Version 6.1.30_Debian r148432
Would appreciate some help. Thank you.