VirtualBox: Disable time sync between host and client

If you run VirtualBox you may eventually run into problems with the time or time sync within your VM guest. You can run this command on the host to disable time sync:

vboxmanage setextradata <vmname> “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″

Just replace <vmname> with the name of your guest. On Windows hosts, you’ll need to change the command to “VBoxManage”.

You will most likely want to set the client to sync with a time server after this. On Windows clients, just double click on the time and go to the Internet Time tab. Check the box and choose time.nist.gov (better reliability).

I needed to solve this because QuickBooks Pro 2000 complains about the system time being changed continuously while in multi-user mode.

I found this simple VirtualBox time sync tip in a post titled Synchronize a Virtualized Domain Controller with External Time Servers.

Comments

  1. Tadanori Furuya says:

    Using Guest Additions for Windows,
    this GetHostTimeDisabled option is ignored.
    Isn’t it ?

    VirtualBox Ver.3.0.8 r53138
    Host WindowsXP pro SP3 / Inbox is Windows XP SP2, no network-adapter

    • ricog says:

      Tadanori: Not sure about a Windows host, but I’m on 3.0.8 r53138 in Ubuntu with WinXP as the guest. I haven’t had any problems with the setting, and my QuickBooks is still running without any time sync messages. It’s running Guest Additions.

  2. Maarten Ureel says:

    Really helpful, thanks!

  3. [...] A way to disable the timesync was posted by Rick Guyer: VirtualBox: Disable time sync between host and client. [...]

  4. Chaminda says:

    Thanks was very helpful

  5. VBox User says:

    Hi,
    on Debian the Command is: VBoxManage

    I also had to Reboot the Windows Guest, after that the Timesync was disabled.

    Thanks

  6. cboese says:

    I had to edit the entry in the machines xml file manually, because the command line approach seems to lead to special character corruption. Also do not copy/paste the line above, as most browsers will give you the wrong quotation marks and most shells are very strict.

  7. Wayne says:

    Can someone tell me how to turn on the time sync feature… I turned it off successfully with this command

    vboxmanage setextradata “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″

    … now I’d like to turn it back on.

    Thanks

    • ricog says:

      Wayne, I haven’t confirmed, but I think if you set the 1 to a 0 (zero) on that command it will disable it.

      • Uélison Jean says:

        Well I found one solution to do this.
        Go to
        C:\Documents and Settings\\.VirtualBox\Machines\
        and edit the xml file.
        –>Create a backup of this file<–
        Delete this line:

        Note: the script vboxmanage setextradata “VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” “1″ will create one line in this xml, so if you run more then once time you’ll see more lines. Delete these also.

  8. [...] problema apresentado, independente do host ser em Windows ou GNU/Linux (para guest Windows). [1] http://rickguyer.com/virtualbox-disa…st-and-client/ Saudações, Trober Citar + Responder ao Tópico [...]

  9. Lesroy says:

    This command is not helping me can some please give specific instructions on how to use this commands please and not just simply post a command on a blog

    • starznitez says:

      VBoxManage setextradata vnName “VBoxInternal/TM/WarpDrivePercentage” 200

      VBoxManage is actually an .EXE script
      where you can modify the advanced configuration of VBOX.

      1) GO to Installation directory of your VirtualBox
      2) Open Command Prompt from there
      3) Type the command : VBoxManage setextradata “VBoxInternal/TM/WarpDrivePercentage”

      Ignore the braces,

      Example of actual command :
      VBoxManage setextradata WindowsXP “VBoxInternal/TM/WarpDrivePercentage” 200

      4) Hit enter

      Do read this manual :
      http://www.virtualbox.org/manual/ch08.html#idp6516336
      and this
      http://www.virtualbox.org/manual/ch09.html#idp13754496

      Do correct me if i’m wrong

  10. Mauricio says:

    Hi Rick

    Is there a way to completely freeze the time of a vm?

    Thanks

  11. Peter Guhl says:

    It apparently does not work anymore with Virtualbox 4.1.2. Host Windows 7 64Bit, Guest Windows XP.

Submit a Comment