5ef4888910773f5b7eafeeef65491e1130ccddac
Restoring a backup keeps the 'vmstatestorage' option of the backed up VM. When the backup is restored on another node or cluster, that storage might not exist there or not be enabled for the node, so that hibernating the VM or taking a snapshot including RAM fails later on, for example with "storage 'local-zfs-pve1' does not exist". If the configured VM state storage is not available on the node the backup is restored to, drop the option, so that the storage is selected automatically, like for VMs without it, and log that in the restore task log. A 'vmstatestorage' passed explicitly when restoring is applied after this and is not affected. Signed-off-by: Michal Fox <me@dualfroz.com>
Description
My contributions to proxmox-git/qemu-server: 12 commits
166 KiB
0 Stars
1 Watchers
0 Forks
Languages
Perl
99.6%
Batchfile
0.4%