[libvirt-users] wrong time in guest logs

Eric Blake eblake at redhat.com
Tue Oct 28 16:17:58 UTC 2014

On 10/28/2014 10:08 AM, Lentes, Bernd wrote:
> Hi,

[can you convince your mailer to wrap long lines?]

> i have several vm's running on KVM hosts. Recently i found out that the time in the log-files of the guests (/var/log/libvirt/qemu/xxx.log) is wrong. The time on the guest itself is right, just the time in the log-files is one hour back. Windows and linux vm's are affected. Also on another host the same. Changing the clock offset does not have any influence, still the wrong time in the log file.

The time in libvirt logs is ALWAYS tied to UTC, precisely because that
is unambiguous (any log that outputs timestamps in local time risks
being misinterpreted if the log is read from a different timezone,
especially if the timezone name is not included as part of the
timestamp).  Based on you email address, it looks like your problem is
that Germany is coincident with UTC in the summer, but one hour off in
the winter, and that your "problem" (which is not a bug) was made
manifest because Germany left daylight savings this week.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141028/d758cf6a/attachment.sig>

More information about the libvirt-users mailing list