Skip to main content
3 of 5
added 184 characters in body
InsaneCoder
  • 133
  • 1
  • 1
  • 6

How to boot linux kernel from network through GRUB2 console?

My test hw, on which I want to boot, is MinnowBoard Max Turbot which is an x86 machine with UEFI and so far, I have successfully built GRUB2 from source and it successfully boots kernel from USB.

Now, I want to boot the linux kernel and rootfs from network. Since, Minnowboard's UEFI firmware doesn't support PXE (network drivers unavailable), I chose to get it through GRUB2, which can be built with network drivers.

I can setup dhcp server and tftp server, however, I am not able to find any Wiki/tutorial on how to specify grub2 the IP address of the tftp and dhcp servers. How do I tell GRUB2 to boot from network?

The best I could find was this : https://tr.opensuse.org/SDB:Booting_from_the_Network_with_GRUB

However, it uses grub-legacy. The GRUB2 documentation is also not clear.

Can someone please tell me the steps and commands to tell grub2 to boot kernel from network? Also what modules do I need to build GRUB2 with (full command to build GRUB2 would be appreciated)

InsaneCoder
  • 133
  • 1
  • 1
  • 6