Skip to contentSkip to conversation

pxebooting with GRUB 2

DISCUSSION Daniel Kahn Gillmor 4 participants 9 messages Sep 20, 2007 – Nov 10, 2007

lore
Share & tools
lore
#0 lore raw

Hi folks--

I've searched high and low for documentation about how to get PXE booting working with GRUB 2, but i haven't had much luck. Can anyone give me pointers?

What i've done so far
---------------------

I found a brief mention on the wiki [0] and followed those
instructions: "cat pxeboot.img core.img >pxegrub" does create a PXE-bootable grub image, but once the image is loaded, GRUB 2 doesn't seem to be capable of downloading other files over the network (this includes being unable to download its own config file).

I get dropped into a "rescue GRUB shell", which appears to be only useful for pulling files off of a local disk -- but that sort of defeats the purpose. Here's what i see on the screen after the pxe boot:

Welcome to GRUB!

Entering into rescue mode...
grub rescue>

looking at the logs of my TFTP and DHCP servers, i see the initial (boot ROM-generated) PXE interaction of a DHCPDISCOVER/OFFER/REQUEST/ACK handshake, and the initial TFTP download of the pxegrub file itself, and then nothing.

What else do i need to to enable pulling files via TFTP?

i've successfully pulled files off a TFTP server with a patched GRUB Legacy [1], but i'd like to support and use GRUB 2 if possible.

Details
-------

FWIW, the above attempt was done using a Via Rhine NIC with functional PXE boot ROM. the version of GRUB 2 that i tried is the one in debian unstable at the moment (1.95+20070828-2), and i was using the core.img generated on this same debian unstable system that initially boots from a local disk. Maybe i need to regenerate a different core.img somehow?

Final Questions
---------------

Is there documentation somewhere that i missed? I'd love to get a pointer or two if it's out there.

I'm also happy to help debug this, and to write up my notes on the wiki, if folks think that'd be useful.

What next steps should i take to get network booting working? Do you have any advice?

Thanks for making this useful tool, and for making it free.

Regards,

       --dkg

[0] http://grub.enbug.org/TestingOnX86#head-27ab6e1ddfd82d0c72737201a4e17e3a91ea1a24
[1] http://os.inf.tu-dresden.de/~adam/grub/0.97/pxegrub-0.97-os.3.gz

#1 lore raw
Quoted 3 lines · Daniel Kahn Gillmor

I've searched high and low for documentation about how to get PXE booting working with GRUB 2, but i haven't had much luck. Can anyone give me pointers?

Any pointers at all? even "this isn't a priority; don't bother trying" would be appreciated so i don't waste any more time.

i've seen many links to this:

http://www.inma.ucl.ac.be/~guffens/grub2_netboot/index.html

but the page appears to be dead, and the wayback machine provides text, but no graphics or tarballs to download:

http://web.archive.org/web/20061210001116/http://www.inma.ucl.ac.be/~guffens/grub2_netboot/index.html

Thanks for this great tool,

       --dkg
#2 lore raw

Hello!
To be honest I wasn't aware that anyone did do all of that. According to the other list members they want to accommodate the abillities of GRUB2 to be able to boot an operating system on other platforms, and then the concepts of network booting which was accomplished on the original GRUB-Legacy system.

Is there a reason why you've not tried a network boot using GRUB-Legacy? Or are you not working on an X86 based platform?

--
Gregg C Levine [email protected] "The Force will be with you. Always." Obi-Wan Kenobi

Quoted 21 lines

-----Original Message-----
From:
[email protected] [mailto:grub-devel-bounces+hansolofalcon=worldnet.att.net@gnu. org] On Behalf Of Daniel Kahn Gillmor
Sent: Monday, September 24, 2007 5:41 PM
To: The development of GRUB 2
Subject: Re: pxebooting with GRUB 2

Quoted 3 lines · Daniel Kahn Gillmor

I've searched high and low for documentation about how to get PXE booting working with GRUB 2, but i haven't had much luck. Can anyone give me pointers?

Any pointers at all? even "this isn't a priority; don't bother trying" would be appreciated so i don't waste any more time.

i've seen many links to this:

Quoted 7 lines

http://www.inma.ucl.ac.be/~guffens/grub2_netboot/index.html

but the page appears to be dead, and the wayback machine provides text, but no graphics or tarballs to download:

http://web.archive.org/web/20061210001116/http://www.inma.ucl.

ac.be/~guffens/grub2_netboot/index.html

Thanks for this great tool,

       --dkg
#3 lore raw
Quoted 5 lines · Gregg C Levine

To be honest I wasn't aware that anyone did do all of that. According to the other list members they want to accommodate the abillities of GRUB2 to be able to boot an operating system on other platforms, and then the concepts of network booting which was accomplished on the original GRUB-Legacy system.

