Last active
July 2, 2024 10:27
-
-
Save anshumanb/4ae574d25fce9f485183 to your computer and use it in GitHub Desktop.
Disable and enable VirtualBox guest-host time sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable time sync from guest | |
/etc/init.d/vboxadd-service stop | |
# Enable time sync from guest | |
/etc/init.d/vboxadd-service start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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