Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB Rescue Mode Error During PXE Boot of a Prebuilt Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sam-510
n00b
n00b


Joined: 08 Nov 2023
Posts: 21

PostPosted: Mon Jul 22, 2024 10:19 am    Post subject: GRUB Rescue Mode Error During PXE Boot of a Prebuilt Gentoo Reply with quote

I've successfully set up a PXE boot environment for a diskless LiveCD. Now, I'm trying to PXE boot a prebuilt Gentoo system from another Gentoo system. I've configured both DHCP and TFTP servers:
The DHCP server assigns IP addresses to devices on the network and directs them to the TFTP server for boot files.

Code:

subnet 192.168.xx.x netmask 255.255.252.0 {
    range 192.168.xx.190 192.168.xx.200;
    option routers 192.168.xx.1;
    option broadcast-address 192.168.xx.xx;
    option domain-name-servers 192.168.xx.x;

    next-server 192.168.xx.xxx;  # IP address of your TFTP server
    filename "grubx64.efi";
    #filename "boot/grub/x86_64-efi/grub.efi";  # Boot file provided by TFTP server
}


The TFTP server serves the necessary boot files to clients. These files, including the GRUB configuration files, are placed in the TFTP directory.
Code:
cat /etc/init.d/in.tftpd
INTFTPD_PATH="/tftpboot/"
INTFTPD_OPTS="-R 4096:32767 --secure --create -vvv  ${INTFTPD_PATH}"


cat grub.cfg
Code:

set timeout=5
set default=0

menuentry "Gentoo Installation" {
    linux /gentoo/vmlinuz-6.6.38-gentoo-x86_64 root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/gentoo/image.squashfs cdroot
    initrd /gentoo/initramfs-6.6.38-gentoo-x86_64.img

However, when attempting to boot another VM on the same network using PXE, the boot process enters GRUB rescue mode with the error message: "grub rescue> gt3 not found."

Here is my file structure:
Code:
ls -l
total 4972960
drwxr-xr-x 3 root root       4096 Jul 19 17:17 boot
drwxr-xr-x 2 root root       4096 Jul 19 17:28 gentoo
-rw-r--r-- 1 root root        255 Jul 19 18:43 grub.cfg
-rwxr-xr-x 1 root root     143360 Jul 22 09:31 grubx64.efi
-rw-r--r-- 1 root root 5092147200 Jul 19 17:26 image.squashfs
drwxr-xr-x 2 root root       4096 Jul 19 18:54 test
gentoo-pxe /tftpboot # ls -l gentoo/
total 4996148
-rw-r--r-- 1 root root 5092147200 Jul 19 17:33 image.squashfs
-rw-r--r-- 1 root root   12101592 Jul 19 17:17 initramfs-6.6.38-gentoo-x86_64.img
-rw-r--r-- 1 root root   11796992 Jul 19 17:17 vmlinuz-6.6.38-gentoo-x86_64

Can anyone help me with this issue? would appreciate guidance on where I might be going off track.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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