openEuler 24.03 PXE network install — dnsmasq+TFTP+HTTP full chain verified in testing and the 3G memory pitfall (diskless VM to the installer, recorded)
Verification scope
Section titled “Verification scope”This page’s evidence is the bare-metal track (E3) — a full PXE boot chain for openEuler 24.03 LTS SP4 verified in testing from a PVE diskless VM (boot order=net0) (2026-11-05; server-side config and dnsmasq DHCP log: evidence/logs/openeuler-p2-pxe-dnsmasq.log; screenshots evidence/screenshots/euler-pxe-boot1.png (stage2 crash) and euler-pxe-boot2.png (WELCOME screen)): DHCP allocation → pxelinux → TFTP fetch of kernel/initrd → HTTP fetch of stage2 → arrival at the installer WELCOME screen. The netinst ISO’s SHA256 matches the official value character for character (de7ee073…1a396, recorded in testing in the log).
This page covers the SeaBIOS (Legacy) + pxelinux route; UEFI network boot was not tested in this environment (see the end of the page).
The server trio: TFTP root, dnsmasq, HTTP source
Section titled “The server trio: TFTP root, dnsmasq, HTTP source”The PXE server needs only three things, all of which can run on an existing Linux host (this experiment ran on a PVE host, coexisting with an existing main dnsmasq instance):
1) TFTP root (the netinst ISO provides the kernel and initrd):
mount -o loop openEuler-24.03-LTS-SP4-netinst-x86_64-dvd.iso /mnt/euler-netinstmkdir -p /srv/tftp-euler/pxelinux.cfgcp /mnt/euler-netinst/images/pxeboot/vmlinuz /mnt/euler-netinst/images/pxeboot/initrd.img /srv/tftp-euler/cp /usr/lib/PXELINUX/pxelinux.0 /usr/lib/syslinux/modules/bios/ldlinux.c32 /srv/tftp-euler/cat > /srv/tftp-euler/pxelinux.cfg/default <<'EOF'default linuxtimeout 100label linux kernel vmlinuz append initrd=initrd.img inst.repo=http://192.168.2.2:8889/ ip=dhcpEOF2) A second dnsmasq instance (DHCP+TFTP bound to the lab bridge; --bind-interfaces guarantees the host’s main dnsmasq is untouched):
dnsmasq --interface=vmbr2 --bind-interfaces --except-interface=lo \ --dhcp-range=192.168.2.50,192.168.2.60,12h \ --dhcp-boot=pxelinux.0 --enable-tftp --tftp-root=/srv/tftp-euler \ --pid-file=/run/dnsmasq-euler.pid --log-facility=/tmp/dnsmasq-euler.logIn the DHCP log verified in testing you can see DISCOVER→OFFER→REQUEST and option 67 bootfile pxelinux.0 (the DHCPACK and TFTP GET records are not kept by the dnsmasq log); the diskless VM reaching the WELCOME screen is the E3 chain that supports the boot conclusion itself — when troubleshooting, this log is the first scene.
3) HTTP install source (the netinst carries no packages itself; stage2 and the package repos both go over the network):
python3 -m http.server 8889 --bind 192.168.2.2 -d /mnt/euler-netinstClient and boot chain (verified in testing)
Section titled “Client and boot chain (verified in testing)”The test machine was a VM with no system disk; its boot order contained only the network. The chain verified in testing:
SeaBIOS → DHCP (assigned 192.168.2.x, bootfile=pxelinux.0) → TFTP: pxelinux.0 + ldlinux.c32 + pxelinux.cfg/default + vmlinuz + initrd.img → kernel starts, dracut pulls stage2 (images/install.img) per inst.repo=http://…:8889/ → Anaconda starts its GUI → WELCOME language-selection screen (screenshot euler-pxe-boot2.png)
From this point on, everything is identical to a DVD install: attach a ks (inst.ks=) and it becomes unattended network provisioning; leave it off and it’s an interactive install. Combined with the OEMDRV disc approach for ks (Kickstart page), you can build a “PXE boot + local OEMDRV drive for the ks” combination that avoids passing a URL in kernel parameters.
Verified pitfall: the memory threshold for stage2 loading into tmpfs
Section titled “Verified pitfall: the memory threshold for stage2 loading into tmpfs”The first round, a VM with 3G of memory, crashed during stage2 loading (screenshot euler-pxe-boot1.png):
I/O error, dev loop2, sector … (WRITE) # write failure on the tmpfs-backed loop deviceEXT4-fs warning (device dm-0): … error -5 reading directory blockFailed to execute /bin/sh, giving up: Input/output error
This was not a corrupt network transfer (the netinst ISO’s SHA256 was checked first) but Anaconda’s stage2 loading wholesale into a memory disk by default, and 3G of memory left insufficient headroom. After raising the VM to 4G, the same server configuration passed in one go. The lesson for batch provisioning: plan PXE nodes with a 4G memory floor (a DVD install passes at 3G because stage2 is read on demand from local media; a network stage2 goes wholesale into RAM).
Production tips
Section titled “Production tips”- The netinst’s repo is on HTTP: the directory
inst.repopoints at must be the root of the netinst contents (containing.treeinfo); to install groups beyond @core, layer on--setoptor a local mirror (internal mirror); - The boundary between DHCP and your existing network: do not casually enable DHCP on a production segment — this experiment used a dedicated bridge (vmbr2) for isolation; on a shared network, use
--dhcp-rangewith tight control plus a MAC whitelist, or switch to proxy DHCP; - UEFI machines use a different bootfile (shim/grubnet chain + DHCP arch-tagged dispatch) and this page did not test it — validate on a small scale first in mixed-arch environments.
Unverified
Section titled “Unverified”- UEFI network boot not tested in this environment: the shim→grubnetx64 chain, arch-based DHCP option dispatch, PXE under Secure Boot — needs a UEFI client (to be filled in together with the OVMF experiment on the Secure Boot page);
- Multiple concurrent provisioning not tested in this environment (single-machine verification; HTTP/TFTP server bandwidth planning left for a scale experiment);
inst.ks=passing a ks via kernel parameters not tested in this environment (this page’s PXE was only verified up to the installer starting).