How to do time sync via API

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
serov
Posts: 11
Joined: 12. Mar 2015, 14:30

How to do time sync via API

Post by serov »

Hi community!

Tell me please, how can I force time sync between VMs and host computer via API Vbox? Which method can I use?

Thank you in advance!
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to do time sync via API

Post by noteirak »

There isn't a method to do it AFAIK.
You can always fiddle with IMachine::setExtraData() and see relevant keys/values in User Manual - Topic 9.14 - Fine-tuning timers and time synchronization and see if you can force it by enabling/disabling or something like that.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
serov
Posts: 11
Joined: 12. Mar 2015, 14:30

Re: How to do time sync via API

Post by serov »

Noteirak - thank you!

GuestAdd must be installed inside the VM for use IMachine::setExtraData() or we can use that method without guest add?
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: How to do time sync via API

Post by noteirak »

You don't need installed to use IMachine::setExtraData(), but you do need the guest additions installed for the whole timesync to have any effect.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply