Date-Time not persisting in CentOS vm while host hibernates

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Krosty
Posts: 12
Joined: 20. May 2013, 17:34

Date-Time not persisting in CentOS vm while host hibernates

Post by Krosty »

I noticed that when my host goes to hibernation, my running guest VMs' system clocks get out of sync. So I have to reset it every time in individual boxes, which is annoying. Any permanent fix for this?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Date-Time not persisting in CentOS vm while host hiberna

Post by mpack »

Sure, the best fix is never to hibernate. Other than that, AFAICS, VBox can't control how often each guest OS reads the RTC.
Krosty
Posts: 12
Joined: 20. May 2013, 17:34

Re: Date-Time not persisting in CentOS vm while host hiberna

Post by Krosty »

Will using network time make a difference?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Date-Time not persisting in CentOS vm while host hiberna

Post by mpack »

Depends how often the guest checks network time.
Krosty
Posts: 12
Joined: 20. May 2013, 17:34

Re: Date-Time not persisting in CentOS vm while host hiberna

Post by Krosty »

Sometimes people use their personal boxes to try out different OSs with VirtualBox. So putting your machine on hibernation cannot be avoided. This sounds like a good feature for VirtualBox to implement - detect when host machine has woke up and then resync all running guest VMs' clocks.
Post Reply