mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 18:59:41 +00:00
snapshot_create: check if vm is running before try to save state
This commit is contained in:
parent
2009f324ac
commit
030dd626f4
@ -3755,6 +3755,8 @@ sub snapshot_create {
|
||||
|
||||
my $snap = &$snapshot_prepare($vmid, $snapname, $comment);
|
||||
|
||||
$freezefs = $vmstate = 0 if !check_running($vmid);
|
||||
|
||||
my $drivehash = {};
|
||||
|
||||
eval {
|
||||
|
Loading…
Reference in New Issue
Block a user