Preserve the stored state on "Out of memory"

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Andreas Killer
Posts: 10
Joined: 23. Jul 2013, 17:06

Preserve the stored state on "Out of memory"

Post by Andreas Killer »

I run VirtualBox on a WinXP machine with low memory (1,5Gb total). Works pretty good normally.

But sometimes, when I have to much windows open in the host system, and I start a saved session of a VM, I get a "Out of memory" message.

That is correct, in this situation there is not enough memory.

But once that happens, I lose the stored state of the session and must reboot the VM from scratch.

Is there any way to prevent that VirtualBox deletes the saved state automatically?

Andreas.
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Preserve the stored state on "Out of memory"

Post by BillG »

I am surprised that you don't lose more than that! Out of memory is a critical stop condition in a Windows OS and anything can happen.
Bill
Andreas Killer
Posts: 10
Joined: 23. Jul 2013, 17:06

Re: Preserve the stored state on "Out of memory"

Post by Andreas Killer »

Then I can ask also a different question.

If VirtualBox stores a session of a VM, isn't it known how much memory is used?
So why can't VirtualBox check the avaible memory first, maybe show a message and allows to abort the process before it runs into trouble?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Preserve the stored state on "Out of memory"

Post by mpack »

I don't understand your problem. If VirtualBox gives a low memory error when you launch a VM, i.e. due to having too much other stuff running on the host, then there's no need to preserve the running state of the error VM, because it isn't running yet. "Aborting the process before it runs into trouble" is exactly what it has done.
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Preserve the stored state on "Out of memory"

Post by stefan.becker »

Buy more RAM. This Thread is senseless.

Today i think 4 GB RAM on Host is an absolute Minimum to use a modern host and guest OS.
Post Reply