Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB out-of-memory issues when booting from an image file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
leyvi
n00b
n00b


Joined: 08 Sep 2023
Posts: 65
Location: Israel

PostPosted: Sat Apr 27, 2024 5:24 pm    Post subject: GRUB out-of-memory issues when booting from an image file Reply with quote

I am trying to make a single USB drive that can boot into a live environment from several distros (including Gentoo), so that I can help my friends and family install it (or at least try it out).
I am using grub-mkrescue (see this documentation) to accomplish this. But when I toss the image file it produces into a VM and select one of the menu options, I get "error: out of memory.".
This is strange, since my VM has 16 GiB of RAM allocated, and the largest image I have is smaller than 4 GiB.
I've heard somewhere that GRUB is limited to a certain amount of RAM by default (typically less than the total system RAM), and if so, how do I change that?
I couldn't find any documentation on the subject...

Also, here's my grub.cfg:
Code:

set isoimage=""
set bootloaderpath=""

# Boot the selected OS!
function bootiso {
        loopback isofs $isoimage
        chainloader (isofs)$bootloaderpath
}

# For booting Arch 2024.04.01:
menuentry "ArchLinux 2024.04.01" {
        set isoimage="/distros/archlinux-x86_64.iso"
        set bootloaderpath="/EFI/BOOT/BOOTx64.EFI"
        bootiso
}

# For booting Debian 12.5:
menuentry "Debian 12.5 (KDE)" {
        set isoimage="/distros/debian-live-12.5.0-amd64-kde.iso"
        set bootloaderpath="/EFI/boot/grubx64.efi"
        bootiso
}

# For booting Fedora 39:
menuentry "Fedora 39 (GNOME)" {
        set isoimage="/distros/Fedora-Workstation-Live-x86_64-39-1.5.iso"
        set bootloaderpath="/EFI/BOOT/grubx64.efi"
        bootiso
}

# For booting Gentoo:
menuentry "Gentoo AMD64" {
        set isoimage="/distros/install-amd64-minimal-Gentoo.iso"
        set bootloaderpath="/efi/boot/bootx64.efi"
        bootiso
}

# For booting Linux Mint 21.3:
menuentry "Linux Mint 21.3 (Cinnamon)" {
        set isoimage="/distros/linuxmint-21.3-cinnamon-64bit.iso"
        set bootloaderpath="/EFI/boot/grubx64.efi"
        bootiso
}


Note that I wrote this myself, and that I have little experience working directly with GRUB.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum