From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Hermann Subject: Synchronized time with kvm_clock Date: Mon, 26 Apr 2010 11:33:06 +0200 Message-ID: <201004261133.06491.alex@speakup.nl> Mime-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from montrose.obsimref.com ([217.114.110.195]:40209 "EHLO montrose.obsimref.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753978Ab0DZKIF (ORCPT ); Mon, 26 Apr 2010 06:08:05 -0400 Received: from speedster.speakup.nl ([193.169.138.83] helo=fuego.localnet) by montrose.obsimref.com with esmtp (Exim 4.69) (envelope-from ) id 1O6Kgd-0005jW-B3 for kvm@vger.kernel.org; Mon, 26 Apr 2010 11:33:07 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Hello all, from the various sources google comes up with, it seems kvm_clock is now the preferred clock source for kvm guests. I was hoping it would keep the time synced with the host, but apparentely it doesn't. I'm seeing a pretty steady 1 sec diff between host and guest. The host is synced with external time sources by means of ntp. Am I supposed to run ntp inside the guest when using kvm_clock as a clocksource? Othwerwise, what clocksource should be used in the guest 1) to automatically get synced time with the host? or 2) which can be used alongside ntpd in the guest? host: cat /sys/devices/system/clocksource/clocksource0/current_clocksource tsc guest: cat /sys/devices/system/clocksource/clocksource0/current_clocksource kvm-clock Pleas cc me, I'm not on the list. -- Greetings, Alex Hermann