Failed to open a session for the virtual machine Ubuntu 24.04

Discussions about using Windows guests in VirtualBox.
Post Reply
guin0x
Posts: 2
Joined: 29. Aug 2021, 17:45

Failed to open a session for the virtual machine Ubuntu 24.04

Post by guin0x »

Good afternoon,

I was using the VM of Ubuntu 24.04 just fine during the day, then I stopped for a bit and when I tried again I got the below error:
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}
I checked out a similar topic and the advise was to discard saved state.
Unfortunately this option is greyed out for me, so I need a different solution.

I tried uninstalling Oracle and installing again, it also didn't work.
In case it helps, please see the log file attached.

Thank you in advance.
Attachments
Ubuntu - 20.04-2021-08-29-15-49-15.rar
(36 KiB) Downloaded 13 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Failed to open a session for the virtual machine Ubuntu 24.04

Post by scottgus1 »

There does not seem to be any problems reported in the log.

One configuration glitch may be a cause:
00:00:02.298983 Host RAM: 16342MB (15.9GB) total, 11019MB (10.7GB) available
00:00:02.421985 RamSize <integer> = 0x00000002c1f00000 (11 843 665 920, 11 295 MB, 11.0 GB)
00:00:02.422154 VRamSize <integer> = 0x0000000001000000 (16 777 216, 16 MB)
Too much RAM in the VM for what's available on the host. This can squeeze through for Linux VMs at times. But maybe enough host RAM was in use at the time you started the VM this one time that there wasn't enough RAM to run the VM.

Try a host reboot.
guin0x
Posts: 2
Joined: 29. Aug 2021, 17:45

Re: Failed to open a session for the virtual machine Ubuntu 24.04

Post by guin0x »

Dear scottgus1,

Thank you for your reply.
I imagine that by 'host reboot' you meant for me to reboot my PC.. I did, and I still get the same error.

I tried changing from 11 295 MB ram to around 8 GB and I got this error message:
Failed to save the settings of the virtual machine Ubuntu - 20.04 to D:\VM folder\Ubuntu - 20.04\Ubuntu - 20.04.vbox.

Runtime error opening 'D:\VM folder\Ubuntu - 20.04\Ubuntu - 20.04.vbox-tmp' for overwriting: -38 (Access denied.).

F:\tinderbox\win-6.1\src\VBox\Main\src-server\MachineImpl.cpp[9870] (long __cdecl Machine::i_saveSettings(bool *,int)).

Result Code: E_FAIL (0x80004005)
Component: SessionMachine
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
I'm not sure what's happening..
Thank you again in advance.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Failed to open a session for the virtual machine Ubuntu 24.04

Post by scottgus1 »

guin0x wrote:Failed to save the settings of the virtual machine ... (Access denied.)
Your host OS cannot write to the VM folder, or this file:
'D:\VM folder\Ubuntu - 20.04\Ubuntu - 20.04.vbox-tmp'
is locked by an active process. This is a different problem than you had before.

Reboot the host again, so no Virtualbox processes are running. Go to "D:\VM folder\Ubuntu - 20.04\", see if there is a "Ubuntu - 20.04.vbox" and a "Ubuntu - 20.04.vbox-prev". If so and there is also a "Ubuntu - 20.04.vbox-tmp", rename "Ubuntu - 20.04.vbox-tmp" to "Ubuntu - 20.04.vbox-tmp-old" and tray the VM's RAM change again.
Post Reply