From fc439edf2f6dfcd37b4987966df212c41405e80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 22 Feb 2015 04:01:18 +0100 Subject: [PATCH] linux/block-snapshot: call qvm-template-commit in offline mode When called from libvirt->libxl, there is libvirt lock taken on that domain. Because of that, we can't access libvirt domain, so basically any runtime information. Without that --offline-mode, script waited on the lock and then was killed by libxl after a timeout - before actually committing the changes. --- linux/system-config/block-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/system-config/block-snapshot b/linux/system-config/block-snapshot index f68bfdc6..fb41856e 100755 --- a/linux/system-config/block-snapshot +++ b/linux/system-config/block-snapshot @@ -245,7 +245,7 @@ case "$command" in domain=$(cat "$HOTPLUG_STORE-domain") if [ "$domain" ]; then # Dont stop on errors - /usr/bin/qvm-template-commit "$domain" || true + /usr/bin/qvm-template-commit --offline-mode "$domain" || true fi fi fi