Skip to content

hvpatch 0.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:12
· 26 commits to main since this release

Changed

  • Renamed from pve-klp to hvpatch. "pve" is the prefix of Proxmox's own
    packages, and a third-party tool should not look like one. Everything
    follows the new name:

    Before Now
    pve-klp, pve-klp-tool hvpatch, hvpatch-tool
    /etc/pve-klp/pve-klp.toml /etc/hvpatch/hvpatch.toml
    /var/lib/pve-klp /var/lib/hvpatch
    pve-klp-boot.service, pve-klp-auto.timer hvpatch-boot.service, hvpatch-auto.timer
    PVE_KLP_* (hooks, PVE_KLP_CONFIG) HVPATCH_*
    metrics pve_klp_*, pve_klp.prom hvpatch_*, hvpatch.prom
    modules klp_pve_<kernel>_p<N> klp_hvp_<kernel>_p<N>
    builder image pve-klp-builder hvpatch-builder
    github.com/prepaid-host/pve-klp github.com/prepaid-host/hvpatch (old URLs redirect)

Upgrading from pve-klp

  • The hvpatch package conflicts with and replaces pve-klp. Installing it
    removes pve-klp and copies, once, the configuration (paths rewritten),
    trusted keys, hooks, module certificate, state (including the
    anti-rollback history) and module cache. An enabled auto timer stays
    enabled. CI runs this takeover on every change.
  • A livepatch loaded by pve-klp (klp_pve_*) stays active and counts as
    hvpatch's own: status shows it, and the next level replaces it without
    --replace-foreign.
  • Manifest keys generated by pve-klp-tool keygen keep working.
  • Update monitoring (metric names, textfile name) and Ansible (package,
    command and unit names).
  • The builder's build identity changes to hvpatch@hvpatch-builder, so the
    first build per kernel rebuilds the cached original once.

Install

wget https://github.com/prepaid-host/hvpatch/releases/download/v0.2.0/hvpatch_amd64.deb
apt install ./hvpatch_amd64.deb
hvpatch setup --repository <your repository> --key <manifest key>

Verify

sha256sum -c SHA256SUMS --ignore-missing
gh attestation verify hvpatch_amd64.deb --repo prepaid-host/hvpatch