Automatic Hot/Cold Storage for VMs

jakob_ledermann

New Member
Dec 8, 2025
1
0
1
Our VMs are only used for a few days at a time and then they won't be in use for quite a while.
When they are in use the VMs require fast Storage to be usable, so I tried to use the hookscripts `pre-start` and `post-stop` event to move the disk of the VM from the slow but cheap Networkstorage to the faster SSD on the host and back again.

Unfortunately this does not work properly as the `qm disk move` command fails with a lock timeout.
For the `post-stop` event I already found https://forum.proxmox.com/threads/h...hutdown-from-the-vm-itself.72802/#post-822654 and simliar and am trying to use nohup and background execution at the moment. This does not help for `pre-start`for now.

The version in use is a recent Proxmox VE 9.1.

Did someone successfully implement such a use case?
Has someone different ideas how I could implement this use case?