Installing VBox Guest Additions for Time Synchronization

Installing VBox Guest Additions for Time Synchronization




  • Start the VM, Go to Shell

cambium@cnmaestro:~$ sudo mount /dev/sr0 /mnt/cdrom

mount: block device /dev/sr0 is write-protected, mounting read-only

cambium@cnmaestro:~$ cd /mnt/cdrom/

cambium@cnmaestro:/mnt/cdrom$ sudo ./

  • This will enable the Time Synchronisation but default it happens every 10 seconds. To fine tune it do following it on Host Machine.
    • Linux

$ VBoxManage guestproperty set <VMNAME> "/VirtualBox/GuestAdd/VBoxService/--timesync-interval" 1000

$ VBoxManage guestproperty set <VMNAME> "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore" 1

$ VBoxManage guestproperty set <VMNAME> "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 1000

  • Windows

cd C:\>cd "C:\Program Files\Oracle\VirtualBox\"

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestproperty set <VMNAME> "/VirtualBox/GuestAdd/VBoxService/--timesync-interval" 1000

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe set <VMNAME> "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore" 1

C:\Program Files\Oracle\VirtualBox> VBoxManage.exe guestproperty set <VMNAME> "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 1000

  • On Guest restart vboxadd-service to bring these changes into effect.

cambium@cnmaestro:/mnt/cdrom$ sudo service vboxadd-service restart

Stopping VirtualBox Guest Addition service  ...done.

Starting VirtualBox Guest Addition service  ...done.

1 Like