From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34208 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGdzW-0005YS-An for qemu-devel@nongnu.org; Thu, 11 Nov 2010 15:43:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGdzU-0000xS-Ux for qemu-devel@nongnu.org; Thu, 11 Nov 2010 15:43:30 -0500 Received: from sj-iport-5.cisco.com ([171.68.10.87]:10344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGdzU-0000xD-Lj for qemu-devel@nongnu.org; Thu, 11 Nov 2010 15:43:28 -0500 Message-ID: <4CDC556D.60207@cisco.com> Date: Thu, 11 Nov 2010 13:43:25 -0700 From: "David S. Ahern" MIME-Version: 1.0 Subject: Re: [Qemu-devel] Log Console Output to File References: <1289454632425616500@rkmorris.us> <4CDC2666.5000705@cisco.com> <1289507845918233500@rkmorris.us> In-Reply-To: <1289507845918233500@rkmorris.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Russell Morris Cc: qemu-devel@nongnu.org On 11/11/10 13:37, Russell Morris wrote: > 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.* qemu command line? David > > > > Thoughts? > > > > Thanks again! > > > > On Thu, Nov 11, 2010 11:22 AM, "David S. Ahern" wrote: > > 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 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