]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Ensure that NVRAM image exists when taking inactive internal snapshot
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Feb 2025 16:52:50 +0000 (17:52 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 5 Feb 2025 18:29:38 +0000 (19:29 +0100)
commit650e6fb7ebf905fe7dc992610ef9e932328460b7
treecd72d7062f404d385a51773914fd66fcfa1f382c
parenta377404ed912e8d17e88ef3eb8e71143eff88f7d
qemu: snapshot: Ensure that NVRAM image exists when taking inactive internal snapshot

Attempting to take an internal snapshot of a freshly defined VM with
qcow2 backed NVRAM results in failure as the NVRAM image doesn't get
populated until the VM is started for the first time.

Fix this by invoking qemuPrepareNVRAM() when qcow2 nvram is defined.

Resolves: https://issues.redhat.com/browse/RHEL-73315
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_snapshot.c