From: Cole Robinson Date: Tue, 9 Feb 2010 20:10:41 +0000 (-0500) Subject: qemu: Increase guest startup timeout to 30 seconds X-Git-Tag: v0.7.7~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3024a2ccee8a236ea811d44f9c69349d639b94f;p=thirdparty%2Flibvirt.git qemu: Increase guest startup timeout to 30 seconds Currently the timeout for reading startup output is 3 seconds. If the host is under any sort of load, we can easily trigger this. Lets bump it to 30 seconds. Since the polling loop checks to see if the process has died, we shouldn't erroneously hit this timeout if qemu bombs (only if it is stuck in some infinite loop). --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 9a26cc0302..0d77d572a4 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -1541,7 +1541,7 @@ qemudWaitForMonitor(struct qemud_driver* driver, ret = qemudReadLogOutput(vm, logfd, buf, sizeof(buf), qemudFindCharDevicePTYs, - "console", 3); + "console", 30); if (close(logfd) < 0) { char ebuf[4096]; VIR_WARN(_("Unable to close logfile: %s"),