On Wed, Oct 10, 2012 at 02:54:13PM +0200, drago01 wrote:
On Wed, Oct 10, 2012 at 12:49 PM, Richard W.M. Jones
<rjones(a)redhat.com> wrote:
> On Wed, Oct 10, 2012 at 10:11:03AM +0000, "Jóhann B. Guðmundsson" wrote:
>> On 10/10/2012 08:54 AM, Richard W.M. Jones wrote:
>> >This would be essential for libguestfs tools to parse logs out of
>> >guests (we do it now by reading /var/log/messages etc which has all of
>> >the properties you state).
>>
>> I'm not sure how you are doing this currently but for shutdown guest
>> I assume you would mount then run something like
>>
>> journalctl -D /path/to/journal/files | the script you use to parse the logs
>
> The question is whether this works with different versions of journal
> on the host and in the guest. A typical case we have to deal with is
> someone running a stable RHEL host, and Fedora guests
> (ie. host version < guest version).
Can't you run the journal from the guest? Or does this open another
can of worms?
Security worms, yes.
We try very much to avoid running code from the guest. cf. grub
problems previously discussed on this list.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw