Kali Linux Virtual Machine configured for 2GB only seems to use aprox. 200MB

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Martijn van den Boom
Posts: 3
Joined: 20. Dec 2020, 00:49
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: 1. Kali Linux
Location: UTRECHT, The Netherlands
Contact:

Kali Linux Virtual Machine configured for 2GB only seems to use aprox. 200MB

Post by Martijn van den Boom »

Dear reader,

In my task manager on Windows 10 I have noticed that the memory usage voor the Kali Linux virtual machine is considerably low.
As my virtual machine is up and running and idle it seems to just be using aprox. 12 MB added up.
And in my virtual machine it shows to be using about 421MB with htop.

In my opinion I could use a much larger amount to be available for the Linux VM.
Is there an option to configure the memory usage on the Windows 10 host machine?
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: Kali Linux Virtual Machine configured for 2GB only seems to use aprox. 200MB

Post by mpack »

A Linux VM will typically only grab host RAM that it needs, up to the maximum configured in the settings. Giving it more RAM than it needs will do nothing - until it's needed.

A Windows VM behaves differently. Windows tests all RAM on startup, which forces it to be allocated by the host. There is no mechanism to return it to the host after that, and in any case AFAIK there is no "trim" for RAM that can tell VirtualBox that the VM has finished with this previously allocated RAM.
Post Reply