Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue]: Grub-core: out of memory (Fedora 35) #1515

Open
1 task done
UbioZur opened this issue Mar 16, 2022 · 50 comments
Open
1 task done

[issue]: Grub-core: out of memory (Fedora 35) #1515

UbioZur opened this issue Mar 16, 2022 · 50 comments

Comments

@UbioZur
Copy link

UbioZur commented Mar 16, 2022

Official FAQ

  • I have checked the official FAQ.

Ventoy Version

1.0.71

What about latest release

Yes. I have tried the latest release, but the bug still exist.

BIOS Mode

UEFI Mode

Partition Style

GPT

Disk Capacity

16GB

Disk Manufacturer

EAGET

Image file checksum (if applicable)

Yes.

Image file download link (if applicable)

https://download.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-35-1.2.iso

What happened?

I am trying to use ventoy to install fedora (or at least boot to the live environment).

I have a grub error when the image is selected:

error: ../../grub-core/kern/mm.c:376:out of memory.

I checked on several ISO.

Fedora 35 Workstation

Fedora 35 KDE

Fedora 35 Everything (netinstall)

Debian 10: No errors
Windows 10: No errors

It is reported as working (at least the workstation one):
https://www.ventoy.net/en/distro_iso/fedora.html
#1196

Hardware:
Processor Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz, 3696 Mhz, 6 Core(s), 12 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. P4.30, 21-Jul-20
BaseBoard Manufacturer ASRock
BaseBoard Product B360M-ITX/ac
Secure Boot State Off

Issue Search
I saw some of Fedora 35 issue that are open, but none related to my error.
#1200

Anything I can do to have a better log / stack on that error to help find the problems?
Anything to get it to work?

@steve6375
Copy link

2GB or more of RAM are required for the Fedora netinstall ISO. Since a memory problem is reported, it would be useful to know how much RAM is in your system and if you have recently changed the BIOS or memory modules in your system

@steve6375
Copy link

Also try the grub2 command

lsmmap

Both under VM and on real system and paste screenshot here as may be a memory map/grub2 issue with your hardware/UEFI BIOS.

@UbioZur
Copy link
Author

UbioZur commented Mar 17, 2022

2GB or more of RAM are required for the Fedora netinstall ISO. Since a memory problem is reported, it would be useful to know how much RAM is in your system and if you have recently changed the BIOS or memory modules in your system

I have 32G of ram, no new changes in hardware or bios. It really just happen with the fedora ISOs I have.

Also try the grub2 command

lsmmap

Both under VM and on real system and paste screenshot here as may be a memory map/grub2 issue with your hardware/UEFI BIOS.

I can try, From the FAQ, it seems to be ctrl+r to access the grub mode, and I will update and screenshot if there is an error.

@kaori14112
Copy link

I got same problem as you did. Try to rebuild my usb multiple time but seem like problem not come from my usb. I try other OS then it work fine, strangely when i boot to usb on vmware workstation then it work normally. Any idea what happen?

@kaori14112
Copy link

kaori14112 commented Mar 19, 2022

Updated: I tried to use the same USB on my PC then it's work fine. But not work on my Laptop (HP Probook 450 G8 - secure boot off - 16GB RAM - 1TB SSD Samsung EVO 970)
PXL_20220319_072319624

@UbioZur
Copy link
Author

UbioZur commented Mar 19, 2022

I got same problem as you did. Try to rebuild my usb multiple time but seem like problem not come from my usb. I try other OS then it work fine, strangely when i boot to usb on vmware workstation then it work normally. Any idea what happen?

I am still trying to figure it out but not much success (especially as I am not really knowledgeable in grub or boot loaders).
Also not often on the PC at the moment and sadly it is not set back up after the install.

The work around I found (100% success so far), is to switch ventoy to grub mode.

Once you get to the list of iso, use the key combination CTRL+r, you will have a small grub mode text that appear at the bottom. You can now select and run the iso with no errors.
On my setup, after selecting the iso, I have a fair amount of time with black screen then my motherboard splash screen, then the fedora loading animation start (we are talking a good 10-15s).
I have only tried with the everything iso, and not the workspace or kde ones yet.

I haven't yet doing a way to use the lsmmap command under grub (haven't had time to look too much into it).

@Tamas-Toth-ebola
Copy link

Tamas-Toth-ebola commented Apr 22, 2022

Sadly I can confirm that this problem could be available at least in some conditions.

Yesterday I tried to install Ubuntu 22.04 through tha latest Ventoy 1.0.73 (installed from Ubuntu 21.10), and got the same problem. Tried it with secure boot and without secure boot also, sadly with the same result. The computer is an Intel - NUC8 without any specialities.

What is so important that after I give it up with Ventoy the same ISO in the exactly same environment could boot up perfectly directly wroted onto the same flash drive.

@aliAlFarwi
Copy link

I have the exact same problem as Tams-Toth-ebola

@Tamas-Toth-ebola
Copy link

I know that 1.0.74 did not contain any fix for it, just would like to report that after a ..74 test sadly the problem still alive.

