Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VMWare time synchronization problem.

Status
Not open for further replies.

tjroamer

Programmer
Mar 25, 2005
8
DE
Hi all,

I installed the Linux Workstation 4 in the WinXP via VMWare. Now I have a problem with the clock. The time in my linux is always running faster than normal. That is, when I log in in the morning 8:00, the time is the same as the WinXP. When I see the time in the afternoon, for instance, it is 17:00, but now the WinXP is 16:10. Can anybody help me with this? Thanks.

Kai
 
add

Code:
clock=pit

to your linux bootloader file

[small]Listen to those who know, believe in those that do[/small]
 
Hi SjrH,

Thanks, but I tried to add this line to the bootloader file "/etc/grub.conf", then I restarted the vmware, unfortunately it did not work.

Kai
 
Do you have vmware tools installed in the guest os?

If so add the following to the guest os .vmx file

Code:
tools.syncTime = "TRUE"

What cpus are installed in your host? also, are you running 32bit or 64?

[small]Listen to those who know, believe in those that do[/small]
 
hello, SjrH,

Just now I checked the .vmx file, this code is over there.

Yes, I installed VMWare tool and also selected the option: "Time synchronization between the virtual machine and the host OS". The clock in the Linux is still running faster than WinXP.

The CPU in my computer is Intel Pentium M (Centrino), Duo core, 32bit machine, i586.

Thanks a lot.

Kai
 
Install xntpd on the guest Linux OS.

write a small script with these two lines

#!/bin/sh
/usr/bin/ntpdate xx.xx.xx.xx
/sbin/hwclock -w

P.S. replace the above ip xx.xx.xx.xx with some ntp server near your location.

execute this script on startup.
The script is necessary at startup because xntpd fails to update the time if the time difference is too much.

run xntpd daemon to keep the time uptodate.

Hope this helps.
 
Hi,

what does your grub.conf look like?
Perhaps you have to put the "clock=pit" option in your 'menu.lst' file.

/egr

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top