LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 07-22-2008, 07:29 AM   #1
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 213
Thanked: 1
Keeping DATE setting constant in FreeBSD 7.0


[Log in to get rid of this advertisement]
Hello all,

I am using FreeBSD 7.0 on VMware. I am facing a serious issue. The date on my FreeBSD server is changing continuously i.e. the clock is running slow and is not able to match the clock of my host (Windows machine). I guess it has something to do with NTP server setting or may be UTC clock setting but I am not sure.

My only requirement is that I want to keep my clock constant according to my timezone (IST/India)
paragkalra is offline  
Tag This Post , , ,
Reply With Quote
Old 07-22-2008, 11:03 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Fedora, FreeBSD
Posts: 2,386
Thanked: 81
NB: there are a number of gotchas when running a vmware FBSD guest under a Windows host. Do not query someone's ntp server constantly to solve this problem.

In your case, you'll need to add the following entries to /boot/loader.conf:
Code:
kern.hz=100
hint.apic.0.disabled=1
Also be sure your timezone is set properly (with tzsetup).
anomie is offline     Reply With Quote
Old 07-23-2008, 06:11 AM   #3
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 213
Thanked: 1

Original Poster
@anomie

I placed the entry suggested by you and now the system is not booting up. I am getting following prompt:
Quote:
mountroot>
Please help....

Last edited by paragkalra; 07-23-2008 at 06:29 AM..
paragkalra is offline     Reply With Quote
Old 07-23-2008, 01:42 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Fedora, FreeBSD
Posts: 2,386
Thanked: 81
Strange. Are you sure you specified the entries correctly and put them into the correct file?

To remove them, boot to single user mode.

http://www.freebsd.org/doc/en_US.ISO...ooks/handbook/
anomie is offline     Reply With Quote
Old 07-30-2008, 11:25 AM   #5
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 213
Thanked: 1

Original Poster
Finally I got rid of this issue by placing the line "kern.hz=100" in "/boot/loader.conf" file as suggested by anomie:

In my case it worked without placing the line "hint.apic.0.disabled=1". In fact because of it my system was not booting. Anyways thanks anomie

Also just to add more info, in the process of resolving this issue I came across following good docs:

http://www.freebsd.org/doc/en/books/...ion-guest.html
http://www.vmware.com/pdf/vmware_timekeeping.pdf
paragkalra is offline     Reply With Quote
Old 07-30-2008, 12:02 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Fedora, FreeBSD
Posts: 2,386
Thanked: 81
Good work. Thanks for posting back.
anomie is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping Slackware Up-to-date Bash Rules Slackware 22 09-08-2009 11:20 PM
Keeping Slackware 12.1 up to date. glore2002 Slackware 10 06-18-2008 10:58 AM
Keeping Slackware Up-To-Date introuble Slackware 4 03-21-2006 09:08 AM
Compiling "nvidia-settings" an keeping FreeBSD up-to-date dabang *BSD 4 12-31-2005 05:20 PM
Keeping OpenBSD up to date Gsee *BSD 6 12-03-2004 12:58 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration