Hi
I've got a linux guest in a solaris host but the guest timekeeping is very poor.
NTP fails to keep the time synchronised so I'm trying the guest additions method.
However it doesn't seem to work, I've seen the offset go up to 20 minutes!
I've used commands like this on the host:
VBoxManage guestproperty set VM_NAME "/VirtualBox/GuestAdd/VBoxService/PARAMETER" VALUE
as documented but to no effect.
I've tried setting the parameters whilst the guest is off and whilst it is on, just in case.
Is there some trick I'm missing?
How to get time synchronisation to work?
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
Re: How to get time synchronisation to work?
Are the guest additions installed?
German Howto (Linux): http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
-
varboxer
- Posts: 22
- Joined: 29. Mar 2011, 12:29
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Solaris, Ubuntu
Re: How to get time synchronisation to work?
Yes, guest additions are installed and the VBoxService process is running and has been restarted.
Since the time does seem to sync when it is 20 minutes out I suspect the settings are not taking effect. At what point are settings like "timesync-set-threshold" read and when can they be changed?
And why is the time offset getting worse and worse until it reaches 20 minutes rather than being kept better in sync?
Since the time does seem to sync when it is 20 minutes out I suspect the settings are not taking effect. At what point are settings like "timesync-set-threshold" read and when can they be changed?
And why is the time offset getting worse and worse until it reaches 20 minutes rather than being kept better in sync?
Re: How to get time synchronisation to work?
what is ntpdate output?
-
varboxer
- Posts: 22
- Joined: 29. Mar 2011, 12:29
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Solaris, Ubuntu
Re: How to get time synchronisation to work?
ntpdate takes several (~8) seconds to run. The delay is ~0.02588. The offset varies as I described, increasing non-monotonically up to 1200 seconds.
-
varboxer
- Posts: 22
- Joined: 29. Mar 2011, 12:29
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Solaris, Ubuntu
Re: How to get time synchronisation to work?
I've changed the VM to simulate two CPUs instead of one and the time is now staying within 0.1 seconds.
-
Ramshankar
- Oracle Corporation
- Posts: 793
- Joined: 7. Jan 2008, 16:17
Re: How to get time synchronisation to work?
Do NOT run NTP client in parallel if you have the guest additions' time sync installed.
Oracle Corp.
-
varboxer
- Posts: 22
- Joined: 29. Mar 2011, 12:29
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Solaris, Ubuntu
Re: How to get time synchronisation to work?
I'm still having big troubles with time sync. The guest time becomes wrong by more than 30 seconds.
Running VBoxService like this:
I can see a couple of "timesync time set to" messages and a bunch of "timesync VBoxServiceTimeSyncAdjust: adjtime by" messages but only every two hours so the time still goes out too far too often.
Why is it only every two hours, how can it be synchronised more frequently?
Running VBoxService like this:
Code: Select all
VBoxService -v -v -f --enable-timesync --timesync-interval 1000 --timesync-set-threshold 1000 --timesync-set-startWhy is it only every two hours, how can it be synchronised more frequently?
Re: How to get time synchronisation to work?
Are you sure your options are being properly set? Can you post the results of running
Code: Select all
# VBoxService -vv