Login

Navigation

Building an iPXE Environment: An Alternative iVentoy Guide

Cover_iVentoy.jpg

Introduction

iVentoy is another convenient tool developed by the author ( longpanda) of the famous ISO boot tool Ventoy. The goal of this tool is to enable booting and startup through the PXE server without even preparing a flash drive, and the system is also very convenient to use.

Deploy(step-by-step guide)

Download iVentoy

Please use the root privilege to run below commands

wget https://github.com/ventoy/PXE/releases/download/v1.0.20/iventoy-1.0.20-linux-free.tar.gz -O /tmp/iventoy.tar.gz
Extract the Package
tar -xvzf /tmp/iventoy.tar.gz -C /opt
Rename Directory
mv /opt/iventoy-1.0.20 /opt/iventoy
Remove the Downloaded Archive
rm /tmp/iventoy.tar.gz
Create systemd Service File
cat << EOF > /etc/systemd/system/iventoy.service
[Unit]
Description=iVentoy iPXE Server
Requires=network-online.target
After=network-online.target
Wants=network-online.target

[Service]
Type=forking
User=root
Group=root
WorkingDirectory=/opt/iventoy
ExecStart=/opt/iventoy/iventoy.sh -R start
ExecStop=/opt/iventoy/iventoy.sh stop

[Install]
WantedBy=multi-user.target
EOF
Reload systemd to Recognize the New Service
systemctl daemon-reload
Enable the Service to Start on Boot
systemctl enable iventoy
Start the Service
systemctl start iventoy

Execute all steps using a script (Option)

wget -q https://kingtam.win/usr/uploads/script/iventoy-deploy.sh -O iventoy-deploy.sh && chmod +x iventoy-deploy.sh && sudo bash ./iventoy-deploy.sh

Use iVentoy via GUI

iVentoy GUI is based on WEB, we could open browser and visit http://x.x.x.x:26000 after you run iVentoy.

(x.x.x.x is the IP address of the computer that run iVentoy)

2025-01-28_103427.png

Before start

For the directories:

DirectoryDescription
dataFor License file, config files.
docFor document
isoFor ISO files.
libFor library files that needed by iVentoy. Don't put other files here.
logFor log files.
userFor user files, third-part software, auto install scritps ...

Copy all your ISO files to the iso directory. You can create subdirectories arbitrarily under this directory to classify and store ISO files.

2025-01-28_105601.png

Note: Ensure that there are no Unicode characters or spaces in the directory name or ISO file name.
Start PXE Service

Select server IP and set the IP pool, then click the green button to start PXE service.

2025-01-28_103444.png


Third-part DHCP Server (Option)

iVentoy can also work together with external DHCP Server. such as ROS, OpenWrt or Windows DHCP Server , making system installation less troublesome and simplifying user troubles!

In my case, I use the External Mode since the DHCP server is located in the same subnet.

2025-01-28_103521.png

MikroTik RouterOS (Sample)

2025-01-28_103702.png

Windows DHCP Server (Sample)

2025-01-28_103941.png

For External mode, set bootfile option value to iventoy_loader_16000

Note that the suffix 16000 is the iVentoy http server port, if you change it on the page then the bootfile should match it. (For example: iventoy_loader_17000).

2025-01-28_104026.png


iVentoy Auto Installation (Option)

To create an unattended deployment, we need to recreate a new ISO file based on the original ISO file and add the script or template into the new ISO file.

For Windows unattended deployment, use the Windows Answer File Generator. It is very simple and allows you to customize it as you want.

Configuration

In my case, I put the script in the path of the scripts directory: /opt/iventoy/user/scripts.

Select the corresponding ISO file on the iVentoy WEB GUI, and set the auto installation script path.

2025-01-28_105913.png

"More than one script for an ISO file is acceptable.

Start to deploy a system via iventoy

2025-01-28_110406.png

2025-01-28_110422.png

2025-01-28_110608.png

2025-01-28_110827.jpg


Conclusion:

Currently, most PCs and laptops have a built-in PXE boot function, often referred to as Network Stack. It is highly recommended for those who have a lot of system refilling requirements to give this function a try.

Using iVentoy's approach can significantly reduce the hassle when installing the system.


Related:

iPXE 網絡引導安裝


Reference:

iVentoy

How to run in a systemd service

Windows Answer File Generator