From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39112 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGasO-000262-7z for qemu-devel@nongnu.org; Thu, 11 Nov 2010 12:23:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGarQ-0003DE-Bj for qemu-devel@nongnu.org; Thu, 11 Nov 2010 12:22:57 -0500 Received: from sj-iport-4.cisco.com ([171.68.10.86]:25317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGarQ-0003Cb-2S for qemu-devel@nongnu.org; Thu, 11 Nov 2010 12:22:56 -0500 Message-ID: <4CDC2666.5000705@cisco.com> Date: Thu, 11 Nov 2010 10:22:46 -0700 From: "David S. Ahern" MIME-Version: 1.0 Subject: Re: [Qemu-devel] Log Console Output to File References: <1289454632425616500@rkmorris.us> In-Reply-To: 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: Mulyadi Santosa , qemu@rkmorris.us Cc: qemu-devel@nongnu.org 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