Skip to content

Vmid autoincrement and verification#21

Merged
greenlogles merged 4 commits intomainfrom
vmid
Jan 28, 2026
Merged

Vmid autoincrement and verification#21
greenlogles merged 4 commits intomainfrom
vmid

Conversation

@greenlogles
Copy link
Owner

No description provided.

When enabled, updates the Proxmox cluster's next-id lower bound after
each VM/container creation, preventing deleted VMIDs from being reused.
This avoids mixing backups and monitoring data between old and new VMs.

- Add incremental_vmid setting to cluster config
- Add checkbox to cluster create/edit UI
- Update next-id via /api2/json/cluster/options after VM/LXC creation
Use hostname as fallback when name is not set, since LXC containers
store their name in the hostname field.
- Add /api/cluster/vmid/<vmid>/check endpoint to verify VMID is free
- Add real-time VMID validation to create VM, clone, and template forms
- Show feedback (available/in use) as user types VMID
- Fix incremental_vmid to only update lower bound when increasing
- Fix delete API to detect and handle LXC containers (not just VMs)
@greenlogles greenlogles merged commit 15d6c44 into main Jan 28, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant