----- "Gerd Hoffmann" <kraxel@xxxxxxxxxx> wrote: > Hi, > > Now and then autotest thinks creating the vm failed, although qemu > started up just fine. autotest then goes to wait($qemupid) and hangs > there forever ... If you encounter this again, please send the autotest debug log -- it'll make it easier to tell why autotest hangs. > > I suspect this is a race: autotest uses 'help' on the monitor to check > whenever qemu is alive. If qemu created the monitor socket fast > enougth it works. Otherwise it doesn't. First autotest checks whether the PID exists. Then it uses 'help' to see if qemu is responsive, but it tries 'help' repeatedly, until timeout (default 5 secs) expires. I assumed 5 secs was plenty, so I wonder why qemu takes longer than that to start (if that really is the problem). I also wonder why autotest hangs. I don't remember seeing autotest hang immediately after trying to start a VM (or ever, actually). > > I've papered over it with the quick&dirty patch below. Someone who > knows autotest better that /me should fix this properly. > > thanks, > Gerd -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html