@ventoy
Copy link
Owner

ventoy commented May 2, 2022

@Tamas-Toth-ebola
When you boot into Ventoy menu, press c to enter grub shell and run

set pager=1
lsmmap

and give me the result.

@Tamas-Toth-ebola
Copy link

@ventoy , for your request:

IMG_20220502_131835
IMG_20220502_131845

@ventoy
Copy link
Owner

ventoy commented May 2, 2022

@Tamas-Toth-ebola
Please use this CI release:
https://github.com/ventoy/Ventoy/actions/runs/2258059466
https://www.ventoy.net/en/doc_github_ci.html

and run vt_efi_dump_rsv_page in grub shell as the last post.

@Tamas-Toth-ebola
Copy link

There is no succesfully builded files yet on the mentioned version:

image

@ventoy
Copy link
Owner

ventoy commented May 3, 2022

@Tamas-Toth-ebola
Sorry, try this CI release:
https://github.com/ventoy/Ventoy/actions/runs/2261303648

@Tamas-Toth-ebola
Copy link

grub> vt_efi_dump_rsv_page
Total pages: 182173
Required pages: 45543
grub> _

@ventoy
Copy link
Owner

ventoy commented May 3, 2022

@Tamas-Toth-ebola
Try this CI release: https://github.com/ventoy/Ventoy/actions/runs/2263460264

  1. Try to boot directly and see whether it fix the out of memory issue.
  2. If the error still exists, run vt_efi_dump_rsv_page as above

@Tamas-Toth-ebola
Copy link

You are the ONE! 😉

With this 'latest' build succesfully booted into Ubuntu 22.04 - Desktop (with their official setup image/ISO)!

At this point the bug have been already fixed! 🍾

Thanks a lot for it!

@ventoy
Copy link
Owner

ventoy commented May 3, 2022

@ventoy
Copy link
Owner

ventoy commented May 6, 2022

@UbioZur
@kaori14112
@aliAlFarwi

Any update?

@UbioZur
Copy link
Author

UbioZur commented May 6, 2022

@UbioZur @kaori14112 @aliAlFarwi

Any update?

I don't have the time at the moment to check a new install sorry.
I do keep an eye on this space for next time I do need to install.

@aliAlFarwi
Copy link

@UbioZur Still happens for me, I'm not sure about everyone else

@ventoy
Copy link
Owner

ventoy commented May 8, 2022

@aliAlFarwi
With the above CI release, when you boot into Ventoy menu, press c to enter grub shell and run

vt_efi_dump_rsv_page 

@omarwllorente
Copy link

omarwllorente commented May 12, 2022

