January 20, 2025

Free Your Rive

Building Bridges to the Digital Age

Build a PXE server from your old PC with iVentoy

Build a PXE server from your old PC with iVentoy

Setting up a new operating system can be a thrilling experience, especially if you’re a distro hopper addicted to trying out new Linux distributions. But before you can get cracking with your new OS, you’ll have to go through the tedious process of creating a bootable USB drive.

Thankfully, a Preboot Execution Environment (PXE) server can simplify this process by letting you boot from a central ISO repository over the local network. If you’ve got a spare system with an Ethernet port, you can convert it into a PXE server using iVentoy.

Deploying the PXE server

iVentoy is compatible with Windows 11 and Linux, so you’re free to choose either OS for the PXE server. Once you’re ready, you can follow these steps to set up iVentoy:

  1. Head to the official iVentoy GitHub repository and download the archived package compatible with your OS.
  2. Extract the iventoy.zip folder.

    Extracting the iVentoy.zip folder

  3. If you’re on Linux, you can launch the terminal inside the directory where you downloaded the iventoy.tar.gz file and extract it with this command:

    tar -xvzf iventoy-version-linux-free.tar.gz
    Extracting the iventoy.tar.gz

    Be sure to replace the version string with the version number of iVentoy.

  4. Paste the ISO files you want to access via the PXE server within the iso folder.

    The ISO folder for iVentoy

  5. Run iventoy.exe with administrative privileges.

    Running iventoy.exe as an admin

  6. Linux users can run the iventoy.sh script with the following command:

    sudo ./iventoy.sh start
    Starting the iventoy.sh script

  7. Agree to let iVentoy access your home network when the firewall attempts to block the tool.
  8. To access the web UI, you can type the PC’s IP address followed by a colon (:) and the port number 26000 into your favorite browser.

    Entering the IP address of an iVentoy server

  9. Make sure the IP address, NIC Name, Subnet Mask, and GateWay are properly configured before tapping the Start button.

    Pressing the Run button on the iVentoy web UI

  10. (Optional) If you want to add more images to the PXE server, you can copy them over to the iso folder and press Refresh inside the Image Management tab.

    Refreshing the ISO files directory

Connecting to the PXE server

Now that your PXE server is operational, you’ll need to modify the BIOS settings on your test machine to use it as the boot device. While the exact steps vary depending on your motherboard’s manufacturer, here’s a general outline of the process.

  1. Connect the test PC to the switch/router on the same network as the PXE machine using an Ethernet cable.
  2. Power on the system and mash the Del key as it boots up.
  3. Open the Boot settings and set UEFI Network as Boot Option #1.

    Selecting UEFI Network as the Boot Option in the BIOS

  4. In case the PC doesn’t boot, head to the Integrated Peripherals tab within Advanced options and set the LAN Option ROM and Network stack to Enabled.

    Enabling the Integrated Peripherals settings to set up PXE boot

    The IPv4 PXE Support and IPv6 PXE Support options will appear the moment you turn on the Network stack. Make sure both settings are set to Enabled before saving and exiting the BIOS.

  5. Your PC will launch the iVentoy Boot Environment, where you can choose between bootable OS images.

Say adios to bootable USB drives with your PXE server

Accessing an iVentoy server on a PC

Although I’ve used an actual PC for the iVentoy server, you can configure this tool inside a virtual machine running on your home lab. Likewise, you can also use the PXE environment as an ISO repository for your virtualization platform. That said, the free version of iVentoy supports a maximum of twenty clients and is incompatible with ARM64 systems, meaning you might want to upgrade to the Pro edition if you want more functionality out of your PXE server.

link

Copyright © All rights reserved. | Newsphere by AF themes.