Expected Behavior for Save State and Guest Clock Re-sync

This is for discussing general topics about how to use VirtualBox.
Post Reply
seiryu
Posts: 4
Joined: 12. Nov 2009, 19:02
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Solaris

Expected Behavior for Save State and Guest Clock Re-sync

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
seiryu
Posts: 4
Joined: 12. Nov 2009, 19:02
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Solaris

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

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply