From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48755 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGkVv-0006In-Pj for qemu-devel@nongnu.org; Thu, 11 Nov 2010 22:41:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGkVu-0000ro-9y for qemu-devel@nongnu.org; Thu, 11 Nov 2010 22:41:23 -0500 Received: from vms173007pub.verizon.net ([206.46.173.7]:45962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGkVu-0000rc-0t for qemu-devel@nongnu.org; Thu, 11 Nov 2010 22:41:22 -0500 Received: from server ([unknown] [71.170.86.183]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LBR002D368HNQ10@vms173007.mailsrvcs.net> for qemu-devel@nongnu.org; Thu, 11 Nov 2010 21:41:10 -0600 (CST) From: Date: Thu, 11 Nov 2010 21:40:50 -0600 Message-id: <1289533250049133500@rkmorris.us> In-reply-to: <4CDC556D.60207@cisco.com> References: <1289454632425616500@rkmorris.us> <4CDC2666.5000705@cisco.com> <1289507845918233500@rkmorris.us> <4CDC556D.60207@cisco.com> Subject: Re: [Qemu-devel] Log Console Output to File MIME-version: 1.0 Content-type: multipart/alternative; boundary="===axigen=1130297435735817157382167210158162502801=axigen===" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "David S. Ahern" Cc: qemu-devel@nongnu.org This is a MIME message. You may need a MIME compliant mail user agent. --===axigen=1130297435735817157382167210158162502801=axigen=== Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Here you go ...=20 qemu-system-arm -serial stdio -nographic -M versatilepb -kernel zImage-2.6.= 34-r4-qemuarm.bin -hda minimal-console-image-eglibc-ipk-dev-snapshot-201011= 10-qemuarm.rootfs.ext3 -append "root=3D/dev/sda" And the output ... chardev: opening backend "stdio" failed qemu: could not open serial device 'stdio': Inappropriate ioctl for device Thoughts? Thanks! On Thu, Nov 11, 2010 02:43 PM, "David S. Ahern" wrote: > On 11/11/10 13:37, Russell Morris wrote: > > Hi, > >=20 > > =20 > >=20 > > Thanks for the pointer! I tried this, but I get an error message, as > > follows ... > >=20 > > *chardev: opening backent "stdio" failed* > >=20 > > *qemu: could not open serial device 'stdio': Inappropriate ioctl for > > device.* >=20 > qemu command line? >=20 > David >=20 > >=20 > > =20 > >=20 > > Thoughts? > >=20 > > =20 > >=20 > > Thanks again! > >=20 > >=20 > >=20 > > On Thu, Nov 11, 2010 11:22 AM, "David S. Ahern" wr= ote: > >=20 > > On 11/11/10 09:57, Mulyadi Santosa wrote: > > > On Thu, Nov 11, 2010 at 12:50, > > 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 spille= d > > > right in your standart output. Then you can use your favourite me= thod > > > to save the output...let's say using "script" command. > > > > >=20 > > I use 'screen' and its logging capability (Ctrl-a H). Launch the VM= with > > '-serial stdio -nographic' and have the guest console directed to t= tyS0 > > (console=3DttyS0 kernel arg). > >=20 > > David > --===axigen=1130297435735817157382167210158162502801=axigen=== Content-Type: text/html Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Here you go ...
qemu-system-arm -serial stdio -nographic -M vers= atilepb -kernel zImage-2.6.34-r4-qemuarm.bin -hda minimal-console-image-egl= ibc-ipk-dev-snapshot-20101110-qemuarm.rootfs.ext3 -append "root=3D/dev/sda"=

And the output ...
chardev: opening backend "stdio" failed
qe= mu: could not open serial device 'stdio': Inappropriate ioctl for device
Thoughts?

Thanks!



On Thu, Nov 11, = ;2010 02:43  PM, "David S. Ahern" <daahern= @cisco.com> wrote:
On 11/11/10 13:37, Russell Morris wrote:
> = Hi,
>
>
>
> Thanks for the pointer! I tried thi= s, but I get an error message, as
> follows ...
>
> *cha= rdev: opening backent "stdio" failed*
>
> *qemu: could not ope= n serial device 'stdio': Inappropriate ioctl for
> device.*

qe= mu command line?

David

>
>
>
> Thoug= hts?
>
>
>
> Thanks again!
>
> >
> On Thu, Nov 11, 2010 11:22 AM, "David S. Ahern" <daahern@cisco.com> w= rote:
>
> On 11/11/10 09:57, Mulyadi Santosa wrote:
>= ; > On Thu, Nov 11, 2010 at 12:50, <qemu@rkmorris.us
> <qemu@rkmorris.us>> wrote= :
> >> Hi,
> >>
> >> Is the= re 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 spille= d
> > right in your standart output. Then you can use your fav= ourite method
> > to save the output...let's say using "script= " command.
> >
>
> I use 'screen' and its log= ging capability (Ctrl-a H). Launch the VM with
> '-serial stdio -= nographic' and have the guest console directed to ttyS0
> (consol= e=3DttyS0 kernel arg).
>
> David
--===axigen=1130297435735817157382167210158162502801=axigen===--