Network Boot With Raspberry Pi: Everything you need to know

The Raspberry Pi is a small, low-cost computer that has become increasingly popular for use in a variety of projects. One of the most useful features of the Raspberry Pi is its ability to be used as a network boot device. This means that you can use the Raspberry Pi to boot up a computer or other device over the network, without the need for a physical connection. This can be useful for a variety of applications, such as setting up a home server, running a web server, or even running a game server. In this article, we will discuss how to set up network boot with Raspberry Pi.

The first step is to install the necessary software on the Raspberry Pi. This includes the operating system, such as Raspbian, as well as any other software packages that you may need. Once the software is installed, you will need to configure the Raspberry Pi to act as a network boot device. This involves setting up a DHCP server, as well as configuring the network settings.

Once the Raspberry Pi is configured, you will need to connect it to the network. This can be done either through a wired connection or a wireless connection. Once the Raspberry Pi is connected to the network, you will need to configure the network settings on the device that you want to boot. This includes setting the IP address, subnet mask, and gateway.

Once the network settings are configured, you will need to configure the Raspberry Pi to act as a network boot device. This involves setting up a TFTP server, as well as configuring the boot settings. Once the Raspberry Pi is configured, you will be able to boot the device over the network.

Network boot with Raspberry Pi can be a great way to set up a home server, run a web server, or even run a game server. With the right software and configuration, you can easily set up a network boot device with the Raspberry Pi.

After USB boot was added a few years ago, we can now boot a Raspberry Pi from nothing. An Internet connection and a blank media storage is now enough to get started, you no longer need a computer to flash your first SD card. Want to give it a try? I will explain every step in this article.

The network boot on Raspberry Pi is a way to install an operating system directly from the Internet on a blank SD card. Once the Raspberry Pi firmware is up-to-date and the device is connected to the Internet, it will download the system image directly onto the SD card.

This is a really nice new feature on Raspberry Pi, but let’s start from the beginning. I want to make sure you understand the theory before trying it on your device.

If you need help getting started on Raspberry Pi, I have an entire course to guide you through your first steps. I’ll help you use the perfect hardware, plug everything in and install your first system. You’ll also do your first project with me, just to make sure you are ready for the next level. Get all the information on this page if you are interested.

What is network boot on Raspberry Pi?

The network boot feature on Raspberry Pi is a way to download a new operating system from the Raspberry Pi directly. Once connected to the Internet, the Raspberry Pi will start a minimal interface (looking like Raspberry Pi Imager), to flash the system you want on your media (SD or USB).

I know that network boot could mean different things to different people. I was a sysadmin, and when I saw the “network boot” announcement, I thought of powering the Raspberry Pi on remotely (wake on LAN) or even having a server to remotely deploy custom systems on Raspberry Pi. But this isn’t what we are talking about here.

But it’s already an exciting feature. Until now, installing a Raspberry Pi without a computer was really complicated. I did a video explaining how to install it from your phone, but it wasn’t that easy. Now, people buying a Raspberry Pi as a cheap first computer at home can install almost anything on it directly.

The only requirement to use this feature is to have a way to connect your Raspberry Pi to your network with an Ethernet cable (RJ45). Currently, it’s not possible to use this feature in Wi-Fi directly (but I’ll give you a workaround if you don’t have another option).

If you are looking for exclusive tutorials, I post a new course each month, available for premium members only. Join the community to get access to all of them right now!

How to use network boot on Raspberry Pi?

Here are the required steps to use network boot on Raspberry Pi:

  • Make sure your firmware is up-to-date.
  • Remove all media and plug the Ethernet cable.
  • Start the Raspberry Pi and follow the instructions.

Let’s learn how to do this.

Update the bootloader

There is a small piece of software stored on the Raspberry Pi board directly to boot the device. When you start a Raspberry Pi without any media, that’s the part that will handle the display and try to detect your SD card.

That’s what I call the “bootloader” or “firmware”, we need to update it to handle network boot, as it’s a new feature (like for the USB boot support a few years ago if you already did it at that time).

To do this, you need to start on an existing Raspberry Pi OS installation, and follow these steps:

  • First, open a terminal and make sure your system is up-to-date with:
    sudo apt update
    sudo apt full-upgrade
  • Then, update the firmware with:
    sudo rpi-update
    sudo rpi-eeprom-update -d -a

If there is a new version available, it will do the update, and it’ll use the latest version on the next reboot. In any case, after typing these commands, you’re ready to test the network boot on your Raspberry Pi – even if it does nothing.

Are you a bit lost in the Linux command line? Check this article first for the most important commands to remember, and a free downloadable cheat sheet so you can have the commands at your fingertips.

Connect the Raspberry Pi to your network

You can now stop the Raspberry Pi. Just make sure it’s connected to your network with an Ethernet cable, that’s the only requirement.

If your Raspberry Pi is far from your Internet router, and you don’t have any RJ45 sockets in your home, here is what I’m doing at home:

  • I use a Wi-Fi extender like this one on Amazon.
  • It’s connected to my Wi-Fi, but have a switch on it.
  • I can then use Ethernet cables to connect my Raspberry Pi devices to it, and use the network boot, even if I’m not directly connected to my router.

