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 mr...@apache.org on 2009/03/16 19:21:39 UTC
svn commit: r754986 -
/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
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()