qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Russell Morris <rmorris@rkmorris.us>
To: "David S. Ahern" <daahern@cisco.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Log Console Output to File
Date: Thu, 11 Nov 2010 14:37:25 -0600	[thread overview]
Message-ID: <1289507845918233500@rkmorris.us> (raw)
In-Reply-To: <4CDC2666.5000705@cisco.com>

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]

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" <daahern@cisco.com> wrote:


> 
On 11/11/10 09:57, Mulyadi Santosa wrote:
> > On Thu, Nov 11, 2010 at 12:50, <qemu@rkmorris.us> 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
> 

[-- Attachment #2: Type: text/html, Size: 1730 bytes --]

  reply	other threads:[~2010-11-11 20:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11  5:50 [Qemu-devel] Log Console Output to File qemu
2010-11-11 16:57 ` Mulyadi Santosa
2010-11-11 17:22   ` David S. Ahern
2010-11-11 20:37     ` Russell Morris [this message]
2010-11-11 20:43       ` David S. Ahern
2010-11-12  3:40         ` qemu
2010-11-11 21:17       ` Stefan Weil
2010-11-11 21:57         ` David S. Ahern
2010-11-12  3:42         ` qemu
2010-11-13 14:39         ` qemu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1289507845918233500@rkmorris.us \
    --to=rmorris@rkmorris.us \
    --cc=daahern@cisco.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).