Page 1 of 1

Expected Behavior for Save State and Guest Clock Re-sync

Posted: 17. Nov 2009, 19:41
by seiryu
What is the expected behavior for the system clock in the guest when the VM is closed and the "Save State" option is selected?

I'm pretty sure that when running Vbox V2 releases, upon resuming the guest, the clock in the guest would catch back up to the host current time. With VBox 3.0.x releases (have not tried 3.0.12) the clock appears to very slowly be corrected. If I happen to suspend the guest for several days, the clock would take ages to catch back up this way.

The docs (http://www.virtualbox.org/manual/UserMa ... #id2501709) say:
Save the machine state: With this option, VirtualBox "freezes" the virtual machine by completely saving its state to your local disk. When you later resume the VM (by again clicking the "Start" button in the VirtualBox main window), you will find that the VM continues exactly where it was left off. All your programs will still be open, and your computer resumes operation.

Saving the state of a virtual machine is thus in some ways similar to suspending a laptop computer (e.g. by closing its lid).
So, how similar should saving state be to suspending? I either have a bug or an RFE to file and it all depends on what the existing design calls for regarding Save State and Guest Clock operation.

Re: Expected Behavior for Save State and Guest Clock Re-sync

Posted: 17. Nov 2009, 21:29
by Sasquatch
Check if the Guest Additions for your Guest has time-sync support. That should take care of the resume date/time sync. Else a manual NTP sync should be a solution.

Re: Expected Behavior for Save State and Guest Clock Re-sync

Posted: 18. Nov 2009, 04:54
by seiryu
How does one check if the Guest Additions for Solaris support Time Sync? The manual appears to call Time Sync support a general guest feature.

Guest is OpenSolaris.

Re: Expected Behavior for Save State and Guest Clock Re-sync

Posted: 18. Nov 2009, 11:12
by Sasquatch
It's in the changelogs. I remember seeing something about that in the 3.0.x releases. The full changelog is on the site and in the manual.