Netbooting Raspberry Pi with NFS root


How set up a Raspberry Pi for network boot without local storage and run it with NFS root filesystem. This should mostly be somewhat universal across Raspberry Pi 3 & 4, but the local "make it netboot" prep is different between Pi 3 & Pi 4 and this is mostly about Raspberry Pi 4.

preconditions

We need:

preparing the Pi

DHCP

We're assuming isc-dhcp-server here.

NFS server

TFTP server

Let's go!

Now shutdown your Raspberry Pi, remove power and SD-card and plug in the power again. It should now boot via the network and mount its root filesystem via NFS.
Last modified 2024-03-10 by Alexander Schreiber