[pve-devel] [PATCH] usr vm_mon_cmd_nocheck for balloon qmp command at vm_start

Alexandre Derumier aderumier at odiso.com
Thu Dec 20 12:10:40 CET 2012


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




More information about the pve-devel mailing list