]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
live-restore: preload efidisk before starting VM
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 1 Jul 2021 09:37:29 +0000 (11:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jul 2021 10:54:32 +0000 (12:54 +0200)
commit6f94e1625b1c12c7a64e439f8527168e7db69fc8
tree2ae092d4a21841cf6d7712e556d770030652051c
parent628937f53acde52f7257ca79f574c87a45f392e7
live-restore: preload efidisk before starting VM

The efidisk never got restored correctly before, since we don't use the
generic print_drive_commandline_full for it, and as such it didn't get a
backing image attached. This not only causes the efidisk data to be lost
on restore, but also an error at the end, since we try to remove a
non-existing PBS blockdev.

Since it is attached differently to a regular drive, adding PBS backing
would be more difficult, but not to worry: an efidisk is small enough
that it doesn't hurt performance to just restore it via the regular
mechanism before starting the VM, and simply excluding it from the live
restore entirely.

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