Automatic VM boot testing?

PwrBank

Active Member
Nov 12, 2024
184
82
28
Hey all,

Is there any good way to test if VMs are bootable after backup or on a schedule?

I was thinking this would actually be a fairly simple thing to test (as long as QEMU agent is installed) where PBS can run a very lightweight VM from backup, with a definable resource allotment. Where all it does is just checks if the QEMU agent responds, and if so, passes the check and deletes the VM.
 
  • Like
Reactions: SInisterPisces
Hi,
I think the option currently available is via Proxmox Backup Server verification jobs to ensure that backup data remains intact.
A verification job ensures that your backups are valid. It is recommended to perform re-verification at least once per month.
You can find more details in the official documentation:
https://pbs.proxmox.com/docs/maintenance.html#verification

That's not exactly the same thing though, that's more checking if the bits of the backup are what they are supposed to be. This is more of a, not only are the bits what they are expected to be, because that's one thing - It's, do those bits allow the VM to actually even fully startup?
 
Understood, I believe your idea would be as a new feature request, as it's not available by default based on what I've checked.
However, as you mentioned, it seems quite feasible and possibly scripted via qmrestore cli.