Hi all, I tried the updates (#762 and #769) to boot an Ubuntu 20.04 and 22.04 in a HP Probook 430 G8 with 16 GB of RAM and still have the same issue (error: out of memory).

Just for you to know. If you want me to do any new test, please, let me know.

Thanks for such a good tool.

Omar

@ventoy
Copy link
Owner

ventoy commented May 13, 2022

@omarwllorente
Please try this CI release: https://github.com/ventoy/Ventoy/actions/runs/2263460264
https://www.ventoy.net/en/doc_github_ci.html

If the issue still exists, then when you boot into Ventoy menu, press c to enter grub shell and run

vt_efi_dump_rsv_page 

and give the result here

@coaxial
Copy link

coaxial commented May 13, 2022

Ctrl-r to switch to grub2 mode solved the issue for me on several laptops using 1.0.74, MBR, and Linux mint cinnamon 20.3.

@kaori14112
Copy link

@UbioZur @kaori14112 @aliAlFarwi

Any update?

I just found out that's from HP bios, something about secure boot (even though i disabled it). I have to clear something. But after tinkering around sometime then everything work just fine! I left my laptop at home so i will update specific detail about my case later.

@omarwllorente
Copy link

@coaxial: Changing to grub2 mode didn't do the trick, but thanks anyway.

@ventoy: The result is:

grub> vt_efi_dump_rsv_page
Total pages: 79533
OrgReq pages: 19883
NewReq pages: 19883
grub>

Thanks again.

Omar

@AnessZurba
Copy link

AnessZurba commented May 19, 2022

@ventoy Is there a planned release with this fix? I'm facing the same problem. Not sure how will installing this CI version would work update-wise, like would I be able to safely install it and then install 1.0.75 when the time comes? (I have 1.0.74 now)

@ventoy
Copy link
Owner

ventoy commented May 19, 2022

@AnessZurba There is no problem to use this CI release if it fixed the issue in your environment.
You can update from this CI release to 1.0.75 as normal when it release.

@ventoy
Copy link
Owner

ventoy commented May 19, 2022

@omarwllorente
There is too little low memory in your computer so even grub2 mode can not work.
I think you should consider update your BIOS firmware.

@AnessZurba
Copy link

@ventoy it's working, thanks
Another very weird problem I'm having is that wifi doesn't work unless I have the ubnutu 20.10 iso in the same drive when I boot, but that's another issue

@omarwllorente
Copy link

@omarwllorente There is too little low memory in your computer so even grub2 mode can not work. I think you should consider update your BIOS firmware.

This computer is a new HP model (HP Probook 430 G8), just bought, and its BIOS has been updated to the last available using the windows HP support center software, so there is little I can do with the BIOS.

About memory, all I can say is that the computer has 16GB of RAM available, with 512MB of them assigned to the video card. Do you think that the problem may be related to this fact?

Thanks!

Omar

@ventoy
Copy link
Owner

ventoy commented May 20, 2022

@omarwllorente
It's not about the physical ram of the computer.
Grub2 will use memory under 4GB address space for boot.

vt_efi_dump_rsv_page command dumps the page number of free memory under 4GB.
In your computer it is 79533 that is 79533 x 4KB = 310MB
In the above @Tamas-Toth-ebola computer the value is 182173 that is 182173 * 4KB = 711MB
It's the BIOS that decides how many free memory can be used under 4GB space address.

Besides, if you write the ISO file directly to the USB with other tools(e.g. Rufus) can it boot OK?

@omarwllorente
Copy link

Thanks @ventoy for your explanations.

To your question about booting directly transferred ISO to the USB, the answer is yes, the computer can boot without problem with a normal USB, even with the 512MB for video assigned.

Using the last CI version (#769) and the hints you provided, I've managed to boot ubuntu 22.04 up after reducing the memory assigned to 128MB for the video card in BIOS setup (assigning 256MB still didn't work). It seems clear to me that the video memory or this computer is being assigned under the first 4GB of RAM.

Thank you so much.

Omar

@ventoy
Copy link
Owner

ventoy commented May 20, 2022

@omarwllorente
Ventoy grub2 mode (press Ctrl+r) need less low memory than normal mode.

@omarwllorente
Copy link

Good to know.

Keep up the good work!

Omar

@Tamas-Toth-ebola
Copy link

Just for the report, I can confirm that with the fresh new 1.0.75 I can boot into my Ubuntu images seamlessly...

Thanks again for it!

@ventoy
Copy link
Owner

ventoy commented May 31, 2022

1.0.75 release, should have fixed the issue in some computer.

@theoneandonly-vector
Copy link

ubuntu-22.04-desktop-amd64.iso
not yet working for me on 1.0.75

@ventoy
Copy link
Owner

ventoy commented Jun 6, 2022

ubuntu-22.04-desktop-amd64.iso
not yet working for me on 1.0.75

What about grub2 mode? https://www.ventoy.net/en/doc_grub2boot.html
If still not work, when you boot into Ventoy main menu, press c to enter grub shell and run vt_efi_dump_rsv_page and give me the result for analyze.

@theoneandonly-vector
Copy link

ubuntu-22.04-desktop-amd64.iso
not yet working for me on 1.0.75

What about grub2 mode? https://www.ventoy.net/en/doc_grub2boot.html If still not work, when you boot into Ventoy main menu, press c to enter grub shell and run vt_efi_dump_rsv_page and give me the result for analyze.

grub2 mode works. maybe this could be done automatically? // detected from the name of the ISO so I could add "_grub2mode" at the end of the filename or something.

@ventoy
Copy link
Owner

ventoy commented Jun 8, 2022

@theoneandonly-vector
Try this CI release: https://github.com/ventoy/Ventoy/actions/runs/2458653039
https://www.ventoy.net/en/doc_grub2boot.html

It will auto use grub2 mode if the ISO file name contains _VTGRUB2 suffix. (e.g. ubuntu-22.04-desktop-amd64_VTGRUB2.iso)

@theoneandonly-vector
Copy link

@ventoy yes, that works perfectly!

@cpporhair
Copy link

Hi ,I have the same problem with ubuntu 22.04 on my msi gt77 laptop.
vt_efi_dump_rsv_page returns.
Total pages: 39395
OrgReq pages: 9848
NewReq pages:9848

But my machine has 128G RAM.
What should I do?

@ventoy
Copy link
Owner

ventoy commented Jun 24, 2022

@123youyouer
GRUB2 only make use of memory under 4GB memory space.
So in your computer/BIOS there is only 39395 * 4KB = 153MB memory avaliable under 4GB space.

You can try grub2 mode https://www.ventoy.net/en/doc_grub2boot.html

@cpporhair
Copy link

Thank you for your reply.
Unfortunately, grub2 mode didn't work for me.
My laptop has 128G of RAM.
How should I configure the bios to meet the memory requirements of ventoy

@ventoy
Copy link
Owner

ventoy commented Jun 24, 2022

@123youyouer
What's the error when boot with GRUB2 mode.

@cpporhair
Copy link

It seems to be the same problem, just with a slightly different output. I switched to rufus and installed the system successfully. I suspect the BIOS version of the motherboard is too new to cause this. Anyway I can work now. Thank you.

@TheCrockett
Copy link

Not sure it would help, but I had this issue on a HP laptop when I maxed out the video RAM (onboard ram) in the bios. Worked properly when I went back to 64Mb

@robinlahtinen
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests