# Proxmox VM ID Reuse and Backups: 9.3 Lab Test

Title: Proxmox VM ID Reuse and Backups: 9.3 Lab Test
Canonical URL: https://www.mrplanb.com/blog/proxmox-vm-id-reuse-backups-9-3
Published: 2026-12-04T14:30:00
Author: Mr.PlanB
Language: en

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](https://www.mrplanb.com/blog/proxmox-ve-9-3-release-whats-new), and if you have not moved yet, our [9.2 to 9.3 upgrade guide](https://www.mrplanb.com/blog/upgrade-proxmox-ve-9-2-to-9-3).

[Video: Proxmox Reuses VM IDs: My New Container Deleted the Old Backup (9.3 Fix, Lab Test)](https://youtu.be/i8rmpMA2_Ro)

Video: Proxmox Reuses VM IDs: My New Container Deleted the Old Backup (9.3 Fix, Lab Test)

![Same VM ID, two guests, one backup list: what Proxmox VE 9.3.1 did in our lab](https://www.mrplanb.com/images/blog/proxmox-vm-id-reuse-backups-9-3-diagram.svg)

## What changed in Proxmox VE 9.3

Per the [Proxmox VE 9.3 release notes](https://pve.proxmox.com/wiki/Roadmap#Proxmox_VE_9.3), two changes deal with reused IDs:

* Every VM and container now has a unique guest identity: a `uid` that 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, and `force` alone no longer overrides that.
* Reusing the IDs of removed guests can now be avoided. Under `Datacenter → Options → Next Free Guest ID`, the new `Unique` setting only suggests IDs that were never in use, and `Enforce` turns 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-ids` on 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:

```text
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:

```text
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:

```text
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:

```text
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.

![Guest Identity window for container 102 in Proxmox VE 9.3.1, showing the unique ID and registration time](https://www.mrplanb.com/images/blog/proxmox-vm-id-reuse-backups-9-3-guest-identity.webp)

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:

```text
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:

```text
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
```

![Edit Next Free Guest ID dialog in Proxmox VE 9.3.1 with Unique and Enforce ticked](https://www.mrplanb.com/images/blog/proxmox-vm-id-reuse-backups-9-3-next-free-guest-id.webp)

The same setting from the shell:

```bash
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']`:

```bash
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

1. `Datacenter → Options → Next Free Guest ID`: tick Unique and Enforce.
2. 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).
3. Set the backup notes template to `{{guestname}}` so a mixed list is easy to spot.
4. Before you delete a guest, protect its last backup.
5. Restore a deleted guest to a new ID, never over an existing one.
6. 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](https://backup.mrplanb.com/backup-advisor) compares the options.

## FAQ

### 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.

Source: https://www.mrplanb.com/blog/proxmox-vm-id-reuse-backups-9-3
