5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-25 06:03:52 +03:00

don't send qmp balloon commands if vm is started with a state file

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-04-29 14:13:57 +02:00 committed by Dietmar Maurer
parent bdf3f36209
commit 15b1fc9395

View 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',