Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Pxe Netboot

ASecurity

Reliable remote OS install over PXE when virtual-media/KVM is broken — proxyDHCP+TFTP via dnsmasq, kernel/initrd over HTTP, custom iPXE with embedded autoexec. Use when a BMC's virtual CD is unreliable or a headless install needs netboot.

3 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentspythongoshellbashnodegit

Security Analysis

A100/100

Scanned 9/23/2026

$npx -y skills add dryvist/claude-code-plugins --skill pxe-netboot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pxe Netboot?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Pxe Netboot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dryvist-pxe-netboot/badge)](https://www.skillsdirectory.com/skills/dryvist-pxe-netboot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: pxe-netboot
description: Reliable remote OS install over PXE when virtual-media/KVM is broken — proxyDHCP+TFTP via dnsmasq, kernel/initrd over HTTP, custom iPXE with embedded autoexec. Use when a BMC's virtual CD is unreliable or a headless install needs netboot.
---

# PXE netboot install (legacy/unreliable remote-media hardware)

When a server's out-of-band virtual-media path (iDRAC/iLO/BMC virtual CD) is
broken or unreliable, and USB-boot keeps falling through to whatever OS is
already on the internal disks, PXE is the install path that actually works.
This is the concrete recipe — a temporary netboot service run from an
existing healthy hypervisor on the same network.

## When to use this

- The BMC's virtual-media/remote-KVM path is unreliable on this generation of
  hardware.
- The target's internal disks already carry an OS that keeps re-booting after
  every USB-boot override the firmware silently drops (a known failure mode
  on some legacy BMC firmware: a "boot from USB next" flag that should
  persist behaves as one-shot).
- Any older chassis being added to the fleet later, once you have this
  recipe built once.

## When NOT to use this

- Routine reinstall of an already-healthy node — a verified bootable USB
  stick is simpler.
- First install on brand-new hardware with guaranteed-blank disks — USB-boot
  is simpler there too; reach for PXE only once the simple path has actually
  failed.

## Topology

```text
Existing healthy host (same network segment as the target)
  ├── dnsmasq proxyDHCP + TFTP on that interface
  │     → supplements the existing DHCP server with PXE-boot options only,
  │       doesn't replace it
  ├── a plain HTTP server serving kernel + initrd + an answer/config file
  └── a custom-built iPXE binary with an embedded autoexec script

Target chassis
  ├── BMC on its own management network — IPMI-over-LAN reachable
  └── Primary NIC on the same segment as the netboot host — PXE-capable BIOS
```

## Steps (per node)

### 1. Stage kernel + initrd

Build (or reuse) an auto-install image with a per-node unattended-answer
file baked in, then extract just the kernel and initrd from it — you don't
need to serve the whole ISO, only the two boot artifacts plus the answer
file:

```bash
mkdir -p /mnt/iso /srv/http/<target>
mount -o loop /path/to/auto-install.iso /mnt/iso
cp /mnt/iso/boot/<kernel> /mnt/iso/boot/<initrd> /srv/http/<target>/
cp <answer-file> /srv/http/<target>/answer.toml
umount /mnt/iso
```

Total per-node footprint is small — tens of megabytes, not the full ISO.

### 2. Stand up the HTTP server

```bash
nohup setsid python3 -m http.server 8080 \
  --bind <netboot-host-ip> --directory /srv/http \
  </dev/null >/var/log/pxe-http.log 2>&1 &
```

A plain `http.server` is fine for a one-shot install; use nginx/caddy if this
becomes a standing service. Expect noisy `BrokenPipeError` log lines from
iPXE's range requests it later cancels — that's normal, not a fault.

### 3. Stand up dnsmasq as proxyDHCP + TFTP

```bash
systemd-run --unit=pxe-dnsmasq --description="PXE dnsmasq" \
  /usr/sbin/dnsmasq --keep-in-foreground \
  --bind-interfaces --interface=<netboot-iface> --except-interface=lo \
  --no-resolv --no-hosts --port=0 \
  --enable-tftp --tftp-root=/srv/tftp \
  --dhcp-no-override --dhcp-range=<subnet-cidr>,proxy \
  --dhcp-userclass=set:ipxe,iPXE \
  --pxe-service=x86PC,"iPXE chain",undionly.kpxe \
  --dhcp-boot=tag:ipxe,http://<netboot-host-ip>:8080/boot.ipxe \
  --log-dhcp --log-queries --log-facility=/var/log/dnsmasq-pxe.log
```

Use `systemd-run --unit=...` rather than a backgrounded `nohup` — an
SSH-detached `nohup &` process gets reaped when the session ends; a transient
systemd unit survives detachment.

### 4. Build iPXE with an embedded autoexec script

The distro-packaged `undionly.kpxe` binary does **not** auto-execute the
DHCP-offered chain URL by default. Iterating on the dnsmasq config won't fix
this — embed the boot script directly into the iPXE binary instead:

```sh
#!ipxe
dhcp || sleep 3 || dhcp || shell
iseq ${mac} <target-mac> && goto target || goto default
:target
kernel http://<netboot-host-ip>:8080/<target>/<kernel> <kernel-args>
initrd http://<netboot-host-ip>:8080/<target>/<initrd>
boot || shell
```

```bash
git clone --depth 1 https://github.com/ipxe/ipxe.git /tmp/ipxe-src
cd /tmp/ipxe-src/src
make -j4 bin/undionly.kpxe EMBED=/path/to/embed.ipxe
cp bin/undionly.kpxe /srv/tftp/undionly.kpxe
```

### 5. Trigger the install

```bash
ipmitool -I lanplus -H <bmc-ip> -U <bmc-user> -P <bmc-password> \
  chassis bootdev pxe options=persistent
ipmitool -I lanplus -H <bmc-ip> -U <bmc-user> -P <bmc-password> \
  chassis power cycle
```

Typical timing: BIOS POST + PXE init ~90s; TFTP load of the small iPXE
binary under 1s; iPXE's HTTP fetch of kernel+initrd ~10-30s; the actual
installer running ~15-30 min depending on disk/package count.

## Verification

```bash
ssh <netboot-host> 'tail -f /var/log/dnsmasq-pxe.log /var/log/pxe-http.log'
nc -zv -w 2 <target-ip> 22        # once the installer reboots into the new OS
ssh <target-ip> 'hostname'
```

## Rollback

If the installer fails partway through:

```bash
ipmitool -I lanplus -H <bmc-ip> -U <bmc-user> -P <bmc-password> \
  chassis bootdev none options=persistent
ipmitool -I lanplus -H <bmc-ip> -U <bmc-user> -P <bmc-password> \
  chassis power off
```

The disks are either freshly formatted (install reached the partition step)
or still hold whatever was there before (install died earlier) — both are
recoverable states; leave the host powered off for inspection rather than
retrying blind.

## Related

- **infrastructure-standards** (infra-standards) — where a newly-installed
  node's identity and IP/VLAN placement should be declared once it's up.

Attribution

dryvistdryvist
View sourceSee grades on GitHubMore from dryvist →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →