From owner-freebsd-questions@FreeBSD.ORG Thu May 31 23:13:10 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D2B816A469 for ; Thu, 31 May 2007 23:13:10 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 72D3413C455 for ; Thu, 31 May 2007 23:13:10 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: by wa-out-1112.google.com with SMTP id m33so438071wag for ; Thu, 31 May 2007 16:13:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=dbNohaSaFj1X1YTPNfxvnOdigRrswWWeeCCwEoQ3AlKW2y7G+5Hwk2HPAjr5fmsP6e4Sks9NLQm/fYVFu6wGvoKcvqgp8R/VvK4xhkUZrqzpIRwVlXmTu+OrodlL99k35nrW5DzzGZYUR0OSYJBQd8AkwG6tesNnlZpaaH2nliI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=hDAF9rZGRagqP46xPfxcCPnWgaAXoQilEi1N2iEhFQtEbGa2HgkJVCNhuK2F0rFdNkjt+iBO14JaNJTyBfXczth1urrQ7aExiNq6QrKZgY6UeGqgj5zRKYv2qgPoZCju4hTgMzYrMyP7MBEnsbinMp0imwo6cKQHbGBJw2xD7o4= Received: by 10.114.178.1 with SMTP id a1mr1077281waf.1180653189910; Thu, 31 May 2007 16:13:09 -0700 (PDT) Received: by 10.114.37.10 with HTTP; Thu, 31 May 2007 16:13:09 -0700 (PDT) Message-ID: <8d23ec860705311613r31873119x478985f9ee6e57da@mail.gmail.com> Date: Thu, 31 May 2007 19:13:09 -0400 From: Schiz0 To: "John Webster" In-Reply-To: <88F7676A21FA33FC61A2AA75@vortex.es.net> MIME-Version: 1.0 References: <8d23ec860705311602t6e04362fw2a8926c263cdb1c9@mail.gmail.com> <88F7676A21FA33FC61A2AA75@vortex.es.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: NTPd not syncing time correctly - No errors either X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 23:13:10 -0000 On 5/31/07, John Webster wrote: > > > > --On Thursday, May 31, 2007 19:02:47 -0400 Schiz0 < > schiz0phrenic21@gmail.com> wrote: > > > Hey, > > > > I'm running a dev server in VMWare (On a WindowsXP host) just to screw > > around with some things. Running FreeBSD 6.2-STABLE. VMWare causes the > clock > > in FreeBSD to be a inaccurate; it loses about 2 hours every 24 hours. > > > > I read the handbook entry on the NTP daemon which automatically syncs > the > > clock. Previously I was using cron to run ntpdate every 2 hours. > > > > I set NTPd to update using NTP.org's pool servers. Yet it isn't syncing. > I > > setup NTPd last night. I checked about 20 minutes ago and the time was > off > > by 2 hours. I shutdown ntpd and ran ntpdate manually, and it updated > just > > fine. > > > > My logs have only this: > > /var/log/messages:May 30 23:04:19 Jupiter ntpd[489]: ntpd 4.2.0-a Mon > May 28 > > 23:49:40 EDT 2007 (1) > > /var/log/messages:May 30 23:04:19 Jupiter ntpd[489]: no IPv6 interfaces > > found > > /var/log/messages:May 31 16:41:50 Jupiter ntpd[489]: ntpd exiting on > signal > > 15 > > > > The first two came up as soon as I started NTPd. The third one was when > I > > stopped it. I rebuild world without IPv6 support. I tried adding the -4 > flag > > to ntpd_flags in /etc/rc.conf as it says in the man page, but NTPd > reports > > that -4 doesn't exist. > > > > While NTPd is running, I ran "ntpq -np" to display the peers. It did > output > > the four servers from pool.ntp.org, so it's connecting fine. > > > > My /etc/rc.conf contains: > > ntpd_enable="YES" > > ntpd_sync_on_start="YES" > > ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift -g" > > > > Anyone know how I can fix this? Or should I just go back to running > ntpdate > > with cron? > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > > > > "NTP was not designed to run inside of a virtual machine. It requires a > high resolution system clock, with response times to clock interrupts that > are serviced with a high level of accuracy. No known virtual machine is > capable of meeting these > requirements. > > Run NTP on the base OS of the machine, and then have your various guest > OSes take advantage of the good clock that is created on the system. Even > that may not be enough, as there may be additional tools or kernel options > that you need to enable so that > virtual machine clients can adequately synchronize their virtual clocks to > the physical system clock. " > > Ah, that would do it. I guess I'm back to running ntpdate in cron. Thanks!