fix(ha): prefix qm commands with sudo for non-root Proxmox SSH user #104

Merged
beatzaplenty merged 1 commits from worktree-partitioned-swimming-pizza into main 2026-07-29 03:55:29 +00:00
Owner

qm lives at /usr/sbin/qm, which is not in the default PATH for
non-interactive SSH sessions as a non-root user. Add PVE_SUDO (set to
"sudo" when PVE_SSH_USER != root, matching create-proxmox-resource.sh's
own sudo_prefix pattern) and prepend it to all three qm invocations in
the script.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

qm lives at /usr/sbin/qm, which is not in the default PATH for non-interactive SSH sessions as a non-root user. Add PVE_SUDO (set to "sudo" when PVE_SSH_USER != root, matching create-proxmox-resource.sh's own sudo_prefix pattern) and prepend it to all three qm invocations in the script. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
beatzaplenty added 1 commit 2026-07-29 03:55:25 +00:00
fix(ha): prefix qm commands with sudo for non-root Proxmox SSH user
Check NixOS configurations / eval-hosts (pull_request) Successful in 10m25s
ced1657407
qm lives at /usr/sbin/qm, which is not in the default PATH for
non-interactive SSH sessions as a non-root user.  Add PVE_SUDO (set to
"sudo" when PVE_SSH_USER != root, matching create-proxmox-resource.sh's
own sudo_prefix pattern) and prepend it to all three qm invocations in
the script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
beatzaplenty merged commit dc6c37ed2e into main 2026-07-29 03:55:29 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No labels
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: beatzaplenty/nixos#104