All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: status of grub netboot in GRUB2
@ 2010-09-01 20:40 Turner, Ian
  2010-09-02 20:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 15+ messages in thread
From: Turner, Ian @ 2010-09-01 20:40 UTC (permalink / raw)
  To: 'grub-devel@gnu.org'

John,

What happens when you load GRUB from media and then load the pxe module? Do you get access to the PXE filesystem? I think you can even specify the tftp server to use by setting some variables.

--Ian

(Apologies for the HTML mail - this mail client doesn't support composing plain text messages)

----- Original Message -----
From: grub-devel-bounces+ian.turner=deshaw.com@gnu.org <grub-devel-bounces+ian.turner=deshaw.com@gnu.org>
To: grub-devel maillist <grub-devel@gnu.org>
Sent: Wed Sep 01 11:12:26 2010
Subject: Re: status of grub netboot in GRUB2


Thanks for the numerous replies.    Some comments interspersed and one question at the end.

Lennart Sorensen wrote:

|  What is the point of having a bootloader that needs to sit on a disk on
|  a box, when then network boots?  With PXE and the like you don't need
|  any disk and means you are really net booting.

There are various situations where PXE is not an answer.   Examples -
   no PXE in the NIC
   The system BIOS can't or won't communicate with my tftp network server -
         e.g. maybe this is an Apple IMac which refuses to tftp to my server
   and other posters mentioned other reasons.
Basically,   I am hoping for what GRUB1 offered -
fetch a linux kernel over the network using tftp under control of GRUB.

Ian Turner wrote:
|  But I suspect you can boot GRUB from physical media
|  and then still activate the PXE module afterwards.
    ...
|  Netboot works in grub2, but only using the PXE protocol. 

Very interesting  -  but how?   see my question below.

Vladimir Serbinenko wrote:
|  Manoelo Abranches is working on this feature:
|  http://bzr.savannah.gnu.org/r/grub/people/mrabran/grub_net/

I looked and don't see any content anywhere under that page
or the neighbouring http://bzr.savannah.gnu.org/r/grub/people/phcoder/net/.bzr/

Lennart Sorensen wrote:

|  Well a neat program for booting over the internet would be gPXE:
|  http://boot.kernel.org/

Yes and no.   It can fetch a kernel over the network,  but it's not GRUB!
   -  when run in boot program mode, can't be embedded on hard disk (I think),
      has to reside on floppy or CDRom
   -  I think this mode of use was never its primary intention -  it's designed to be
      burned into a eeprom and operate automatically  - hence ...
   -  ... really ugly user interface as compared to GRUB
          (no command recall, useless help, no completion, etc)
   -  strange and apparently sometimes unsuccessful method for building a version with support
      for my NIC  -  I have to go to some site and "order" it,   rather than configure / make etc.

Question:   is the current (1.98) netboot/PXE functionality documented somewhere?
I did try reading the 1.98 info but the node for "Network" is empty -
and it seems nothing there in the .texi.   Sorry if this is all covered back in the archives
but I don't see it or it's out of date.

John
 		 	   		  
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: status of grub netboot in GRUB2
@ 2010-09-05 19:19 John Lumby
  0 siblings, 0 replies; 15+ messages in thread
From: John Lumby @ 2010-09-05 19:19 UTC (permalink / raw)
  To: grub-devel maillist


Vladimir Serbinenko wrote:
>>
>> but the grub_install fails and a bash -x of it reveals,  near the end,
>>
>> /usr/grub2/sbin/grub-setup --directory=/mnt/dkt/boot/grub 
>> --device-map=/mnt/dkt/boot/grub/device.map fd0
>> Invalid device `fd0'.
>>   
> Well your problem is obvious:
> 
> /mnt/dkt/boot/device.map != /mnt/dkt/boot/grub/device.map

Sorry,  it really was located in /mnt/dkt/boot/grub/device.map for that run -
I had moved it there but cut'n'pasted the wrong cat command

> 
> And also it's not recommended to specify GRUB device on command line. Just 
> remove all device.map and do:
> 
>  /usr/grub2/sbin/grub-install --root-directory=/mnt/dkt /dev/sdc
> 

Thanks Vladimir;  I tried that and it told me (in the bash -x trace)

350+ /usr/grub2/sbin/grub-setup --directory=/mnt/dkt/boot/grub --device-map=/mnt/dkt/boot/grub/device.map /dev/sdc
/usr/grub2/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk.  This is a BAD idea..
/usr/grub2/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists. ...
/usr/grub2/sbin/grub-setup: error: if you really want blocklists, use --force.

so I ran it with --force
     /usr/grub2/sbin/grub-install --root-directory=/mnt/dkt --force /dev/sdc
and finally I have a bootable grub-1.98 floppy.
(I think the info on making a boot floppy needs to be updated)

So now I am trying Ian's suggestion :
insmod pxe
     [ grub prompt - no error - successful ]
root (pxe:192.168.3.4)
     error:  no such disk
root (pxe)
     error:  no such disk

Maybe I am not using the pxe function correctly?
Ian had written
>> I think you can even specify the tftp server to use by setting some variables.
I don't see any mentioned  -  I used the (pxe:192.168.3.4) syntax as described in the info.

Anyone suggest anything I might try?

John

 		 	   		  

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: status of grub netboot in GRUB2
@ 2010-09-01 15:12 John Lumby
  2010-09-02 20:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2010-09-05  1:46 ` John Lumby
  0 siblings, 2 replies; 15+ messages in thread
From: John Lumby @ 2010-09-01 15:12 UTC (permalink / raw)
  To: grub-devel maillist


Thanks for the numerous replies.    Some comments interspersed and one question at the end.

Lennart Sorensen wrote:

|  What is the point of having a bootloader that needs to sit on a disk on
|  a box, when then network boots?  With PXE and the like you don't need
|  any disk and means you are really net booting.

There are various situations where PXE is not an answer.   Examples -
   no PXE in the NIC
   The system BIOS can't or won't communicate with my tftp network server -
         e.g. maybe this is an Apple IMac which refuses to tftp to my server
   and other posters mentioned other reasons.
Basically,   I am hoping for what GRUB1 offered -
fetch a linux kernel over the network using tftp under control of GRUB.

Ian Turner wrote:
|  But I suspect you can boot GRUB from physical media
|  and then still activate the PXE module afterwards.
    ...
|  Netboot works in grub2, but only using the PXE protocol. 

Very interesting  -  but how?   see my question below.

Vladimir Serbinenko wrote:
|  Manoelo Abranches is working on this feature:
|  http://bzr.savannah.gnu.org/r/grub/people/mrabran/grub_net/

I looked and don't see any content anywhere under that page
or the neighbouring http://bzr.savannah.gnu.org/r/grub/people/phcoder/net/.bzr/

Lennart Sorensen wrote:

|  Well a neat program for booting over the internet would be gPXE:
|  http://boot.kernel.org/

Yes and no.   It can fetch a kernel over the network,  but it's not GRUB!
   -  when run in boot program mode, can't be embedded on hard disk (I think),
      has to reside on floppy or CDRom
   -  I think this mode of use was never its primary intention -  it's designed to be
      burned into a eeprom and operate automatically  - hence ...
   -  ... really ugly user interface as compared to GRUB
          (no command recall, useless help, no completion, etc)
   -  strange and apparently sometimes unsuccessful method for building a version with support
      for my NIC  -  I have to go to some site and "order" it,   rather than configure / make etc.

Question:   is the current (1.98) netboot/PXE functionality documented somewhere?
I did try reading the 1.98 info but the node for "Network" is empty -
and it seems nothing there in the .texi.   Sorry if this is all covered back in the archives
but I don't see it or it's out of date.

John
 		 	   		  

^ permalink raw reply	[flat|nested] 15+ messages in thread
* status of grub netboot in GRUB2
@ 2010-08-31 19:05 John Lumby
  2010-08-31 19:16 ` Lennart Sorensen
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: John Lumby @ 2010-08-31 19:05 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]


Anyone know if any work is being done on implementing a netboot function into GRUB2 similar to what is available in GRUB1?    I.e.,   
   .   supports current network hardware with self-contained drivers
   .  does not require PXE hardware
   .  does not require any other software

I see this article in this forum talking about some plans 
http://lists.gnu.org/archive/html/grub-devel/2006-05/msg00058.html

and this one more recently
http://lists.gnu.org/archive/html/grub-devel/2008-01/msg00640.html

 -  but they are all years ago ...

Or -  is there any kind of netboot functionality in GRUB2 or being worked on by anyone?

John Lumby
 		 	   		  

[-- Attachment #2: Type: text/html, Size: 985 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-09-05 19:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 20:40 status of grub netboot in GRUB2 Turner, Ian
2010-09-02 20:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
  -- strict thread matches above, loose matches on Subject: below --
2010-09-05 19:19 John Lumby
2010-09-01 15:12 John Lumby
2010-09-02 20:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-09-05  1:46 ` John Lumby
2010-09-05 10:26   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-08-31 19:05 John Lumby
2010-08-31 19:16 ` Lennart Sorensen
2010-08-31 19:20   ` Turner, Ian
2010-08-31 19:16 ` Turner, Ian
2010-08-31 19:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-08-31 20:26   ` Lennart Sorensen
2010-09-02  4:38   ` Manoel Rebelo Abraches
2010-09-02 20:37     ` Vladimir 'φ-coder/phcoder' Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.