Error when installing Ubuntu Desktop 20.04 LTS

Discussions about using Linux guests in VirtualBox.
Post Reply
djs681
Posts: 2
Joined: 11. Aug 2021, 22:22

Error when installing Ubuntu Desktop 20.04 LTS

Post by djs681 »

Dear forum

I'm totally new in this area and have therefore found and followed a tutorial on how to install ubuntu-desktop on a windows computer. I started installing Oracle VM Virtual Box and from there started installing Ubuntu 20.04.2.0 But when I start installing an error occurs and the virtual box tries to shut down the machine. I have attached the logs from VirtualBox. I do not know if have used too much memory on my computer 65% (6054 MB)? Please let me know if more information is needed.

Best regards a newbie
Attachments
Ubuntu 20.04.2.0-2021-08-11-21-52-54.7z
(18.17 KiB) Downloaded 8 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: Error when installing Ubuntu Desktop 20.04 LTS

Post by scottgus1 »

djs681 wrote:I do not know if have used too much memory on my computer 65% (6054 MB)?
This appears to be it:
00:00:03.010685 Host RAM: 7907MB (7.7GB) total, 4677MB (4.5GB) available
00:00:03.193660 RamSize <integer> = 0x000000017a600000 (6 348 079 104, 6 054 MB, 5.9 GB)
....
00:02:50.867350 Console: Machine state changed to 'GuruMeditation'
00:02:50.867379 PGMR0PhysAllocateHandyPages: rc=-27 iFirst=8 cPages=120
00:02:50.867370 PGM: Failed to procure handy pages; rc=VERR_NO_PAGE_MEMORY rcAlloc=VINF_SUCCESS rcSeed=VINF_SUCCESS cHandyPages=0x8
Reduce RAM to 3GB, unless you can put more RAM in the host PC.

Also, try only 2 processors in the VM instead of 4. More than necessary will slow down the VM, and modern OS's like two as a base.
djs681
Posts: 2
Joined: 11. Aug 2021, 22:22

Re: Error when installing Ubuntu Desktop 20.04 LTS

Post by djs681 »

Thx for helping out. You were spot on. I hope I have enough computer memory for metagenomic analysis.

Really appreciate it! thx again.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Error when installing Ubuntu Desktop 20.04 LTS

Post by scottgus1 »

djs681 wrote:metagenomic analysis
No idea what that is, but the name alone sounds memory-intensive. :lol:

Glad you're up and running!

One point of interest: How did the VM start running for a bit when there was insufficient RAM, you might ask. Virtualbox defaults to 'lazy' memory allocation, where it waits to take host RAM until the VM touches it. Linux OS's don't touch all RAM at startup, so they might run a while before hitting overprovisioned-RAM troubles. Windows OS's touch all RAM at boot, so these have troubles quicker.

There is a command to make Virtualbox stop being 'lazy' about RAM, but I don't remember what it is.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Error when installing Ubuntu Desktop 20.04 LTS

Post by fth0 »

scottgus1 wrote:There is a command to make Virtualbox stop being 'lazy' about RAM

Code: Select all

VBoxManage setextradata "VM name" "VBoxInternal/RamPreAlloc" 1
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Error when installing Ubuntu Desktop 20.04 LTS

Post by scottgus1 »

Thanks, fth0!
Post Reply