Thursday, May 2, 2024
36
rated 0 times [  36] [ 0]  / answers: 1 / hits: 238599  / 2 Years ago, wed, june 8, 2022, 12:59:54

I'm installing Ubuntu in a Virtual Box; my host OS is Windows 7, and I have 6GB of RAM on my system. One tutorial on setting up Ubuntu on a virtual machine (this one, on step 14: http://www.aztcs.org/meeting_notes/linuxsig/ubuntuintovirtualbox/ubuntuintovirtualbox.htm) says to set the RAM at 45% of the total RAM I have available, which would be about 2.7GB in my case. Is this correct?



Also, when I allocate RAM to the vm, is that RAM now reserved exclusively for the vm, and if yes, is it only reserved for the vm when the vm is running a guest OS or does it create a permanent division in the RAM, i.e., when I stop running and quit from the virtual machine, will my host OS (Windows 7) regain all 6GB of RAM as its available RAM?


More From » system-installation

 Answers
2

You should give virtual machine however much RAM you need for the tasks you're using it to perform.



If you're running a single virtual machine, the suggestion you read is OK (provided that your host machine has enough RAM, which it does). However, depending on what you plan to do with your Ubuntu system, it probably doesn't need 2.7 GB of RAM. I give most of my virtual machines, including Ubuntu virtual machines, 1 GB of RAM, even when I have enough physical RAM available that I could allocate more.



If you plan to run multiple virtual machines, then giving a virtual machine 2.7 GB of RAM out of a total of 6 GB is probably too much. It would not work out well to have two VM's with that amount of RAM!



Finally, your virtual machine will typically reserve all the RAM you give it, whenever it is running. When the virtual machine is turned off, suspended, hibernated, or otherwise not running, this RAM will not be in use. For example, I have about 10 virtual machines, most of which have 1 GB of RAM, on a host machine with 4 GB of RAM. This is not a problem; it just means I can only run up to a few of them at a time.


[#37649] Thursday, June 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
eanda questions
Tue, Nov 22, 22, 15:24, 1 Year ago
Sat, Oct 16, 21, 23:48, 3 Years ago
Sun, Jul 3, 22, 09:38, 2 Years ago
Thu, Feb 3, 22, 14:33, 2 Years ago
;