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

后端 未结 6 1576
独厮守ぢ
独厮守ぢ 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:41

    Summarizing answers of @zilupe and @Slobodan Kovacevic, solution is to add following to Vagrantfile:

    config.vm.provider 'virtualbox' do |vb|
       vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000 ]
    end
    

    This will synchronize clocks each time when desync becomes > 1s (1000ms)

提交回复
热议问题