Re: [libvirt-users] wrong time in guest logs

Eric Blake
Tue, 28 Oct 2014 16:17:58 -0000

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