mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-07-05 21:13:22 +00:00
balloon: don't set balloon && polling interval at start when livemigrate
We don't need to set balloon value and polling interval when a vm is coming from a livemigrate. (Values are keep in guest memory) So with autoballooning, this avoid to set the ballon size at ballon_min value when the vm is migrated Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
27d51e240f
commit
4ec05c4cc3
@ -2986,8 +2986,7 @@ sub vm_start {
|
||||
$capabilities->{state} = JSON::true;
|
||||
eval { vm_mon_cmd_nocheck($vmid, "migrate-set-capabilities", capabilities => [$capabilities]); };
|
||||
}
|
||||
|
||||
# fixme: how do we handle that on migration?
|
||||
else{
|
||||
|
||||
if (!defined($conf->{balloon}) || $conf->{balloon}) {
|
||||
vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024)
|
||||
@ -2997,6 +2996,7 @@ sub vm_start {
|
||||
property => "stats-polling-interval",
|
||||
value => 2);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user