Skip to content

Instantly share code, notes, and snippets.

@m1g0r
Forked from X0nic/disable-vagrant-time-sync.sh
Created March 14, 2018 14:54
Show Gist options
  • Save m1g0r/80c798a1ea0941beb87d9785e5eedbe4 to your computer and use it in GitHub Desktop.
Save m1g0r/80c798a1ea0941beb87d9785e5eedbe4 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