mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 18:45:29 +00:00
always setup balloon polling interval.
we always need to enable pooling interval, because it doesn't seem to be setup with -machine option Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
8586d0ecf7
commit
eb06531726
@ -4197,10 +4197,6 @@ sub vm_start {
|
|||||||
if (!$statefile && (!defined($conf->{balloon}) || $conf->{balloon})) {
|
if (!$statefile && (!defined($conf->{balloon}) || $conf->{balloon})) {
|
||||||
vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024)
|
vm_mon_cmd_nocheck($vmid, "balloon", value => $conf->{balloon}*1024*1024)
|
||||||
if $conf->{balloon};
|
if $conf->{balloon};
|
||||||
vm_mon_cmd_nocheck($vmid, 'qom-set',
|
|
||||||
path => "machine/peripheral/balloon0",
|
|
||||||
property => "guest-stats-polling-interval",
|
|
||||||
value => 2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $opt (keys %$conf) {
|
foreach my $opt (keys %$conf) {
|
||||||
@ -4209,6 +4205,12 @@ sub vm_start {
|
|||||||
qemu_set_link_status($vmid, $opt, 0) if $nicconf->{link_down};
|
qemu_set_link_status($vmid, $opt, 0) if $nicconf->{link_down};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vm_mon_cmd_nocheck($vmid, 'qom-set',
|
||||||
|
path => "machine/peripheral/balloon0",
|
||||||
|
property => "guest-stats-polling-interval",
|
||||||
|
value => 2) if (!defined($conf->{balloon}) || $conf->{balloon});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user