[libvirt-users] automatically reverting to a snapshot

Dirty Dan
Tue, 25 Jul 2017 15:08:58 -0000

How can I automatically revert to a snapshot after
the guest is stopped?<div
dir="auto"> <div
dir="auto">/etc/libvirt/hooks/qemu
#!/bin/sh
name="<span
class="money">$1"
action="<span
class="money">$2"
if [ "$name" =
"name" ]; then
virsh snapshot-revert
"$name" --snapshotname "snapshot1"
fi <div
dir="auto"> I
tried this which resulted in a deadlock, then I saw the warning further down the
page.