[pve-devel] [PATCH] send balloon qmp command when we update the balloon option

Alexandre Derumier aderumier at odiso.com
Wed Dec 5 09:36:19 CET 2012


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Qemu.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 09ab1e7..cdec67e 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -897,9 +897,10 @@ __PACKAGE__->register_method({
 
 		    &$vmconfig_update_net($rpcenv, $authuser, $conf, $storecfg, $vmid, 
 					  $opt, $param->{$opt});
-
 		} else {
 
+		    PVE::QemuServer::vm_balloonset($vmid, $param->{$opt}) if $opt eq 'balloon';
+
 		    $conf->{$opt} = $param->{$opt};
 		    PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
 		}
-- 
1.7.10.4




More information about the pve-devel mailing list