[SOLVED] VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
abcdefgh
Posts: 77
Joined: 22. Jul 2018, 03:29
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Linux Mint 20.3 Mate

[SOLVED] VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)

Post by abcdefgh »

I've solved the problem. It was actually easy (and logical if you accept the logic of Windows). I'm leaving this for the benefit of others.

Windows was launching VBox twice. I went to 'Windows Settings' > 'Apps' > 'Startup' and turned the duplicate 'VirtualBox Manager' launch to 'Off'. Why did Windows list 'VirtualBox Manager' twice? Who knows.

Version 6.1.12 r139181 (Qt5.6.2)
Host: Win10-1803
Guest: Linux Mint 18.3 Cinnamon 64-bit

When I start Windows, the following StartUp script runs:
"C:\Program Files\Oracle\VirtualBox\VirtualBox.exe" c:\VMs\Mint18\Mint18.vbox
The VM launches, but I also get the following error:

Code: Select all

Failed to open a session for the virtual machine Mint18.

The machine 'Mint18' is already locked by a session (or being locked or unlocked).

Result Code: VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
What I've tried:

1, I ran the command
  • bcdedit /set hypervisorlaunchtype off
and restarted. It did not fix the problem.

2, I inspected 'Windows Features'.
  • [_] Windows Hypervisor Platform
is not checked (i.e. is not enabled).

3, With VM shut down, 'Oracle VM VirtuBox Manager' > 'Mint18' > right-click:
  • Discard Saved State...
is grayed out and cannot be selected.

4, 'Task Manager' > 'Performance' > 'CPU' shows
  • Virtualization: Enabled
5, 'Windows Defender Security Center' > 'Device security' > 'Core isolation'
  • Memory integrity is Off
6, I didn't alter Secure Boot because that seems too drastic to me.

7, I searched 'UserManual.pdf' for "VBOX_E_INVALID_OBJECT_STATE" and got no hits.

8, I searched 'UserManual.pdf' for "MachineWrap" and got no hits.

9, I searched 'UserManual.pdf' for "IMachine" and got 3 hits but nothing useful.

10.1, In order to get a fresh log, I shut down the VM, restarted it, and shut it down again.

10.2, I searched 'VBox.log' for "VBOX_E_INVALID_OBJECT_STATE" and got no hits.

10.3, I searched 'VBox.log' for "MachineWrap" and got no hits.

10.4, I searched 'VBox.log' for "IMachine" and got the following, 27 hits:

Code: Select all

00:00:06.163825 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 3840x1986
00:00:06.192730 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:14.353109 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:14.353142 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:14.353164 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:14.353181 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:14.353197 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:18.448848 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:18.452242 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:18.452269 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.739583 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:19.739625 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.749420 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:19.749451 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.889984 GUI: UIMachineLogic: Guest-screen count changed
00:00:23.916538 GUI: UIMachineLogic: Guest-screen count changed
00:00:33.642669 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:33.642701 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:33.646929 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:33.647048 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:33.652726 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:33.652762 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:33.655975 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:33.656058 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:34.707746 GUI: UIMachineLogic: Guest-screen count changed
00:00:39.083651 GUI: UIMachineLogic: Guest-screen count changed
00:00:39.430176 GUI: UIMachineLogic: Guest-screen count changed
The total of 'VBox.log' is 2973 lines and I can paste it here on request.

10.5, I searched 'VBox.log' for "80BB0007" and got no hits.
I'm actually markfilipak (which somehow became 'markfilipak2', then 'abcdefgh'). I've been here since 15 Jul 2012 but lost my name during the great shift to SSO (single sign-on) during 2017, and have not been able to recover it.
phirestalker
Posts: 7
Joined: 25. Mar 2016, 03:16

Re: [SOLVED] VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)

Post by phirestalker »

The topic is marked as solved, so what finally fixed it?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: [SOLVED] VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)

Post by mpack »

The OP edited his post and put a paragraph in bold at the beginning to say what the fix was. Yes, it's can be confusing when people edit their posts in that way. Better I think to add a follow up post.
abcdefgh wrote: Windows was launching VBox twice. I went to 'Windows Settings' > 'Apps' > 'Startup' and turned the duplicate 'VirtualBox Manager' launch to 'Off'. Why did Windows list 'VirtualBox Manager' twice? Who knows.
Post Reply