Bug 2112134

Summary: Booting ISO over PXE gives out of memory error.
Product: [Fedora] Fedora Reporter: greg.w.williamson
Component: grub2Assignee: Javier Martinez Canillas <fmartine>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: fmartine, lkundrak, mlewando, pgnet.dev, pjones, rharwood
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: grub2-2.06-75 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-24 20:58:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
lsefimmap output
none
efi=debug dmesg from working ceentos grub
none
error message
none
grub.cfg
none
grub with debug=all
none
grub2-2.06-44.fc36 debug=all
none
grub2-2.06-44.fc36 lsefimmap none

Description greg.w.williamson 2022-07-28 22:47:03 UTC
Created attachment 1900061 [details]
lsefimmap output

Description of problem:


Booting an iso over pxe on uefi using grub does not work.


How reproducible: Always


Steps to Reproduce:
1. Setup a pxe server
2. Setup a grub.cfg to boot an iso.
3. Try to boot it.
4  Cry.

Actual results:

It does not boot.

Expected results:

It boots.

Additional info:
Worked with Centos 8.2 grubx64.efi (grub 2.02). Does not work with grux64.efi from Centos 9-streams or fedora 36 (grub 2.06)

Comment 1 greg.w.williamson 2022-07-28 22:49:59 UTC
Created attachment 1900062 [details]
efi=debug dmesg from working ceentos grub

Comment 2 greg.w.williamson 2022-07-28 22:51:19 UTC
Created attachment 1900063 [details]
error message

Comment 3 greg.w.williamson 2022-07-28 22:52:56 UTC
Created attachment 1900064 [details]
grub.cfg

Comment 4 greg.w.williamson 2022-07-28 22:55:28 UTC
The initrd is 753mb the VM has 24gb of ram.

Comment 5 greg.w.williamson 2022-08-01 16:04:36 UTC
Created attachment 1900644 [details]
grub with debug=all

Comment 6 Fedora Update System 2022-08-01 22:16:24 UTC
FEDORA-2022-71a268de4d has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-71a268de4d

Comment 7 greg.w.williamson 2022-08-02 00:29:13 UTC
Created attachment 1902757 [details]
grub2-2.06-44.fc36  debug=all

New errors on new grub build

Comment 8 greg.w.williamson 2022-08-02 00:32:26 UTC
Created attachment 1902758 [details]
grub2-2.06-44.fc36 lsefimmap

Comment 9 Fedora Update System 2022-08-02 01:16:25 UTC
FEDORA-2022-71a268de4d has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-71a268de4d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-71a268de4d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2022-08-02 14:57:15 UTC
FEDORA-2022-8ffd58c713 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8ffd58c713

Comment 11 Peter Jones 2022-08-02 15:35:52 UTC
Please give grub2-2.06-45.fc36 a shot; it should do better than -44 did.

Comment 12 greg.w.williamson 2022-08-02 16:14:04 UTC
Seems to be fixed under grub2-2.06-45.fc36. Thank you very much :).

Comment 13 Fedora Update System 2022-08-03 01:16:53 UTC
FEDORA-2022-8ffd58c713 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-8ffd58c713`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-8ffd58c713

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2022-08-04 01:33:56 UTC
FEDORA-2022-8ffd58c713 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Robbie Harwood 2022-09-08 00:14:29 UTC
Breaks with the current chainloader behavior for grub loading Windows, and that's a release criterion, so reverting.  Will plan a better fix for this, hopefully.

Comment 16 Robbie Harwood 2023-01-11 19:27:51 UTC
Hi, I think there's a good chance this is fixed with grub2-2.06-75

Comment 17 Marta Lewandowska 2023-01-18 12:59:44 UTC
Testing with an artificially inflated fedora initrd (795M), I don't get the out of memory error (comment#2) with grub2-2.06-75.fc37.