]> git.proxmox.com Git - qemu-server.git/commitdiff
don't send qmp balloon commands if vm is started with a state file
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 29 Apr 2013 12:13:57 +0000 (14:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 30 Apr 2013 05:01:58 +0000 (07:01 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index c71cb69b3a86a611b7d9c0c5851bc3dc20c773d4..3725807090bda0267b38481cf4f450ff0318235b 100644 (file)
@@ -3012,7 +3012,7 @@ sub vm_start {
        }
        else{
 
-           if (!defined($conf->{balloon}) || $conf->{balloon}) {
+           if (!$statefile && (!defined($conf->{balloon}) || $conf->{balloon})) {
                vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024) 
                    if $conf->{balloon};
                vm_mon_cmd_nocheck($vmid, 'qom-set',