Skip to content

Instantly share code, notes, and snippets.

@tayyebi
Forked from anshumanb/from-guest.sh
Created February 24, 2020 08:06
Show Gist options
  • Save tayyebi/503752933d0ba1ffa21c2e3c906039cf to your computer and use it in GitHub Desktop.
Save tayyebi/503752933d0ba1ffa21c2e3c906039cf to your computer and use it in GitHub Desktop.
Disable and enable VirtualBox guest-host time sync
# Disable time sync from guest
/etc/init.d/vboxadd-service stop
# Enable time sync from guest
/etc/init.d/vboxadd-service start
# Disable time sync from host
VBoxManage setextradata "<vm-name>" VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 1
# Restart VM
# Enable time sync from host
VBoxManage setextradata "<vm-name>" VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 0
# Restart VM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment