Browse Source

dispvm: clean the VM in case of failed savefile creation

Otherwise further tries to regenerate savefile would fail.
Marek Marczykowski-Górecki 9 years ago
parent
commit
23ae0ed990
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dispvm/qubes-prepare-saved-domain.sh

+ 1 - 0
dispvm/qubes-prepare-saved-domain.sh

@@ -55,6 +55,7 @@ sleep 1
 touch $2
 if ! virsh -c xen:/// save $1 $2; then
 	rm -f $QMEMMAN_STOP
+	qvm-kill $1
 	exit 1
 fi
 rm -f $QMEMMAN_STOP