- Linux Host (ubuntu server) 4.2.6
- 3 Linux VMs (ubuntu server)
My 3 virtual machines cannot maintain the date synchronized with the host and always seem to time drift. I tried the following:
1. NTPD
2. NTP running on cron every 5 minutes (as ntpd couldn't keep up with the time drift).
A couple of days ago NTP cron was yielding time jumps of over 5 seconds regularly, so I decided to try the Guest additions (VBoxService --version is 4.2.6r82870).
I followed the user's manual - http://www.virtualbox.org/manual/ch04.html#idp12039536, but I'm having some issues:
1. I have set the following properties:
Q1: I find it odd that without setting them, if I "get" the property it'll say it is not defined. Shouldn't it output the default value?VBoxManage guestproperty set "webservices" "/VirtualBox/GuestAdd/VBoxService/--timesync-interval" 10000
VBoxManage guestproperty set "webservices" "/VirtualBox/GuestAdd/VBoxService/--timesync-min-adjust" 100
VBoxManage guestproperty set "webservices" "/VirtualBox/GuestAdd/VBoxService/--enable-timesync"
2. Even though the service is running (see below), there is a time drift (a time drift of 10 minutes or more will exist after 12 hours!)
Q2: Where are the settings for the daemon defined (and, e.g., the log file)? How can I investigate why the time isn't being adjusted properly?~$ sudo service vboxadd-service status
Checking for VBoxService ...running
~$ ps aux | grep VBox*
root 2331 0.1 0.0 19860 1280 ? Sl 14:51 0:00 /usr/sbin/VBoxService
3. I have also tried stopping the daemon and running the command on foreground: sudo VBoxService --enable-timesync --timesync-interval 5000 --foreground --verbose, but I have an additional error I don't understand. Log will be print in entry pairs:
Q3: What is this ConsoleKit error and how can I fix this?00:01:30.011626 timesync VBoxServiceTimeSyncAdjust: adjtime by -4 412 264 000 ns
00:01:30.349557 vminfo Error: ConsoleKit: unable to retrieve user for session '/org/freedesktop/ConsoleKit/Session4' (msg type=1): No error information available
Thank you for any help!