How to sync time on host wake-up within VirtualBox?

后端 未结 6 1566
独厮守ぢ
独厮守ぢ 2020-12-23 09:22

I am running an Ubuntu 12.04-based box inside of Vagrant using VirtualBox. So far, everything is fine - except for one thing:

Let\'s assume that the VM is running. T

6条回答
  •  醉话见心
    2020-12-23 09:48

    The documentation lacks some details here.

    What VirtualBox does every 10 seconds is just slight adjustement (something like 0.005 seconds). Only when the time difference reaches a threshold (20 minutes by default) a "real" resync is done.

    You can reduce the thresold (i.e. to 10 seconds) with the following command:

    VBoxManage guestproperty set  "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 10000
    

提交回复
热议问题