
Proxmox VM ID Reuse: How a New Container Pruned an Old Backup, and the 9.3 Fix
Proxmox suggests the lowest free VM ID, so a new guest can get the number of one you deleted, and backup retention then counts both guests' backups as one list. In our Proxmox VE 9.3.1 lab on 1 December 2026, a new container's second backup removed a backup of the deleted one. 9.3 adds guest identities and Unique and Enforce ID settings that stop this.
This page goes with our lab video on the same test. For everything else in the release, see what is new in Proxmox VE 9.3, and if you have not moved yet, our 9.2 to 9.3 upgrade guide.
Video: Proxmox Reuses VM IDs: My New Container Deleted the Old Backup (9.3 Fix, Lab Test)
What changed in Proxmox VE 9.3
Per the Proxmox VE 9.3 release notes, two changes deal with reused IDs:
- Every VM and container now has a unique guest identity: a
uidthat stays the same across migrations, snapshot rollbacks, backups and restores. Existing guests get one the first time a 9.3 node writes their configuration, for example on a config change or a backup. Restoring a backup over an existing guest is refused when the backup belongs to another guest, andforcealone no longer overrides that. - Reusing the IDs of removed guests can now be avoided. Under
Datacenter → Options → Next Free Guest ID, the newUniquesetting only suggests IDs that were never in use, andEnforceturns the range and the Unique rule into a hard limit for new guests. Every guest ID is now recorded in/etc/pve/virtual-guest/used-guest-idson creation and destruction, whatever the setting. IDs of guests removed before the upgrade are not known and can still be suggested.
The lab: one node, two containers, one ID
Our setup: a single Proxmox VE 9.3.1 node (pve-manager/9.3.1, kernel 7.3.6-1-pve), nested in Hyper-V on a mini PC, Alpine containers, and a local directory storage called bk for backups. Proxmox Backup Server was not part of this test.
We created container 102 as accounting-db, wrote a file into it, took two backups with the guest name in the notes, then destroyed it. The two backups stayed:
root@pve:~# pct destroy 102 && echo destroyed; pvesm list bk --vmid 102
Logical volume "vm-102-disk-0" successfully removed.
destroyed
Volid Format Type Size VMID
bk:backup/vzdump-lxc-102-2026_12_01-12_53_52.tar tar backup 12124160 102
bk:backup/vzdump-lxc-102-2026_12_01-12_54_54.tar tar backup 12124160 102
Then we asked for the next free ID. It was 102, the same as before the delete:
root@pve:~# pvesh get /cluster/nextid
102
A new container, web-test, took 102 and got a different uid (p6qzdzeico35jakgb6rz, where the old guest had m3usovhl6ukzqmfd5gfh).
Retention counts backups per ID
We set keep-last=3 on the backup storage and took two backups of the new container. The first pruned nothing. The second removed the oldest backup of the deleted guest:
INFO: creating vzdump archive '/srv/bk/dump/vzdump-lxc-102-2026_12_01-12_57_24.tar'
INFO: prune older backups with retention: keep-last=3
INFO: removing backup 'bk:backup/vzdump-lxc-102-2026_12_01-12_53_52.tar'
INFO: pruned 1 backup(s) not covered by keep-retention policy
INFO: Finished Backup of VM 102 (00:00:01)
After that, one accounting-db backup was left, listed under 102 next to two web-test backups. Without the guest name in the notes, the list would show three backups of "102" and nothing else. The guest identity in 9.3 does not change this: retention still works per ID on 9.3.1.
A protected backup is the exception. We protected the last accounting-db backup and ran another web-test backup; retention printed pruned 0 backup(s) and the protected file stayed.
What 9.3 blocked
Restoring the old backup over the new container 102 with --force was refused:
unable to restore CT 102 - backup belongs to another guest: its uid 'm3usovhl6ukzqmfd5gfh' differs from uid 'p6qzdzeico35jakgb6rz' of the existing CT 102 - use 'allow-identity-mismatch' to overwrite the CT anyway
Per the release notes, force alone is no longer enough on 9.3; you need allow-identity-mismatch or the "Allow restoring a backup of another guest" checkbox. Restoring the same backup to a new ID, 110, worked: the container came back as accounting-db with its original uid, and the file we wrote was still inside.

The uid is shown in the guest's Status panel (the info button opens the identity window above), in the guest config as part of the meta line, and in the API.
Unique and Enforce in practice
The ID register on our node after the test:
root@pve:~# cat /etc/pve/virtual-guest/used-guest-ids
100-102
110
200-201
With unique=1, the suggested ID moved past everything in that file to 103. Unique alone did not stop us from typing 110 by hand: the create worked. With enforce=1,unique=1 the same create failed:
root@pve:~# pct create 110 local:vztmpl/alpine-3.24-default_20261105_amd64.tar.xz --hostname again --rootfs local-lvm:1 --memory 128 --unprivileged 1 2>&1 | tail -2
unable to create CT 110 - guest ID 110 was used before

The same setting from the shell:
pvesh set /cluster/options --next-id unique=1,enforce=1
grep next-id /etc/pve/datacenter.cfg
Find IDs that already hold two guests
If you have deleted and recreated guests before, check your backup lists. This lists every ID whose backups carry more than one guest name. It needs the guest name in the backup notes (--notes-template '{{guestname}}'), so it only finds what was noted. On our node it printed 102 ['accounting-db', 'web-test']:
pvesh get /nodes/<node>/storage/<storage>/content --content backup --output-format json | python3 -c 'import json,sys,collections; d=collections.defaultdict(set); [d[x["vmid"]].add(x.get("notes")) for x in json.load(sys.stdin)]; [print(v, sorted(n)) for v,n in sorted(d.items()) if len(n)>1]'
Checklist
Datacenter → Options → Next Free Guest ID: tick Unique and Enforce.- Deleted guests before 9.3? Their IDs are not in the register. Raise the lower end of the range above your old IDs (our opinion: start at 1000).
- Set the backup notes template to
{{guestname}}so a mixed list is easy to spot. - Before you delete a guest, protect its last backup.
- Restore a deleted guest to a new ID, never over an existing one.
- On Proxmox Backup Server, backup groups are also named by ID: check the group after any delete and reuse. We did not test Backup Server in this lab.
What we did not test
Proxmox Backup Server, clusters, and the restore checkbox in the GUI (its name is taken from the release notes). Lab output on this page is from our own node on 1 December 2026; anything marked as opinion is ours. If you are choosing a backup setup for Proxmox, our backup advisor compares the options.
Frequently Asked Questions
Does Proxmox reuse VM IDs of deleted guests?
Yes, by default. Per the Proxmox VE 9.3 release notes, the lowest free VMID is suggested for new guests. In our 9.3.1 lab the next free ID was 102 before and after we destroyed container 102.
Can a reused VM ID delete old backups?
It can. Retention counts backups per VMID. In our lab, with keep-last=3, the second backup of a new container 102 removed a backup of the deleted container that had used 102 before.
How do I stop Proxmox from reusing VM IDs?
On Proxmox VE 9.3, open Datacenter, Options, Next Free Guest ID and tick Unique, which only suggests IDs that were never used, and Enforce, which turns that into a hard rule for new guests.
Can I restore an old backup over a guest that now uses the same ID?
Not by accident on 9.3. Restoring over an existing guest is refused when the backup belongs to another guest; force alone is not enough. You need allow-identity-mismatch or the matching checkbox in the restore window.
Are IDs of guests deleted before the 9.3 upgrade protected?
No. Per the release notes, VMIDs of guests removed before the upgrade are not known and may still be suggested. Raising the lower end of the ID range above your old IDs works around that.