Skip to content

vm: install CentOS 8 boxes, and pin centos8's EPEL to the 8.5 archive - #94

Merged
TusanHomichi merged 4 commits into
mainfrom
claude/vm-el8
Oct 14, 2026
Merged

TusanHomichi merged 4 commits into
mainfrom
claude/vm-el8

Conversation

@TusanHomichi

@TusanHomichi TusanHomichi commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Requested by Peter

Before: tools/vm.py couldn't install a CentOS 8 guest. Nothing could prove the centos8 → alma10 route (#92) on a real VM. The centos8-lamp box also read live EPEL 8, and a real CentOS 8.5 install can no longer build it from there.

After: vm.py build el/centos8-lamp installs the box with CentOS 8.5's own anaconda, and the box passes every one of its checks in the VM.

How:

  • EL8 install table (adapters/el.toml): the kickstart's EL8 differences come from the adapter.
    • %packages drops --nobase, which EL8's installer refuses (nobase = false).
    • AppStream is added as a second kickstart repo, since httpd, php and mariadb live there (repos).
    • Everything else matches EL7: %end, eth0 named by MAC on the installer's boot line, and the installer's 1 GiB /boot.
  • centos8-lamp [vm] table: ssh on 2222, plus live checks for its daemons (httpd, php-fpm, postfix, crond, sshd, firewalld, mariadb, fail2ban), its database row and its site.
  • EPEL pinned to the archived 8.5 snapshot, in both the box's customize and the adapter's centos8 EPEL add-on.
    • Live EPEL 8 has moved to 8.10-era packages. Its fail2ban requires an EL 8.7 SELinux policy, so the first VM build failed in %post with nothing provides selinux-policy >= 3.14.3-108.el8_7.1 needed by fail2ban-selinux.
    • The chroot box never hit this because it has no selinux-policy-targeted.
    • alma8 keeps live EPEL 8, which matches it. alma9 and alma10 drift is Make a vanished repo snapshot rare: archive + fallback chain #19.

Evidence

  • centos8-lamp VM build on BIOS: passes every check. The build ran from this branch before its rebase onto main (cache key 5630065523e9). Since then box.toml and adapters/el.toml are byte-identical, vm.py's build(), kickstart() and checks() are unchanged (only vm: shelter the app on the VM tier and prove its confinement #91's shelter code came in), and the build's ks.cfg matches this head's render.
    • Anaconda 8.5 installed from BaseOS + AppStream through the shim.
    • The installed ifcfg-eth0 carries HWADDR=52:54:00:12:34:56 and IPADDR=10.0.2.20.
    • The box answered ssh on 2222 after its first reboot, and its own checks and live checks all passed.
  • Anaconda's warnings, none of them blocking:
    • the ks= boot argument should be inst.ks=;
    • the install command is deprecated and ignored;
    • authconfig will be deprecated. Anaconda honours it via authselect-compat, so the installed box ends up on the sssd profile with SHA512.
  • uefi = true for centos8 is set for the installer, but only the BIOS build has run so far. A UEFI build comes with the EL UEFI work.
  • Gates at this head: wend check; client fmt, clippy, tests (40) and the release build; parity identical; client wend check.

Refs #13, #92

🤖 Generated with Claude Code

tools/vm.py installs CentOS 8 with its own anaconda. The EL8 install table gives
the kickstart what differs from EL7: %packages without --nobase (EL8's
installer refuses it, install.nobase = false) and AppStream as a second repo
(install.repos), where httpd, php and mariadb live. Otherwise EL8 takes EL7's
choices: %end, eth0 named by MAC on the installer's boot line, and the
installer's 1 GiB /boot. centos8-lamp gets a [vm] table (ssh on 2222; live checks
for its daemons, the row and the site).

The box's EPEL and the centos8 EPEL add-on repo now read the archived EPEL 8.5
snapshot instead of live EPEL 8. Live EPEL 8 has moved to 8.10-era packages,
and its fail2ban requires an EL 8.7 SELinux policy, so a real CentOS 8.5
install (which has selinux-policy-targeted) could no longer build the box.
alma8 keeps live EPEL 8, which matches it.

Refs #13, #92

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Peter Permenter <[email protected]>
@TusanHomichi TusanHomichi self-assigned this Oct 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T10:12:00.679484Z e8e14e1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4834553a33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/vm.py Resolved
Signed-off-by: Peter Permenter <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e8e14e192d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread boxes/el/centos8-lamp/box.toml Resolved
@github-actions github-actions Bot added the needs-claude-review Waiting on the Claude review layer label Oct 14, 2026
TusanHomichi and others added 2 commits October 14, 2026 03:27
The [vm].live daemons check runs as one remote shell whose command line holds
the string fail2ban-server, so pgrep -f fail2ban-server always found that shell
and the check passed with no fail2ban running. '[f]ail2ban-server' matches the
daemon and never the check itself. centos7-lamp had the same line.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Peter Permenter <[email protected]>
…iew)

The bracketed pgrep pattern still matched the check's own shell through its
'fail2ban-server is not running' message; the message now says fail2ban, so no
substring of the check matches the pattern.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Peter Permenter <[email protected]>
@TusanHomichi

Copy link
Copy Markdown
Member Author

Claude review: signed off on b93323d (independent, read-only, fresh context).

  • Merge with main: recomputed with git merge-tree, it matches the head exactly. Both sides' diffs are intact.
  • EL8 kickstart:
    • centos8-lamp renders %packages without --nobase, adds the AppStream repo, and closes sections with %end.
    • The centos5 and centos7 kickstarts render byte-identically to main's.
    • A centos8-lamp VM build passed every check. Anaconda wrote the HWADDR pin, and its warnings (ks=, install, authconfig) are all harmless on 8.5.
  • EPEL 8.5 archive: it carries the box's htop, ncdu and fail2ban 0.11.2. Its fail2ban has no weak dependencies, so it doesn't pull fail2ban-selinux.
  • Live fail2ban check: fixed so it can't match its own command line. In a PID-namespace test it fails with no daemon running and passes with one. The previous head passed falsely in the same test.
  • Gates: wend check passes, including main's bash -n gate. Client fmt, clippy, tests (40), parity and the release build pass. CI is green.
  • Codex threads: both answered and resolved. One was the policy P1, the other the fail2ban self-match.
  • Follow-up: unchecked install keys are tracked in check: type-check the VM install table's keys #83.

@TusanHomichi
TusanHomichi merged commit 936fd2a into main Oct 14, 2026
10 checks passed
@TusanHomichi
TusanHomichi deleted the claude/vm-el8 branch October 14, 2026 10:56
TusanHomichi pushed a commit that referenced this pull request Oct 14, 2026
Same tree as 508e3e0 (GitHub update-branch), recommitted with a DCO sign-off.

Signed-off-by: Claude <[email protected]>
@TusanHomichi TusanHomichi mentioned this pull request Oct 14, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-claude-review Waiting on the Claude review layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant