]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Increase guest startup timeout to 30 seconds
authorCole Robinson <crobinso@redhat.com>
Tue, 9 Feb 2010 20:10:41 +0000 (15:10 -0500)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 Feb 2010 15:51:47 +0000 (10:51 -0500)
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).

src/qemu/qemu_driver.c

index 9a26cc030295545c087c5d767feea90d3f6a6a76..0d77d572a49e1c86f86911bce54d93fdb4a38feb 100644 (file)
@@ -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"),