Does VirtualBox support a VM with 4GB of RAM?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Rui Torres
Posts: 6
Joined: 7. Mar 2012, 16:50

Does VirtualBox support a VM with 4GB of RAM?

Post by Rui Torres »

Hi all,

I am trying to run a VirtualBox VM with a guest OS that has 4GB of RAM, but the virtual machine crashes.

At the beginning, I suspected that the crash used to occur due to a lack of memory on the Host OS, due to the fact that the Host OS usually assigns large amounts of memory as “Standby” memory, being the amount of “Free” memory very low.

I have also noticed that sometimes the Host OS has no free memory, but this only happens during a short period of time, while the Host OS unlocks a small piece of the “Standby” memory, being that piece of memory assigned to the “Free” memory.(this process of unlocking “Standby” memory is executed continuously while there is no free memory and while there are applications requesting for more memory).

Considering the memory management process described above, I suspected that the crash used to occur right in the moment when the Host OS has no “Free” memory and while the Host OS is unlocking a piece of memory that is classified as “Standby” memory.

Having all the aspects above in mind, I thought that one way to overcome this issue is to find a mechanism to decrease the amount of memory that the Host OS uses as “Standby” memory. After some research on the internet, I found a Microsoft tool (RAMMAp) that enables you to empty the “StandBy” memory.

With that tool, I have erased all the “Standby” memory and launched the VM. However the VM still crashes and when it happens the Host OS has more than 1GB of free memory.

Looking at all these aspects, it seems to me that this problem is not related with the memory management process of the Host OS.

So, the question that I have is, does VirtualBox support VMs with 4GB of RAM?

The specifications of my host and guest OS are:

Host OS
===========================
Windows 7 (64 bits)
8GB of RAM


Guest OS
============================
Oracle Enterprise Linux (64 bits)
4 GB of RAM



Regards,

Rui Torres
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Perryg »

Anything Google chrome on the host?
http://social.technet.microsoft.com/For ... 184dec89ff
To answer your question if the above is not the cause, yes you can assign 4GB of RAM to the guest, but it must be available for VirtualBox to allocate and lock.
I have to wonder what is actually taking that massive amount of memory on the host though. I would search that out and see. Sysinternals has some packages that would help to do that.
Rui Torres
Posts: 6
Joined: 7. Mar 2012, 16:50

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Rui Torres »

Hi,

I don’t have the process GooglecrashHandler.exe on my host.

I will appreciate any clue on this issue.

Regards,

Rui Torres
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Perryg »

Start with posting the guest log file (as an attachment)
Rui Torres
Posts: 6
Joined: 7. Mar 2012, 16:50

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Rui Torres »

Hello,

Find attached the log files.

Regards,

Rui Torres
Attachments
VBox.log.2.txt
(84.38 KiB) Downloaded 22 times
VBox.log.1.txt
(85.89 KiB) Downloaded 24 times
VBox.log
(85.65 KiB) Downloaded 29 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by mpack »

Well, it's definitely a low memory error, though I don't really understand why 4GB would be a problem when your PC apparently had 5.5GB available. However I confess that I don't how how memory allocation works on a 64bit Windows host.

Incidentally, the numbered log files (VBox.log.1 etc) are log files from previous sessions. We don't normally need those.
Rui Torres
Posts: 6
Joined: 7. Mar 2012, 16:50

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Rui Torres »

Hello,

Do you think that it is a bug?

Regards,

Rui Torres
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by mpack »

Like I said, I don't know enough about Win64 memory allocation - especially for kernel code - to be able to express an opinion. For example, does VirtualBox require the allocation to be wholly contiguous? Or large pages, each contiguous? What in hell are "handy pages"? If asked for contiguous mem can Win64 always provide it by adjusting some kind of physical/logical address map, or will the allocation fail? Why do people need this amount of memory anyway??? (I come from an embedded engineering background where 256MB would be seen as a very generous RAM complement!). Where's my coffee?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Perryg »

You can try turning off nested paging and see if this helps, but the memory (available) and the memory to be allocated should work.
It is my understanding that it is contiguous memory but they have been working on that some too so who knows.
Try the suggestion and also look at other programs that could conflict. VPN, Virus software, Etc. You can try to set it down a few hundred MB and see if finishes too. Log shows a number above 4GB (4294967296)
Rui Torres
Posts: 6
Joined: 7. Mar 2012, 16:50

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Rui Torres »

Hello,

I have turned off nested paging and I have also killed my antivirus, but the problem still persists.

Do you have any other idea to overcome this issue?

Rui Torres
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Perryg »

You would need to file a ticket at Bugtracker.

Sign in and add to this ticket. https://www.virtualbox.org/ticket/10219

Don't forget to include the guests log file (as an attachment). They are very strict about that.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by mpack »

Perry also suggested that you try a memory size a few hundred MB less.

Anyway, the antivirus thing was just a suggestion - a usual suspect. You need to look at your process list for other possible candidates. Look in particular at the memory column to find the biggest resource hogs.
Rui Torres
Posts: 6
Joined: 7. Mar 2012, 16:50

Re: Does VirtualBox support a VM with 4GB of RAM?

Post by Rui Torres »

Hello,

An important remark is that I have already run the VM with 3GB of memory and it works fine.


Rui Torres
Post Reply