Skip to contentSkip to conversation

problems with guests time and date

DISCUSSION Riccardo Veraldi 2 participants 2 messages Apr 22, 2009 KVM

lore
Share & tools
lore
#0 lore raw

Hello,
I have a problem.
my host with KVM has correct date set.
All the quests has a date 2 hours disaligned, and everytime they boot I must ntpdate hte KVM guests.
How to solve this problem ?

guest at boot time
22 Apr 09:08:02 ntpdate[1901]: step time server x.y.z.t offset 7297.100104 sec

this si the guest
[root@abbone ~]# date
Wed Apr 22 09:09:52 CEST 2009
[root@abbone ~]# hwclock
Wed 22 Apr 2009 07:08:19 AM CEST -0.306596 seconds

this the host

[root@xenserver2 guest]# hwclock
Wed 22 Apr 2009 09:08:46 AM CEST -0.078768 seconds

thanks

Rick

#1 lore raw
Quoted 4 lines · Riccardo Veraldi

Hello,
I have a problem.
my host with KVM has correct date set.
All the quests has a date 2 hours disaligned, and everytime they boot I

What's your timezone offset from UTC? Here's the Date: header from your email:

Date: Wed, 22 Apr 2009 09:11:03 +0200

Don't you see the problem already? :)

Quoted 3 lines

must
ntpdate hte KVM guests.
How to solve this problem ?

Take a look at -localtime kvm/qemu option. And/or teach your guests to use UTC time as they should.

/mjt