incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mry...@apache.org
Subject svn commit: r754986 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Date Mon, 16 Mar 2009 19:21:39 GMT
Author: mryan3
Date: Mon Mar 16 19:21:39 2009
New Revision: 754986

URL: http://svn.apache.org/viewvc?rev=754986&view=rev
Log:
This patch adds support for dynamically attaching a CDROM ISO to a Qemu-based VM.
Perhaps in the future a more generic call to attach block-devices could be added.

See TASHI-4


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=754986&r1=754985&r2=754986&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Mon Mar 16 19:21:39 2009
@@ -513,6 +513,12 @@
 				child.vncPort = -1
 				self.saveChildInfo(child)
 			return "VNC halted"
+		elif (arg.startswith("changecdrom:")):
+			child = self.getChildFromPid(vmId)
+			iso = scrubString(arg[12:])
+			imageLocal = self.dfs.getLocalHandle("images/" + iso)
+			self.enterCommand(child, "change ide1-cd0 %s" % (imageLocal))
+			return "Changed ide1-cd0 to %s" % (iso)
 		elif (arg == "startconsole"):
 			child = self.getChildFromPid(vmId)
 			hostname = socket.gethostname()



Mime
View raw message