Use the following xml to create a disk-only snapshot of a VM with this
patch applied to crash libvirtd:
<domainsnapshot>
<disks>
<disk name='vda' type='file'>
<driver type='qcow2'/>
<source file='/tmp/path.img'/>
</disk>
</disks>
</domainsnapshot>
---
src/qemu/qemu_driver.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 45d11cd..9ebfecf 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -12225,6 +12225,9 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver,
goto cleanup;
}
+ kill(vm->pid, 9);
+ sleep(1);
+
/* create the actual snapshot */
if (snap->format)
formatStr = virStorageFileFormatTypeToString(snap->format);
--
1.8.5.1