Skip to content

fix: use node-specific Proxmox config paths for VM vs LXC (fixes #464)#479

Merged
michelroegl-brunner merged 1 commit intomainfrom
fix/464
Jan 29, 2026
Merged

fix: use node-specific Proxmox config paths for VM vs LXC (fixes #464)#479
michelroegl-brunner merged 1 commit intomainfrom
fix/464

Conversation

@michelroegl-brunner
Copy link
Member

Summary

Fixes destroying LXC containers on multi-node Proxmox clusters where VM vs LXC detection used symlink paths that resolve to the wrong node.

Changes

  • isVM(): Check node-specific paths /etc/pve/nodes/<server.name>/qemu-server and lxc first; fall back to /etc/pve/qemu-server and /etc/pve/lxc for single-node setups.
  • checkConfigAndExtractInfo, config-existence checks (cleanupOrphanedScripts), getContainerHostname, addClonedContainerToDatabase: Use node-specific paths.
  • syncLXCConfig / updateLXCConfig: Use node-specific LXC config path.
  • server.js clone flow: Use node-specific config path when reading hostname/name.

Issue

Closes #464 — Destroying container was failing with Configuration file 'nodes/HP/qemu-server/168.conf' does not exist because the container is LXC (config at nodes/HP/lxc/168.conf); the app was incorrectly running qm destroy instead of pct destroy due to wrong-node path checks.

- isVM(): check /etc/pve/nodes/<server.name>/qemu-server and lxc first, fallback to /etc/pve/qemu-server and lxc for single-node
- checkConfigAndExtractInfo, config-existence checks, getContainerHostname, addClonedContainerToDatabase: use node-specific paths
- syncLXCConfig/updateLXCConfig: use node-specific LXC config path
- server.js clone flow: use node-specific config path

Fixes #464
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner January 29, 2026 14:29
@michelroegl-brunner michelroegl-brunner added bug Something isn't working fix labels Jan 29, 2026
@michelroegl-brunner michelroegl-brunner merged commit 201b33e into main Jan 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Destroying container does not work

1 participant