diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm index 03b2a70c..c2192cf1 100644 --- a/PVE/QemuConfig.pm +++ b/PVE/QemuConfig.pm @@ -302,6 +302,9 @@ sub __snapshot_rollback_hook { } if ($conf->{vmgenid}) { + # tell the VM that it's another generation, so it can react + # appropriately, e.g. dirty-mark copies of distributed databases or + # re-initializing its random number generator $conf->{vmgenid} = PVE::QemuServer::generate_uuid(); } }