+ bootcmd = bootcmd + " %(diskimage)s" % locals()
+ # redirect stdout, stderr to logfile
+ bootcmd = bootcmd + " 2>&1 >> %s " % (self.config.log_filename)
+
+ # kill any old qemu processes for this node
+ pid_cmd = "ps -elfy | grep qemu | grep %(hostname)s | awk '{print$3}'" % locals()
+ (status, output) = node.host_commands(pid_cmd)
+ pids = " ".join(output.split("\n")).strip()
+ if pids:
+ kill_cmd = "kill %(pids)s" % locals()
+ (status, output) = node.host_commands(kill_cmd)
+
+ # launch qemu