From owner-freebsd-questions@FreeBSD.ORG Fri Dec 18 17:39:12 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 768FA106566B for ; Fri, 18 Dec 2009 17:39:12 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id 614DC8FC1C for ; Fri, 18 Dec 2009 17:39:12 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp025.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KUU006JNZP1AC00@asmtp025.mac.com> for freebsd-questions@freebsd.org; Fri, 18 Dec 2009 09:39:02 -0800 (PST) From: Chuck Swiger In-reply-to: <4B2BBAE2.6090102@comcast.net> Date: Fri, 18 Dec 2009 09:39:01 -0800 Message-id: <78DA6E6C-85F4-444C-8176-5BAFA6EA32EB@mac.com> References: <4B23CD8A.50203@webtent.com> <4B291EB5.5040605@webtent.com> <4B2A9C1E.2010509@comcast.net> <3D62B3FC-1385-47C2-A9F3-F81D1597D9A6@mac.com> <4B2AA541.5010304@comcast.net> <4B2BBAE2.6090102@comcast.net> To: Steve Polyack X-Mailer: Apple Mail (2.1077) Cc: Robert Fitzpatrick , FreeBSD Subject: Re: slow clock on FreeBSD 7.2 on vmware 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: Fri, 18 Dec 2009 17:39:12 -0000 Hi-- On Dec 18, 2009, at 9:24 AM, Steve Polyack wrote: >> I haven't used Xen, but for ESX: I may be wrong, but I'm pretty sure that the vmtools available for FreeBSD do not support synchronizing the host time to the guest OS. I know it is supported (and works) for Linux, but by what mechanism I do not know. On OpenBSD the kernel can be built to present a device which will use the "synchronize time with guest" feature of VMware to provide a clock source which can be specified in ntpd.conf. >> >> Perhaps you're right and all it takes is the switch in ESX. I've disabled ntpd on one of my VMs and I'll see if it drifts any by tomorrow. > > FYI the system has started to drift on the order of 100ms every 6 hours. OK. > This leads me to believe that the "synchronize time with guest" feature of ESXi is not sufficient in FreeBSD with VMware tools. While using NTP, the system would reliably keep in sync within 30ms of local NTP relays. You supposedly need to re-run it periodically or enable an internal in some .vmx config file; see "Enabling Periodic Synchronization": http://www.vmware.com/pdf/vmware_timekeeping.pdf If this doesn't work in FreeBSD guest VMs, has anyone filed a bug report with them? Regards, -- -Chuck