Diskless Booting: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m See also |
m Fix up references to GRUB and GRUB legacy |
||
Line 3:
In order to boot up your kernel by network, you need a DHCP server, a TFTP server, and a program acting as client on the other computer.
== The GRUB Legacy Way ==
First, you have to create a floppy with [[GRUB Legacy]] configured for net support. You can
Although this is the simplest way, GRUB Legacy doesn't seem to support all network cards.
== The PXELINUX Way ==
Compile syslinux; a <tt>pxelinux.0</tt> file will be created. It is a PXE binary of a simple bootloader-over-tftp, which can be booted by the client computer (not the one with the TFTP server). After setting up DHCP and TFTP accordingly so the file boots, you can use pxelinux to load "memdisk", which comes with syslinux as well.
This file is loaded with a <tt>memdisk initrd=grub.ima</tt> syntax, which will cause pxelinux to load memdisk and grub.ima through TFTP. Memdisk will hook interrupt 0x13, and boot the disk image that way. (However, not all [[GRUB Legacy]] disk images seem to access floppies through bios. If you've got such an image you're stuck.)
You should get a <tt>pxelinux.0</tt> file, which can be loaded by, for example, etherboot. Many modern computers allow booting from NICs so you only need the TFTP and DHCP server up.
At this point, you can make changes to the grub.ima disk image, and put a [[GRUB Legacy]] config file and your kernel's binaries there.
Try <tt>mount /tftpboot/grub.ima /mnt/fpy -o loop</tt> under linux, for example.
== The gPXE +
[[GRUB
gPXE supports multiboot, but if it detects a multiboot image then it will not provide PXE services. Unfortunately, it detects your generated
To create a
<source lang="text">
Line 46:
</source>
and there are other options to explore as well. Now make sure that you take <tt>grub2pxe,*.lst,*.mod</tt> from the
<source lang="text">
Line 74:
===External Links===
*[http://osdev.berlios.de/netboot.html Tutorial on network booting]
*[http://home.dei.polimi.it/fornacia/progetto_minazzi/index.html#HOW%20TO%20INSTALL%20A%20TFTP%20SERVER Setting up a TFTP server]
*[http://tftpd32.jounin.net/ TFTP32 server]
|