[Resolved] The VM session was closed before any attempt to power it on

Discussions related to using VirtualBox on Windows hosts.
Locked
BRLC
Posts: 4
Joined: 8. Feb 2019, 07:02

[Resolved] The VM session was closed before any attempt to power it on

Post by BRLC »

Hi,

My VirtualBox wont start!

I get the following error message:
The VM session was closed before any attempt to power it on.

Result Code: E_FAIL (0x80004005)
Component: SessionMachine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}
The log info is:
00:00:02.352024 VirtualBox VM 6.0.2 r128162 win.amd64 (Jan 14 2019 14:48:15) release log
00:00:02.352028 Log opened 2019-02-08T04:24:59.973668200Z
00:00:02.352028 Build Type: release
00:00:02.352032 OS Product: Windows 7
00:00:02.352033 OS Release: 6.1.7601
00:00:02.352033 OS Service Pack: 1
00:00:02.692931 DMI Product Name: OptiPlex 9020
00:00:02.695330 DMI Product Version: 01
00:00:02.695336 Host RAM: 16326MB (15.9GB) total, 14276MB (13.9GB) available
00:00:02.695339 Executable: C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe
00:00:02.695339 Process ID: 4788
00:00:02.695340 Package type: WINDOWS_64BITS_GENERIC
00:00:02.695645 ERROR [COM]: aRC=VBOX_E_FILE_ERROR (0x80bb0004) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={VM cannot start because the saved state file 'C:\Virtual Machines\BRLS001\Snapshots\2019-02-08T01-35-39-927980700Z.sav' is invalid (VERR_FILE_NOT_FOUND). Delete the saved state prior to starting the VM}, preserve=false aResultDetail=-102
00:00:02.696078 GUI: Aborting startup due to power up issue detected...
00:00:02.696130 GUI: UIMediumEnumerator: Medium-enumeration finished!
I have only recently installed this version (14 days ago) Version 6.0.2 r128162 (Qt5.6.2)

When we installed this version it ran fine. Today we had an unrelated internet outage and so I restarted the computer and now VirtualBox wont start.

I'm running windows 7 professional.

Any ideas?
Last edited by socratis on 11. Feb 2019, 09:33, edited 2 times in total.
Reason: Marked as [Resolved].
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: The VM session was closed before any attempt to power it on

Post by socratis »

BRLC wrote:00:00:02.695645 ERROR [COM]: aRC=VBOX_E_FILE_ERROR (0x80bb0004) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={VM cannot start because the saved state file 'C:\Virtual Machines\BRLS001\Snapshots\2019-02-08T01-35-39-927980700Z.sav' is invalid (VERR_FILE_NOT_FOUND). Delete the saved state prior to starting the VM}, preserve=false aResultDetail=-102
Please let me know if you want me to explain the error any further...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
BRLC
Posts: 4
Joined: 8. Feb 2019, 07:02

Re: The VM session was closed before any attempt to power it on

Post by BRLC »

Thank you for your reply Socratis.

I'll search the forum here a bit to find out how to do that. I'm sure someone has had to do it before.

Cheers,

BRLC
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: The VM session was closed before any attempt to power it on

Post by socratis »

From the toolbar, next to the "Start", there's a "Discard". That's how you discard the saved state.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
BRLC
Posts: 4
Joined: 8. Feb 2019, 07:02

Re: The VM session was closed before any attempt to power it on

Post by BRLC »

Thanks will try that in an hour or so when back at the computer.

Next question is why has it savd that error state? How can I stop it from saving that error state?

Will post the result shortly. Hopefully it works.

Cheers.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: The VM session was closed before any attempt to power it on

Post by socratis »

BRLC wrote:How can I stop it from saving that error state?
Stop it from saving the error state? I'm sorry, but what are you talking about? Please read the error again a little bit closer:
(VERR_FILE_NOT_FOUND)
You saved the VM state into a file, and that file (the saved state) went missing, who knows what you did to your computer. When you tried to restart it from that saved state, the file couldn't be found and you got that error.

Generally speaking, if a program expects a file to be somewhere, and that file isn't? You get an error.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
BRLC
Posts: 4
Joined: 8. Feb 2019, 07:02

Re: The VM session was closed before any attempt to power it on

Post by BRLC »

Ok cool, that makes sense.

Thanks for your help Socratis.

The server is up and running again and seems to be fine. At least I'll know what to do next time this happens!

Someone can make this post as solved now.

Cheers,

BRLC
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: The VM session was closed before any attempt to power it on

Post by socratis »

BRLC wrote:Someone can make this post as solved now.
Happy to... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
TimOz
Posts: 6
Joined: 17. Jun 2022, 19:48

Re: [Resolved] The VM session was closed before any attempt to power it on

Post by TimOz »

I want to report that I think this problem was for me caused by a virtual machine still running in the background.

Unfortunately I also upgraded JIC, so I can't be sure.

However I did CTRL-ALT DELETE and shut down a running virtual machine.

I upgraded to VirtualBox-6.1.34a-150636-Win, probably from VirtualBox-6.1.22-144080-Win.

After that the same VM that wouldn't start before, did.
Locked