ah, i hadn't realized it was that low of a priority. thanks for the information.

Quoted 2 lines

Is there a reason why you've not tried a network boot using GRUB-Legacy? Or are you not working on an X86 based platform?

Perhaps i've been confused by the idea of what "grub legacy" means. Yes, i've tried and succeeded at pxebooting with a patched version of GRUB-legacy [0], but i thought i understood that new features/patches weren't being accepted into GRUB Legacy. In particular, i was hoping to see a pxe-capable grub or grub2 packaged cleanly for my distro of choice (debian), but interpreted a comment by Robert Millan [1] to imply that GRUB2 netbooting or PXEbooting was superior and better-supported in GRUB2. I probably didn't understand the context of his remarks well.

I suppose i should go back to pushing for in-distro GRUB-Legacy PXE-booting support, if it's not a priority for GRUB2. I definitely like the idea of GRUB working on other platforms too, and i don't want to distract from that goal.

Thanks for the help, the information, and the software.

Regards,

        --dkg

[0] http://os.inf.tu-dresden.de/~adam/grub/0.97/
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217048#46

#4 lore raw
In reply to Daniel Kahn Gillmor
Quoted 8 lines · Daniel Kahn Gillmor
Quoted 3 lines · Daniel Kahn Gillmor

I've searched high and low for documentation about how to get PXE booting working with GRUB 2, but i haven't had much luck. Can anyone give me pointers?

Any pointers at all? even "this isn't a priority; don't bother trying" would be appreciated so i don't waste any more time.

WIP. Check latest mails from Marco on the subject. He sent patches implementing ethernet infrastructure and requested feedback.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#5 lore raw
Quoted 2 lines · Robert Millan

WIP. Check latest mails from Marco on the subject. He sent patches implementing ethernet infrastructure and requested feedback.

Ah, thanks. Are you referring to this, from two months ago?

http://lists.gnu.org/archive/html/grub-devel/2007-08/msg00011.html

I couldn't find a more recent e-mail. And though the message suggests that the patchset will be in CVS within a week (i.e. mid-August), it doesn't look merged to me. i'm looking at CVS HEAD, though -- is there another branch i should be trying?

I'm not sure what feedback i can give as i'm not a grub developer, and there doesn't appear to be enough in the patch (e.g. no IPv4 support) to make it something i can test as an end user.

Marco, can you give another status report on netbooting?

Thanks for the followup,

       --dkg
#6 lore raw
Quoted 5 lines · Daniel Kahn Gillmor
Quoted 2 lines · Robert Millan

WIP. Check latest mails from Marco on the subject. He sent patches implementing ethernet infrastructure and requested feedback.

Quoted 8 lines

Ah, thanks. Are you referring to this, from two months ago?

http://lists.gnu.org/archive/html/grub-devel/2007-08/msg00011.html

I couldn't find a more recent e-mail. And though the message suggests that the patchset will be in CVS within a week (i.e. mid-August), it doesn't look merged to me. i'm looking at CVS HEAD, though -- is there another branch i should be trying?

No, that's the one but he's been a bit busy lately.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#7 lore raw
In reply to Daniel Kahn Gillmor
Quoted 5 lines · Daniel Kahn Gillmor
Quoted 2 lines · Robert Millan

WIP. Check latest mails from Marco on the subject. He sent patches implementing ethernet infrastructure and requested feedback.

Quoted 8 lines

Ah, thanks. Are you referring to this, from two months ago?

http://lists.gnu.org/archive/html/grub-devel/2007-08/msg00011.html

I couldn't find a more recent e-mail. And though the message suggests that the patchset will be in CVS within a week (i.e. mid-August), it doesn't look merged to me. i'm looking at CVS HEAD, though -- is there another branch i should be trying?

It will be committed soon, now for real ;-)

Quoted 3 lines

I'm not sure what feedback i can give as i'm not a grub developer, and there doesn't appear to be enough in the patch (e.g. no IPv4 support) to make it something i can test as an end user.

No, you are right. In the current state it will not be very useful. I will work on this after dealing with patches that were sent in, LinuxBIOS related work and ATA support.

Quoted 1 line

Marco, can you give another status report on netbooting?

This patch that will be committed soon will be the foundation of networking support. After that I will add IPv4, UDP, TFTP, etc.

--
Marco

#8 lore raw
Quoted 1 line · Marco Gerards

It will be committed soon, now for real ;-)

Thanks for the followup. i await with bated breath; netboot is an important feature for me!

Let me know if there's a patchset i can test at some point as an end user. Sorry i don't have the skills/time/knowledge to contribute code in this case.

Regards,

        --dkg