mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 04:35:50 +03:00
[GH-ISSUE #362] ### Follow-up: auto-detect still missing tagged LXCs, incorrectly identifying VM's/CT's #110
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CANTI-BOT on GitHub (Nov 29, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE-Local/issues/362
✅ Have you read and understood the above guidelines?
yes
📝 Provide a clear and concise description of the issue.
PVE Scripts Local: v0.5.1 (fresh install in LXC)
Deployment: 3-node PVE cluster
<NODE_A>: runs thepvescriptslocalLXC and several Community Scripts LXCs<NODE_B>: runs one Community Scripts LXC<NODE_C>: only VMs (no LXCs)Symptom
<NODE_B>.<NODE_A>, even though they all havecommunity-scripttags.<NODE_C>is expected to show nothing (no LXCs, only VMs).🔄 Steps to reproduce the issue.
Steps to Reproduce (LXC autodetect issue)
<NODE_A>using the official helper script.<NODE_A>, create several LXCs using Community Scripts, or manually ensure they have tags includingcommunity-script, for example:tags: community-script;<ROLE_1>tags: community-script;<ROLE_2>tags: backup;community-script;<ROLE_3><NODE_B>, create at least one LXC with a tag includingcommunity-script, e.g.:tags: community-script;<ROLE_B1><NODE_C>, have only VMs (no LXCs).pvescriptslocalcontainer, verify SSH +pctaccess to each node works:<NODE_A>,<NODE_B>, and<NODE_C>with the same root/SSH settings used above.“Auto-Detect LXC Containers (Must contain a tag with 'community-script')”.
<NODE_B>appears in the list.<NODE_A>are detected.<NODE_C>appear (expected, since there are none).❌ Paste the full error output (if available).
Verification from inside the pve-scripts-local container
Output (shortened, host/IPs anonymized):
<NODE_B>:<NODE_C>:Despite this, the Installed Scripts → Auto-Detect LXC Containers button only creates a record for the LXC on
<NODE_B>. Nothing from<NODE_A>shows up, even though:<NODE_A>workspct listandpct configworkcommunity-script🖼️ Additional context (optional).
Additional issue: VM shell uses LXC path and autodetect doesn’t rediscover the VM
I also noticed a separate problem with a VM created via a Community Scripts VM installer (Docker VM):
I deployed a VM on
<NODE_C>using one of the Community Scripts VM installers (e.g. a Docker VM script).The installation completed successfully and an entry was created in Installed Scripts:
scripts/vm/<SCRIPT_NAME>.sh<NODE_C>When I click Start → Shell for this VM entry from the PVE Scripts Local UI, the shell session fails with:
This suggests the Shell feature is trying to open a container shell for
<VMID_VM1>by looking underlxc/<VMID_VM1>.conf, even though this is a VM, not an LXC (its config lives underqemu-server/<VMID_VM1>.confon the node).<NODE_C>.So there seem to be two related issues:
lxc/<VMID_VM1>.conf) instead of VM/qemu logic for a VM-type script installation.<NODE_C>and re-add it.A screenshot is attached showing the shell failure and the Installed Scripts view for reference.
If you’d like additional logs, I can capture
journalctl -u pvescriptslocal -n 200and/var/log/pve-scripts.logright after hitting the auto-detect button and/or attempting to start a VM shell session.@michelroegl-brunner commented on GitHub (Dec 1, 2025):
First i want to say thank you for that detailed Report. I need to dig a bit deeper why it dose not detect all VMs and LXCs for you. There the additional Logs would be very helpfull to see where it falls over. Also if you can provide Logs when you try to start/stop a VM and i fails would be great, this is something i can not reproduce at the moment.
For the VM - Shell Problem: The shell Button is not supposed to be here with VMs at all, as such a feature dose not exist on Proxmox. This was a oversight from my side, i just did not catch that. The button will get removed with the next update.
@CANTI-BOT commented on GitHub (Dec 7, 2025):
Additional finding: autodetect ignores 5-digit VMIDs
I did some controlled tests on a single node with the same helper script, same node, same network, same tags:
Ran the Grocy LXC helper script 3 times on
<NODE_X>with these VMIDs:999999999999All three containers have
tagsincludingcommunity-script.Hit Installed Scripts → Auto-Detect LXC Containers.
Result in the UI:
999is detected (shows up as an LXC entry).9999is detected.99999is not detected.Screenshots attached: one from the PVE node showing the three LXCs (999, 9999, 99999), and one from PVE Scripts Local showing only 999 and 9999 present as installed scripts.
This also matches my earlier experience:
<15021>and<50111>(both withcommunity-scripttags) are not detected.100,101,102,999,9999are detected as expected.So it looks like the autodetect logic currently only considers VMIDs up to 4 digits (<= 9999).
5-digit IDs appear to be ignored entirely during the scan, even though Proxmox itself allows them.
@michelroegl-brunner commented on GitHub (Dec 7, 2025):
That is a good find, i only have 3 didigt IDs on my test node. I look into that.