You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by rg...@apache.org on 2013/01/15 14:03:20 UTC

svn commit: r1433421 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py

Author: rgass
Date: Tue Jan 15 14:03:20 2013
New Revision: 1433421

URL: http://svn.apache.org/viewvc?rev=1433421&view=rev
Log:
Adding "-balloon virtio" to enable qemu to dynamically change amount of memory allocated to a vm  



Modified:
    incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py

Modified: incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py?rev=1433421&r1=1433420&r2=1433421&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Tue Jan 15 14:03:20 2013
@@ -558,7 +558,7 @@ class Qemu(VmControlInterface):
 			noAcpiString = ""
 
 		#  Construct the qemu command
-		strCmd = "%s %s %s -clock %s %s %s -m %d -smp %d -serial null -vnc none -monitor pty" % (self.QEMU_BIN, noAcpiString, cpuString, clockString, diskString, nicString, instance.memory, instance.cores)
+		strCmd = "%s %s %s -clock %s %s %s -m %d -smp %d -serial null -vnc none -monitor pty -balloon virtio" % (self.QEMU_BIN, noAcpiString, cpuString, clockString, diskString, nicString, instance.memory, instance.cores)
 		if (source):
 			strCmd = '%s -incoming "%s"' % (strCmd, source)
 		# XXXstroucki perhaps we're doing it backwards