Arachnid / netboot.me

Boot anything, anywhere, anytime
http://netboot.me/
61 stars 13 forks source link

Add "Boot using GRUB2" to "Getting Started" section at netboot.me #38

Open Harvie opened 12 years ago

Harvie commented 12 years ago

I have another HOWTO to be added to http://www.netboot.me/gettingstarted page:

Boot using GRUB2 (from HDD)

Download and save http://static.netboot.me/gpxe/netbootme.iso to /boot/images (you will have to create this directory). Then add this configuration to the end of your /boot/grub/grub.cfg:

# (23) netboot.me
menuentry "netboot.me" {
    loopback loop /images/netbootme.iso
    linux16 (loop)/GPXE.KRN
}

where /images/netbootme.iso is path to downloaded image on partiton where grub is installed. You can also specify different partition as (hd0,1)/images/netbootme.iso.

Harvie commented 12 years ago

BTW if somebody knows how to get netboot.me working under GRUB legacy (1). Don't be shy to let us know :-) I am pretty sure that it's not impossible (even without loopback), but i am using GRUB2 everywhere, so i have no place to test it...

Harvie commented 12 years ago

I've got another ways to boot netboot.me using GRUB 1 or 2 and using pxelinux:

You will need "netbootme.iso" and "memdisk" files. memdisk is part of syslinux and can be built from syslinux >= 4.05 sources as simple as

cd syslinux-4.05/memdisk/
make
sudo cp memdisk /boot/

then you can use the "memdisk" file for several uses:

Boot any .iso (including netbootme.iso)

Using GRUB2

# (42) netboot.me iso
menuentry "netboot.me" {
    linux16 /memdisk iso
    initrd16 /images/netbootme.iso
}

Using GRUB Legacy (1)

title NetBoot.me (iso)
  kernel /memdisk iso
  initrd /images/netbootme.iso

Using PXELinux

PXELinux is netboot image which acts as bootloader that allows you to select and boot one of multiple different images from server (sou you can eg.: choose between Archlinux, Debian, Netboot.me and Windows XP).

To make this work copy netbootme.iso and memdisk images to /var/lib/tftpboot/ and add following lines to /var/lib/tftpboot/pxelinux.cfg/default

LABEL netbootme
    kernel memdisk
    append iso initrd=netbootme.iso