snapshot_create: check if vm is running before try to save state

This commit is contained in:
Dietmar Maurer 2012-09-12 09:55:56 +02:00
parent 2009f324ac
commit 030dd626f4

View File

@ -3755,6 +3755,8 @@ sub snapshot_create {
my $snap = &$snapshot_prepare($vmid, $snapname, $comment);
$freezefs = $vmstate = 0 if !check_running($vmid);
my $drivehash = {};
eval {