After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758321 - Wrong date/time after suspend in windows host
Wrong date/time after suspend in windows host
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: windows
3.18.x
Other Windows
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-11-19 09:59 UTC by Cédric Bellegarde
Modified: 2016-09-20 08:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screencast (134.33 KB, video/webm)
2015-11-19 09:59 UTC, Cédric Bellegarde
  Details
configure: Require libvirt-glib >= 0.2.3 (857 bytes, patch)
2015-11-23 22:58 UTC, Zeeshan Ali
committed Details | Review
libvirt-machine: Sync clock on restore (1.12 KB, patch)
2015-11-23 22:59 UTC, Zeeshan Ali
committed Details | Review

Description Cédric Bellegarde 2015-11-19 09:59:10 UTC
Created attachment 315873 [details]
Screencast

When suspending a windows host, on resume:
- Time is wrong
- Time is fast
- Keyboard repeat is broken

See screencast.

Related (I think): https://bugzilla.redhat.com/show_bug.cgi?id=1102411
Comment 1 Zeeshan Ali 2015-11-19 18:58:02 UTC
(In reply to Cédric Bellegarde from comment #0)
> Created attachment 315873 [details]
> Screencast
> 
> When suspending a windows host, on resume:
> - Time is wrong

That's something I have been working on, to fix lately. However, for it to work, you'll need Qemu guest agent installed in the VM. I also just pushed patches to libosinfo to get the agent installed by default as part of unattended installation for linux OSes.

For windows, I am hoping to get it installed by spice-guest-tools (that we run as part of express installation):

https://bugs.freedesktop.org/show_bug.cgi?id=93022

> - Time is fast

That's cause it's trying to catchup with lost time.

> - Keyboard repeat is broken

I'd guess that's a side-effect.
Comment 2 Zeeshan Ali 2015-11-23 22:58:58 UTC
Created attachment 316122 [details] [review]
configure: Require libvirt-glib >= 0.2.3

Require git master of libvirt-glib so that we can use the new APIs to
sync the guest clock with host clock.
Comment 3 Zeeshan Ali 2015-11-23 22:59:03 UTC
Created attachment 316123 [details] [review]
libvirt-machine: Sync clock on restore

On restoring a libvirt VM from saved state, try to sync the guest clock
with host clock. This will only work if Qemu guest agent is running
inside the guest.
Comment 4 Zeeshan Ali 2015-11-25 22:04:02 UTC
Attachment 316122 [details] pushed as 3088ae0 - configure: Require libvirt-glib >= 0.2.3
Attachment 316123 [details] pushed as 9e20065 - libvirt-machine: Sync clock on restore