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

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

    I give an other solution to sync time between guest & host without installing Virtualbox guest addition:

    1. install ntp on your guest, and de-comment these lines in /etc/ntp.conf:

      disable auth
      broadcastclient
      

    Then, restart ntp with service ntp restart

    1. Active broadcast on your host:

      • For Linux users, edit your /etc/ntp.conf file and configure broadcast (you must adapt IP):

        broadcast 192.168.123.255

      • For Windows users, activate the "Windows Time" service. You can then read this page to configure it to broadcast time

      Then, restart time service on host.

提交回复
热议问题