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
Quoted 9 lines
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/
It's bzr branch
Quoted 6 lines
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.
Doesn't look empty to me:
http://www.gnu.org/software/grub/manual/html_node/Network.html#Network
Quoted 8 lines
John
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 1 line · Ian Turner
What happens when you load GRUB from media and then load the pxe module?
Well, I don't yet know, as I've not been able to build a bootable floppy image. This is 1.98, installed with --prefix=/usr/grub2 to avoid
clashing with my production grub1 and I try this
/usr/grub2/sbin/grub-install --root-directory=/mnt/dkt fd0
where I created a device map:
cat /mnt/dkt/boot/device.map
(fd0) /dev/sdc
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'.
I copied my grub_install command exactly (other than the explicit path of the script) from the one shown in
In particular the device name of fd0.
Also the bash -x trace shows that elsewhere in the grub_install script, it did use my devicemap and did map fd0 to /dev/sdc (and in fact built a lot of files on the diskette). But not bootable!
Can anyone help me build the bootable floppy? Or does it have to be a CD? Or is there some other way I can try out your suggestion?
Quoted 2 lines
Do you get access to the PXE filesystem?
I think you can even specify the tftp server to use by ...
John
Quoted 13 lines · John Lumby
Quoted 2 lines · Ian Turner
What happens when you load GRUB from media and then load the pxe module?
Well, I don't yet know, as I've not been able to build a bootable floppy image. This is 1.98, installed with --prefix=/usr/grub2 to avoid
clashing with my production grub1 and I try this
/usr/grub2/sbin/grub-install--root-directory=/mnt/dkt fd0where I created a device map:
Quoted 8 lines
cat
/mnt/dkt/boot/device.map
(fd0)/dev/sdcbut the
grub_installfails 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
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
Quoted 23 lines
I copied my
grub_installcommand exactly (other than the explicit path of the script) from the one shown inIn particular the device name of fd0.
Also the bash -x trace shows that elsewhere in the
grub_installscript, it did use my devicemap and did map fd0 to/dev/sdc(and in fact built a lot of files on the diskette). But not bootable!Can anyone help me build the bootable floppy? Or does it have to be a CD? Or is there some other way I can try out your suggestion?
Quoted 3 lines
Do you get access to the PXE filesystem?
I think you can even specify the tftp server to use by ...John
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko