Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VMware time sync problem - ubuntu (guest) on windows 7 (host)

I am running Ubuntu as a guest OS using VMware player on my Windows 7 machine. The problem I have is syncing the clock in the Ubuntu machine. This happens only when I close the VMware player and open the suspended session. For example if I close my VMware player running Ubuntu at 4:15 PM and then restore it at 5:45 PM, it still shows 4:15 PM. (This does not happen when I shutdown the Ubuntu OS.)

I searched the StackOverflow forum and found that by setting

tools.syncTime = true 
tools.syncTime.period = 60

should help resolve the problem. But this change did not work for me. Any pointers to resolve this issue would be helpful.

like image 239
Anand Avatar asked Feb 23 '11 22:02

Anand


People also ask

How do I force a VM to sync time with host?

Configure the guest VM to synchronize time with ESX. In the VM's configuration, go to Edit Settings > Options > VMware tools. Tick the synchronise guest time with host box.

How do I disable time sync between guest and host VMware?

To disable one-off time synchronization in a VM, launch vSphere Client, go to Edit Settings → VM Options → VMware Tools → Synchronize Time with Host, and deselect the checkbox Synchronize at startup and resume (recommended).

How does VMware time sync with host time?

To synchronize time: Open the vSphere Client and connect to vCenter Server. Right-click the virtual machine you deployed from OVF and click Edit Settings > Options > VMware Tools. Under Advanced, select the Synchronize guest time with host option and click OK.

How do I check VMware tools time sync?

Check VMtools Sync You can check to see if VMware tools is set to sync, buy looking in the “Edit Settings” menu of the virtual machine and looking for the “Synchronize guest time with host” setting.


1 Answers

I had the same clock sync issue. Installing VMware tools solves the problem.

But if it doesn't help, you can do it manually by calling sudo ntpdate ntp.ubuntu.com every time you open the suspended session.

like image 160
MKo Avatar answered Dec 14 '22 12:12

MKo