Skip to content

Instantly share code, notes, and snippets.

@lesthack
Forked from X0nic/disable-vagrant-time-sync.sh
Created December 27, 2016 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesthack/4ebeec0d8bfad64c8f12a68556a95013 to your computer and use it in GitHub Desktop.
Save lesthack/4ebeec0d8bfad64c8f12a68556a95013 to your computer and use it in GitHub Desktop.
Disable vagrant time sync
#List vms
VBoxManage list vms
#get status of time sync
VBoxManage getextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled
#NOTE: Make sure to restart the VM after changing these settings.
#disable time sync
VBoxManage setextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 1
#enable time sync
VBoxManage setextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment