Received: from [140.186.70.92] (port=54387 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHHHP-0006rB-Ou for qemu-devel@nongnu.org; Sat, 13 Nov 2010 09:40:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHHH8-00044x-C8 for qemu-devel@nongnu.org; Sat, 13 Nov 2010 09:40:35 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:50436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHHH8-00044W-8y for qemu-devel@nongnu.org; Sat, 13 Nov 2010 09:40:18 -0500 Received: from server ([unknown] [71.170.86.183]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LBT00FIJVESMAE0@vms173003.mailsrvcs.net> for qemu-devel@nongnu.org; Sat, 13 Nov 2010 08:40:04 -0600 (CST) From: Date: Sat, 13 Nov 2010 08:39:50 -0600 Message-id: <1289659190986916500@rkmorris.us> In-reply-to: <4CDC5D75.2040500@mail.berlios.de> References: <1289454632425616500@rkmorris.us> <4CDC2666.5000705@cisco.com> <1289507845918233500@rkmorris.us> <4CDC5D75.2040500@mail.berlios.de> Subject: Re: [Qemu-devel] Log Console Output to File MIME-version: 1.0 Content-type: multipart/alternative; boundary="===axigen=1924022527719825539073378214541321952262=axigen===" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org, "David S. Ahern" This is a MIME message. You may need a MIME compliant mail user agent. --===axigen=1924022527719825539073378214541321952262=axigen=== Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, =20 A bit more on this - as I have been trying to get it working ... :-). =20 The command you provided did work if I use /dev/tty in place of stdio (i.e.= -serial /dev/tty) ... except that it only "starts" to work once I have a l= ogin prompt in QEMU (and then also in my command window). I'm trying to cap= ture all the Linux boot info / messages prior to that. Any idea how to get = this info to show up in my console window (where I'm executing qemu from)? =20 Thanks! On Thu, Nov 11, 2010 03:17 PM, Stefan Weil wrote: >=20 Am 11.11.2010 21:37, schrieb Russell Morris: > > Hi, > > > > Thanks for the pointer! I tried this, but I get an error message, as=20 > > follows ... > > *chardev: opening backent "stdio" failed* > > *qemu: could not open serial device 'stdio': Inappropriate ioctl for=20 > > device.* > > > > Thoughts?=20 >=20 > Hi, >=20 > I assume that you tried this (as it was suggested by an earlier mail): >=20 > qemu -serial stdio -nographic ... >=20 > This results in an error message for me, too: >=20 > chardev: opening backend "stdio" failed > qemu: could not open serial device 'stdio': No such file or directory >=20 > Try this variant (which works for me): >=20 > qemu -nographic ... >=20 > It will redirect the serial output (first serial port) of your guest os t= o > standard output, so you can write it to a file with the usual methods, > for example this one: >=20 > qemu -nographic ... | tee log.txt >=20 > Regards >=20 > Stefan Weil >=20 > --===axigen=1924022527719825539073378214541321952262=axigen=== Content-Type: text/html Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

Hi,

 

A bit more on this - as I have been trying to get it working ... :-).

 

The command you provided did work if I use /dev/tty in place of stdio (i= .e. -serial /dev/tty) ... except that it only "starts" to work once I have = a login prompt in QEMU (and then also in my command window). I'm trying to = capture all the Linux boot info / messages prior to that. Any idea how to g= et this info to show up in my console window (where I'm executing qemu from= )?

 

Thanks!



On Thu, Nov 11, 2010 03:17  PM, St= efan Weil <weil@mail.berlios.de> wrote:

Am 11.11.2010 21:37, sch= rieb Russell Morris:
> Hi,
>
> Thanks for the pointer! I = tried this, but I get an error message, as
> follows ...
> *ch= ardev: opening backent "stdio" failed*
> *qemu: could not open serial= device 'stdio': Inappropriate ioctl for
> device.*
>
> = Thoughts?

Hi,

I assume that you tried this (as it was sugges= ted by an earlier mail):

qemu -serial stdio -nographic ...

Th= is results in an error message for me, too:

chardev: opening backend= "stdio" failed
qemu: could not open serial device 'stdio': No such file= or directory

Try this variant (which works for me):

qemu -no= graphic ...

It will redirect the serial output (first serial port) o= f your guest os to
standard output, so you can write it to a file with t= he usual methods,
for example this one:

qemu -nographic ... | tee= log.txt

Regards

Stefan Weil

--===axigen=1924022527719825539073378214541321952262=axigen===--