Windows qga VSS 110.2.3: GetSnapshotProperties succeeds but returns a zero snapshot ID
AI disclosure: Investigation and report assisted by OpenAI Codex. The results below were reproduced on a Windows guest.
## Host environment
- Operating system: Proxmox VE; exact version not collected
- OS/kernel version: Not collected
- Architecture: x86_64
- QEMU flavor: Windows QEMU Guest Agent / VSS provider
- QEMU version: Guest Agent package 110.2.3; host QEMU version not collected
- QEMU command line: Not collected; reduced reproduction runs inside Windows
## Emulated/Virtualized environment
- Operating system: Windows Server 2025 Datacenter
- OS/kernel version: 24H2, build 26100
- Architecture: x86_64
## Description of problem
With QEMU Guest Agent VSS Provider 110.2.3 registered,
IVssBackupComponents::GetSnapshotProperties returns S_OK but an
all-zero snapshot ID for an existing Microsoft-provider snapshot.
Originally encountered with Veeam VSA 13.1.1.18 application-aware
backups, which fail with:
“Failed to enumerate paths to shadow volumes. Original volume name
is not specified for the shadow (shadow volume id:
'{00000000-0000-0000-0000-000000000000}').”
The lookup failure also reproduces independently of backup software.
Expected behavior: return valid properties for the existing snapshot.
## Steps to reproduce
1. With QEMU VSS provider 110.2.3 installed, create a temporary
snapshot in elevated DiskShadow:
```text
set context volatile nowriters
add volume C: provider {b5946137-7b9f-4925-af80-51abd60b20d5} alias TestShadow
create
```
2. Keep DiskShadow alive. From a separate elevated VSS client, call
CreateVssBackupComponents, InitializeForBackup,
SetContext(VSS_CTX_ALL), and GetSnapshotProperties using the
existing snapshot ID and zero-initialized output storage.
Our diagnostic used PowerShell/C# interop.
3. Observe S_OK with a zero returned snapshot ID, despite DiskShadow
listing the valid snapshot and original volume path.
Exit DiskShadow to release the temporary snapshot.
## Additional information
A controlled comparison using a fresh Microsoft-provider snapshot
for each test produced:
| QEMU VSS registration | GetSnapshotProperties result |
|---|---|
| Present | S_OK, zero snapshot ID |
| Temporarily removed, VSS refreshed | S_OK, correct snapshot ID |
| Restored, VSS refreshed | S_OK, zero snapshot ID again |
Only the QEMU provider entry under
HKLM\SYSTEM\CurrentControlSet\Services\VSS\Providers was temporarily
removed. Original registration was restored and verified against its
export. No agent binaries were changed.
Potentially related commit:
https://github.com/qemu/qemu/commit/374f4676788ca1f1c5a33670efeafff4ce936f79
This changes GetSnapshotProperties from VSS_E_OBJECT_NOT_FOUND to
S_OK without populating the output properties. It matches the
observed behavior, but attribution has not been confirmed by bisect.
Tests used the distributed Windows package, not a fresh upstream
build. A full backup with the provider registration removed was
not tested.
/label ~"kind::Bug"