From 9cedb1cc997c2fcdb0af47de47eaa4c1bce301ab Mon Sep 17 00:00:00 2001 From: Dmitry Shmygov Date: Sat, 27 Dec 2014 12:44:10 +0300 Subject: [PATCH] Add sleep after write to QEMU monitor (to work with new QEMU versions) --- gns3server/modules/qemu/qemu_vm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 13df91bc..fb4fad9c 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -27,6 +27,7 @@ import subprocess import shlex import ntpath import telnetlib +import time from gns3server.config import Config from gns3dms.cloud.rackspace_ctrl import get_provider @@ -912,6 +913,7 @@ class QemuVM(object): tn = telnetlib.Telnet(self._monitor_host, self._monitor, timeout=timeout) try: tn.write(command.encode('ascii') + b"\n") + time.sleep(0.1) except OSError as e: log.warn("Could not write to QEMU monitor: {}".format(e)) tn.close()