[pve-devel] [PATCH] usr vm_mon_cmd_nocheck for balloon qmp command at vm_start
Dietmar Maurer
dietmar at proxmox.com
Thu Dec 20 12:55:17 CET 2012
thanks.
I applied a slightly modified fix.
> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Alexandre Derumier
> Sent: Donnerstag, 20. Dezember 2012 12:11
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH] usr vm_mon_cmd_nocheck for balloon qmp
> command at vm_start
>
> fix live migration, as we don't have the vm config file
>
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
> PVE/QemuServer.pm | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index
> 81a9351..9c64757 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -3001,9 +3001,9 @@ sub vm_start {
> # fixme: how do we handle that on migration?
>
> if (!defined($conf->{balloon}) || $conf->{balloon}) {
> - vm_mon_cmd($vmid, "balloon", value => $conf-
> >{balloon}*1024*1024)
> + vm_mon_cmd_nocheck($vmid, "balloon", value =>
> +$conf->{balloon}*1024*1024)
> if $conf->{balloon};
> - vm_mon_cmd($vmid, 'qom-set',
> + vm_mon_cmd_nocheck($vmid, 'qom-set',
> path => "machine/peripheral/balloon0",
> property => "stats-polling-interval",
> value => 2);
> --
> 1.7.10.4
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list