I don’t do this for network boot to avoid configuring the Wi-Fi SSID and password with each new installation, but it’s a nice trick if you can’t plug your Raspberry Pi directly into your router.
By the way, you can find cheaper alternatives if you only have one Raspberry Pi to plug (this one is great for example).

Start the Raspberry Pi and use network boot

By default, the Raspberry Pi will try to boot on the SD card or USB drive if there is one connected. So, first you need to remove all media. You can then follow these steps to test network boot:

  • Power the Raspberry Pi on.
  • You should get a screen like this:
  • As mentioned on the screen, you need to press and hold the SHIFT key to start the network boot.
  • If the network is working properly, it will then start downloading the installer:
  • After a few seconds, you’ll get a screen that looks almost like Raspberry Pi Imager, directly on the Raspberry Pi monitor:

From there, we can now move forward and install a new operating system on the Raspberry Pi.

Install a new system with network boot

If you are used to Raspberry Pi Imager, you’ll be at home. The interface is almost the same, with the same OS list and almost the same steps.

  • Start by adjusting the language and keyboard layout if needed (especially if you’ll use the advanced options).
  • Click on “Choose OS”, and select the operating system you want to install in the list.
  • Insert a media storage (USB drive or SD card) and click on “Choose Storage” to select it.
  • With some operating systems, advanced options are available.
    You can use it to connect to your Wi-Fi network automatically, set the first user and password, etc.
    More details about this in my dedicated Raspberry Pi Imager guide.
  • Finally, click on “Write” to start the download and files copy process.

Once done, the Raspberry Pi will automatically reboot and start on your SD card or USB drive. There is nothing else to do.
From there, you can follow the same steps as if it was a brand-new installation created from your computer (read this for Raspberry Pi OS, for example).

That’s it! You now know how to use network boot on a Raspberry Pi. I hope you enjoyed it, and please leave a comment in the community if you have any additional questions about this new feature, I will do my best to answer them.

Additional Resources

Not sure where to start?
Understand everything about the Raspberry Pi, stop searching for help all the time, and finally enjoy completing your projects.
Watch the Raspberry Pi Bootcamp course now.

Master your Raspberry Pi in 30 days
Don’t want the basic stuff only? If you are looking for the best tips to become an expert on Raspberry Pi, this book is for you. Learn useful Linux skills and practice multiple projects with step-by-step guides.
Download the e-book.

VIP Community
If you just want to hang out with me and other Raspberry Pi fans, you can also join the community. I share exclusive tutorials and behind-the-scenes content there. Premium members can also visit the website without ads.
More details here.

Need help building something with Python?
Create, understand, and improve any Python script for your Raspberry Pi.
Learn the essentials step-by-step without losing time understanding useless concepts.
Get the e-book now.

You can also find all my recommendations for tools and hardware on this page.

Network Boot With Raspberry Pi: Everything You Need to Know

The Raspberry Pi is a powerful and versatile device that can be used for a variety of projects. One of the most useful features of the Raspberry Pi is its ability to network boot, which allows you to boot the device from a network connection instead of a local storage device. Network booting can be used to quickly and easily set up a Raspberry Pi for a variety of tasks, such as running a web server or a media center.

What is Network Booting?

Network booting, also known as network booting or PXE booting, is a process by which a computer can boot from a network connection instead of a local storage device. This process is useful for quickly setting up a computer for a specific task, such as running a web server or a media center. Network booting is also useful for quickly deploying multiple computers with the same configuration.

How Does Network Booting Work?

Network booting works by using a special protocol called Preboot Execution Environment (PXE). This protocol allows a computer to boot from a network connection instead of a local storage device. The PXE protocol is used to download a boot image from a network server, which is then used to boot the computer. The boot image can be a Linux distribution, such as Raspbian, or a custom image created for a specific task.

How to Set Up Network Booting on Raspberry Pi

Setting up network booting on a Raspberry Pi is relatively simple. First, you will need to install a PXE server on a computer connected to the same network as the Raspberry Pi. The PXE server will be responsible for providing the boot image to the Raspberry Pi. Once the PXE server is set up, you will need to configure the Raspberry Pi to boot from the network. This can be done by editing the Raspberry Pi’s boot configuration file, which is located in the /boot/config.txt file.

Once the Raspberry Pi is configured to boot from the network, you will need to create a boot image for the Raspberry Pi. This can be done by downloading a Linux distribution, such as Raspbian, and creating a custom image for the Raspberry Pi. Once the boot image is created, it can be uploaded to the PXE server and the Raspberry Pi will be able to boot from the network.

Conclusion

Network booting is a powerful and versatile feature of the Raspberry Pi that can be used to quickly and easily set up a Raspberry Pi for a variety of tasks. Setting up network booting on a Raspberry Pi is relatively simple and can be done by installing a PXE server and configuring the Raspberry Pi to boot from the network. Once the Raspberry Pi is configured to boot from the network, a boot image can be created and uploaded to the PXE server, allowing the Raspberry Pi to boot from the network.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?