Ask qemu to start in stopped state (via -S), then start the guest via cont monitor command. This allows us to finish logging setup before the guest actually runs, so we don't loose early seabios output.
Signed-off-by: Gerd Hoffmann <kra...@redhat.com> --- client/virt/kvm_vm.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index 16f7551..aa097ce 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -884,6 +884,7 @@ class VM(virt_vm.BaseVM): qemu_cmd += "numactl -m %s " % n # Add the qemu binary qemu_cmd += qemu_binary + qemu_cmd += " -S" # Add the VM's name qemu_cmd += add_name(help, name) # no automagic devices please @@ -1586,6 +1587,9 @@ class VM(virt_vm.BaseVM): output_func=virt_utils.log_line, output_params=(outfile,)) + # start guest + self.monitor.cmd("cont") + finally: fcntl.lockf(lockfile, fcntl.LOCK_UN) lockfile.close() -- 1.7.1 _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest