Friday, August 11, 2017

how to disable time sync between host and guest virtualbox

when we change time on virtualbox guest machine, it is always changed back to the time synced with the host machine. That's because we have installed guest additional. so to solve it just remove the package. but we don't want to remove it and only want to disable the sync only :

1- standardly execute the following command  with do the trick

$ vboxmanage guestproperty set "vm-name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

or edit the vm configuration file and add
<GuestProperty name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1" timestamp="1502463281937601000" flags=""/>

2- if above is not working, we can stop the sync withing the guest machine
** linux **
 - edit vboxadd-service  file and add parameter --disable-timesync and restart the service again.

** windows**
run regedit.exe and go to

Change the value in ImagePath from
system32\VBoxService.exe --disable-timesync

then run services.msc

and restart the vboxservice

No comments:

Post a Comment