]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
enable live-restore for PBS
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 3 Mar 2021 09:56:09 +0000 (10:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Apr 2021 08:58:13 +0000 (10:58 +0200)
commit26731a3c1541811651c0dada0e8348b4c5e781fc
treedb5adf07ae106401cd786923943ba832846ae81f
parent5921764c2698edde3a2d6cd5abd241817a50d864
enable live-restore for PBS

Enables live-restore functionality using the 'alloc-track' QEMU driver.
This allows starting a VM immediately when restoring from a PBS
snapshot. The snapshot is mounted into the VM, so it can boot from that,
while guest reads and a 'block-stream' job handle the restore in the
background.

If an error occurs, the VM is deleted and all data written during the
restore is lost.

The VM remains locked during the restore, which automatically prohibits
any modifications to the config while restoring. Some modifications
might potentially be safe, however, this is experimental enough that I
believe this would cause more bad stuff(tm) than actually satisfy any
use cases.

Pool handling is slightly adjusted so the VM can be added to the pool
before the restore starts.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm