- fleet/admin-cheat-sheet.md: Added PegaProx section, updated MK33/MK34/MK39 statuses to Online (PVE), added iVentoy remastering notes, iVentoy Pro upgrade pending marker. - procedures/pega-prox-deploy.md: New procedure for deploying PegaProx on Docker Swarm (host mode, CSRF, API gotchas). - procedures/iventoy-remaster-procedure.md: New procedure for remastering Proxmox ISOs with embedded answer URLs and locked gfxmode. - changelog/2026-05-31-pxe-pegaprox-deployment.md: Changelog entry for todays fleet work. - 04-service-catalog.md: Added PegaProx to Management / Dashboard section.
6.6 KiB
Procedure: Remaster Proxmox VE ISOs for iVentoy Auto-Install
Scope: Remaster stock Proxmox VE ISOs with embedded auto-install answer URLs and locked UEFI gfxmode for PXE boot via iVentoy.
Author: F.R.I.D.A.Y.
Date: 2026-05-31
Prerequisites: Stock Proxmox VE ISO, xorriso, Python 3, iVentoy PXE server running.
1. Overview
iVentoy Free does NOT support per-MAC ISO binding. To provision each node with its own network config (IP, gateway, etc.), we remaster the stock Proxmox ISO:
- Embed an
auto-installer-mode.tomlfile pointing to a per-node answer file - Lock UEFI
gfxmodeto1024x768(remove640x480fallback) - Each ISO points to its own answer URL:
http://192.168.10.15:8080/pve/answers/mkNN.toml
2. Answer File Structure
iVentoy Answer Server
iVentoy runs a built-in HTTP server on 192.168.10.15:8080. Answer files live in:
/opt/iventoy/user/answers/
├── mk33.toml
├── mk34.toml
├── mk39.toml
└── mk42.toml
Per-Node Answer File Example (mk33.toml)
[target]
source = "from-dhcp" # Node IP assigned by iVentoy DHCP, NOT hardcoded
global]
keyboard = "en-us"
timezone = "America/Toronto"
[network]
iface = "eno1"
address = "192.168.7.33/18" # Static after install
gateway = "192.168.18.1"
dns = "192.168.7.7"
[root-password]
pwhash = "$y$j9T$YOUR_HASH_HERE" # Pre-hashed password
Important: The
answer_urlin the embeddedauto-installer-mode.tomlpoints to the server (192.168.10.15:8080), not the node IP. The node IP comes from DHCP during PXE boot (source = "from-dhcp").
3. Remaster Script
Save as /tmp/remaster_pve_iso.py:
#!/usr/bin/env python3
"""
Remaster Proxmox VE ISO with embedded auto-install answer URL.
Locks UEFI gfxmode to 1024x768 (removes 640x480 fallback).
"""
import subprocess
import sys
import tempfile
import os
import shutil
# Node-specific config
NODE = sys.argv[1] # e.g., mk33
SRC_ISO = sys.argv[2] # e.g., proxmox-ve_9.2-1.iso
DST_ISO = f"proxmox-{NODE}-auto.iso"
ANSWER_URL = f"http://192.168.10.15:8080/pve/answers/{NODE}.toml"
# Create auto-installer-mode.toml
auto_installer_toml = f"""[proxmox-auto-installer]
answer_url = "{ANSWER_URL}"
"""
# Work in temp dir
with tempfile.TemporaryDirectory() as tmpdir:
# Extract ISO contents
subprocess.run(["xorriso", "-osirrox", "on", "-indev", SRC_ISO,
"-extract", "/", tmpdir], check=True)
# Write auto-installer-mode.toml into ISO root
ai_path = os.path.join(tmpdir, "auto-installer-mode.toml")
with open(ai_path, "w") as f:
f.write(auto_installer_toml)
# Patch grub.cfg: lock gfxmode to 1024x768 only
grub_path = os.path.join(tmpdir, "boot", "grub", "grub.cfg")
if os.path.exists(grub_path):
with open(grub_path, "r") as f:
content = f.read()
# Remove 640x480 fallback
content = content.replace("set gfxmode=1024x768,640x480",
"set gfxmode=1024x768")
with open(grub_path, "w") as f:
f.write(content)
print("Patched grub.cfg: gfxmode locked to 1024x768")
# Rebuild ISO with same boot properties
subprocess.run([
"xorriso", "-as", "mkisofs",
"-o", DST_ISO,
"-isohybrid-mbr", os.path.join(tmpdir, "usr", "lib", "ISOLINUX", "isohdpfx.bin"),
"-c", "boot.cat",
"-b", "isolinux/isolinux.bin",
"-no-emul-boot", "-boot-load-size", "4", "-boot-info-table",
"-eltorito-alt-boot",
"-e", "EFI/BOOT/BOOTX64.EFI",
"-no-emul-boot", "-isohybrid-gpt-basdat",
"-r", "-V", f"Proxmox-VE-Auto-{NODE}",
tmpdir
], check=True)
print(f"Created: {DST_ISO}")
print(f"Answer URL embedded: {ANSWER_URL}")
Usage
# On Shield (iVentoy server)
python3 /tmp/remaster_pve_iso.py mk33 /opt/iventoy/iso/proxmox-ve_9.2-1.iso
python3 /tmp/remaster_pve_iso.py mk34 /opt/iventoy/iso/proxmox-ve_9.2-1.iso
python3 /tmp/remaster_pve_iso.py mk39 /opt/iventoy/iso/proxmox-ve_9.2-1.iso
python3 /tmp/remaster_pve_iso.py mk42 /opt/iventoy/iso/proxmox-ve_9.2-1.iso
# Move to iVentoy ISO directory
mv proxmox-mk33-auto.iso /opt/iventoy/iso/
mv proxmox-mk34-auto.iso /opt/iventoy/iso/
mv proxmox-mk39-auto.iso /opt/iventoy/iso/
mv proxmox-mk42-auto.iso /opt/iventoy/iso/
4. In-Place ISO Patching (gfxmode only)
If you already have remastered ISOs and only need to patch gfxmode:
# Extract grub.cfg from ISO, patch, replace in-place
ISO=/opt/iventoy/iso/proxmox-mk33-auto.iso
xorriso -cpx /boot/grub/grub.cfg /tmp/grub.cfg -< /dev/null -- "$ISO"
sed -i 's/set gfxmode=1024x768,640x480/set gfxmode=1024x768/' /tmp/grub.cfg
xorriso -boot_image any replay -map /tmp/grub.cfg /boot/grub/grub.cfg -- "$ISO"
The
-boot_image any replayflag preserves boot properties after file replacement.
5. Verification
# Confirm answer URL is embedded
strings /opt/iventoy/iso/proxmox-mk33-auto.iso | grep "192.168.10.15"
# Expected: http://192.168.10.15:8080/pve/answers/mk33.toml
# Confirm gfxmode is locked
xorriso -cpx /boot/grub/grub.cfg /tmp/verify.cfg -< /dev/null -- /opt/iventoy/iso/proxmox-mk33-auto.iso
grep gfxmode /tmp/verify.cfg
# Expected: set gfxmode=1024x768
6. iVentoy Configuration
Web UI
- URL:
http://192.168.27.205:26000 - Go to ISO Management → add remastered ISOs
MAC Whitelist (Permit Mode)
Add node MACs to iVentoy whitelist:
E0-51-D8-1C-5D-56 (MK-33)
E0-51-D8-1C-5C-75 (MK-34)
PENDING (MK-39)
PENDING (MK-42)
Nodes must be in whitelist to PXE boot.
DHCP Pool
- Subnet:
192.168.10.0/27 - Range:
192.168.10.20to192.168.10.30 - Nodes get temporary PXE IPs from this pool during install
7. Post-Install
After node installs and reboots:
- Remove node MAC from iVentoy whitelist (node boots from local disk)
- Node gets production IP from
/etc/network/interfaces(set in answer file) - Verify:
ping 192.168.7.33(or appropriate node IP)
8. iVentoy Pro Upgrade Notes
Status: Awaiting private repo link from vendor.
Expected Pro features (to verify upon upgrade):
- Per-MAC ISO binding (may eliminate need for per-node remastered ISOs)
- Additional deployment modes
- Priority support
When the private repo link is received:
- Clone the Pro repository
- Review upgrade documentation in the repo
- Backup current
/opt/iventoy/configuration - Follow vendor upgrade procedure
- Test with one node before fleet-wide rollout
Rollback
# Remove remastered ISO
rm /opt/iventoy/iso/proxmox-mk33-auto.iso
# Re-add stock ISO in iVentoy Web UI
# Node will boot stock ISO -- manual install required
Last updated: 2026-05-31