qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Log Console Output to File


From: Russell Morris
Subject: Re: [Qemu-devel] Log Console Output to File
Date: Thu, 11 Nov 2010 14:37:25 -0600

Hi,

 

Thanks for the pointer! I tried this, but I get an error message, as follows ...

chardev: opening backent "stdio" failed

qemu: could not open serial device 'stdio': Inappropriate ioctl for device.

 

Thoughts?

 

Thanks again!



On Thu, Nov 11, 2010 11:22  AM, "David S. Ahern" <address@hidden> wrote:

On 11/11/10 09:57, Mulyadi Santosa wrote:
> On Thu, Nov 11, 2010 at 12:50, <address@hidden> wrote:
>> Hi,
>>
>> Is there a way to log / copy the console output (like the Linux boot info, if booting QEMU to Linux) to a file?
>
> I think you could consider booting Linux in serial console...then
> start Qemu with -nographic. From there, everything will be spilled
> right in your standart output. Then you can use your favourite method
> to save the output...let's say using "script" command.
>

I use 'screen' and its logging capability (Ctrl-a H). Launch the VM with
'-serial stdio -nographic' and have the guest console directed to ttyS0
(console=ttyS0 kernel arg).

David

reply via email to

[Prev in Thread] Current Thread [Next in Thread]