liteagent.exe setting wrong system time on Windows AppVM

338 views
Skip to first unread message

Matt McCutchen

unread,
Nov 19, 2015, 9:33:08 AM11/19/15
to qubes...@googlegroups.com
Yesterday I set up a Windows AppVM, which will allow me to run the ~2
Windows applications I occasionally need without having to reboot my
laptop to Windows or carry a separate Microsoft Surface with me. (I'm
thrilled!) But I had trouble getting the time correct in the AppVM.

I want to use Eastern Time (currently -0500). I tried various
combinations of RealTimeIsUniversal and the "timezone" pref on the VM,
but no matter what I did, after every reboot, the time would be 5 hours
ahead of Dom0, as if something were misinterpreting UTC as local time.
Finally I watched the VM clock carefully and noticed that in some cases
it became wrong a second or two _after_ boot, and I looked in the
Windows event log to see what was changing it. The offender was
C:\Windows\System32\liteagent.exe, part of the Qubes Windows tools. I
was able to find the source code for the part that changes the time at
https://github.com/QubesOS/qubes-vmm-xen-win-pvdrivers-xeniface/blob/d475aa6e74dbefd4e850b2b5123793f97e49a2b3/src/win32stubagent/XService.cpp . I don't fully understand how this tool is supposed to work and wasn't able to find relevant information on the web, but I noticed that it reads two registry keys to check whether the "host time" is UTC. After I set _both_ of those keys, the problem went away. For reasons I don't understand based on reading the source code, setting only HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\XenTools\HostTime was not enough.

Has anyone else seen this problem, or are there things I could check to
understand why I might be affected when others are not?

Thanks,
Matt

Rafał Wojdyła

unread,
Nov 19, 2015, 9:39:01 AM11/19/15
to Matt McCutchen, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Liteagent is a part of the Xen pvdrivers that's not needed for us,
it's safe to disable the service. New version of our tools (that will
be available in a few days) will do that automatically.

- --
Rafał Wojdyła
Qubes Tools for Windows developer
https://www.qubes-os.org/
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJWTd7+AAoJEIWi9rB2GrW78RMH/ArTV7Qi44oPEZVx+KRpC7dj
37NjAnQPzYUVxdVlSMCqOp+5/KuBF3eh60PZPT2RL/GVLVJX47KfrCgMtobk7bPn
Xkw/MJr+VGCD6p/vD8y4p3SWO5YjFjMET578GFuQLse0ed+fvj3r3C0BqG2croIo
ea+mkxUhnZvD6epwJ+b3CvuaP0rTJ3gxT+MMqHcD3SmMERLwACZGjDoQeMPGoabr
dinejB1AGZOa0hqiryquifd2ID/conHcuFk/TJBoph485A+zh2NWTM/UFGGGJjvR
fBLIyNj6zve9vnjqPpsvJAXk6pwiKioiQXXdJ4Oozb/uHSB0HVsBGnAkh/lDu0M=
=WlU8
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages