|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Need help with NTP + VMWare
I have an install of FreeBSD 7.0 for my webserver running on a VMWare platform. (VMWare Server, will be VMWare ESXi in the near future.)
The problem is that the time is very slow.... 3 to 4 seconds in the real world is 1 second on the FreeBSD box... VMWare tools doesn't support time sync with the host on FreeBSD. I've tried setting kern.hz=100 but I didn't notice much of a change. I set the time earlier today, at roughly 10:00am EST... it is now 1:19 pm EST but the server reads 11:20am EST. This isn't good for a webserver. I'm also new to FreeBSD and 'nix in general. I'm thinking some sort of ntpd implementation may be the best route. Time doesn't need to be 100% accurate at all times since the websites that this server hosts aren't the most mission critical things but I'd like the time to be within 5 minutes of the actual time. If I kick off ntpd -g via cron when the system boots, that should handle the issue, but how do I make ntpd check the time every X minutes. I'm not worried about network traffic as the box sits on the same copper gigabit switch as my NTP server. I'm thinking if I set it to check every minute it should help me out quite a bit in keeping proper time. Can anyone give me a hand or some insight that might help fix the issue? |
|
|||
Thanks, DutchDaemon!
I'll give that a shot and report back with the results. |
|
||||
Quote:
Try adding the following to /boot/loader.conf: Code:
kern.hz=100 hint.apic.0.disabled=1
__________________
Kill your t.v. |
|
|||
Thanks, anomie!
I'm trying both suggestions as we speak. I'll know the results shortly! Thanks for the help, both of you! UPDATE: So far so good. It gets the date from the NTP server on boot. I'll monitor it throughout the weekend and report back later on. Thanks again! Last edited by Yuka; 30th August 2008 at 12:17 AM. |
|
||||
Quote:
http://kb.vmware.com/selfservice/mic...=0%200%2044545 -Tim |
|
|||
So far so good, time is on the dot after making the changes on Friday.
Tim, I'm going to look into your posted solution, thanks! Also, how much of it applies to FreeBSD since the solution is geared towards a Linux guest machine? |
|
|||
As a follow up...
I employed all of the tweaks listed above and ntpd. The tweaks helped to slow the rate of variance between the machine's time and the real world, however there was still a variance before I implemented ntpd. Once I implemented ntpd I noticed some really weird time issues. The machine would boot up fine then time would vary at seeming random speeds throughout the course of a few days. I had to reboot the box a few times, but I think ntpd has set up it's averages and realized what is happening. The time is now synched with my NTP server. Thanks to everyone for their advice! |
Tags |
ntp, vmware |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FreeBSD as firewall/router on VMware ESXi | Bruco | FreeBSD General | 12 | 6th December 2008 08:37 PM |
import physical freeBSD into VMWARE (ESX) server as a vServer | ccc | FreeBSD General | 6 | 3rd October 2008 07:04 AM |
FreeBSD 6.1, VMWare Server , and ESX | Diceman | FreeBSD Installation and Upgrading | 5 | 3rd August 2008 02:42 AM |
How to install vmware player in Ubuntu 7.10 or 8.04 tutorial. | unixdude | Other BSD and UNIX/UNIX-like | 0 | 18th June 2008 10:23 PM |
NIC-less FreeBSD and VMware | Nirbo | FreeBSD General | 11 | 11th May 2008 05:34 AM |