Skip to content

Instantly share code, notes, and snippets.

@anshumanb
Last active July 2, 2024 10:27
Show Gist options
  • Save anshumanb/4ae574d25fce9f485183 to your computer and use it in GitHub Desktop.
Save anshumanb/4ae574d25fce9f485183 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