WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 0/3] Add date and domid to guest's console output

To: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/3] Add date and domid to guest's console output.
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 28 Jan 2009 11:04:48 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Wed, 28 Jan 2009 03:06:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090128131435.107B.SHIMADA-YXB@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090128131435.107B.SHIMADA-YXB@xxxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Wed, Jan 28, 2009 at 01:33:12PM +0900, Yuji Shimada wrote:
> These patches add date and domid to guest's console output.
> 
>   [PATCH 1/3] Add "--timestamp" option to xenconsole.
>   [PATCH 2/3] Add "--console_timestamp" to xm create.
>   [PATCH 3/3] Modify stubdom-dm.
> 
> We can log guest's console output with date and domid when we create
> the guest like below.
> 
>  # xm create -c --console_timestamp GUEST > GUEST-console.log

This seems like a slightly odd place in the code to address the problem.

The xenconsoled daemon has the ability to save all guest data to a logfile
in /var/log/xen/console/guest-$NAME.log. So if you want to save logs and
timestamp them, it'd seem more natural to put timestamping capability in
the xenconsoled program.

Of course this only handles paravirt console. For fullvirt guests, if you
wanted to timestamp the serial console output, then something would need
to be done with QEMU - or perhaps get QEMU to feed the serial data to the
xenconsoled program for logging to disk ? 

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel