How do I permanently set the Time Zone in Templates & AppVMs?

789 views
Skip to first unread message

Richard H

unread,
Aug 6, 2015, 10:23:42 PM8/6/15
to qubes...@googlegroups.com
Although the date and time for dom0 shows my current time zone and survives reboots, the time zones in my Fedora Templates and AppVM's keep reverting back to UTC time whenever the VM and/or computer is restarted.

When I change the time zone manually in the Date & Time area for each Template and AppVM, the time zone only works for the current session and does not survive a restart.  Setting the Automatic Time Zone feature sets the time to UTC. 

I understand that Linux resets the BIOS clock to UTC and it is suggested that one should not override that setting.  Having said that, I have manually changed the BIOS time but it does not help because the program keeps overriding my changes.

How do I change the time zone in the Templates & VM such that they survive a restart and are not reset to UTC?

OS: Qubes 3.0 rc2

Kind regards,
Richard

Marek Marczykowski-Górecki

unread,
Aug 6, 2015, 10:53:13 PM8/6/15
to Richard H, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Timezone for VMs should be automatically copied from dom0 at VM startup.
You can check the actual value retrieved from dom0 - in the VM check the
following command:
qubesdb-read /qubes-timezone

If that returns UTC instead of your timezone, the problem is at dom0
side. Otherwise somehow VM ignores this setting (or misinterpret it).

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJVxB2OAAoJENuP0xzK19csnyoH+wehFK4qe5vTYlWlKa+3cNVN
MlMM+frThAaIHQMgLOkYRBrDivzpNWhew0+NTOsbP78HOjoHbyX2ce+Dqk5iaXa/
st9qd4EYwWzXud4Ix1FfdZANpl61kjEhSHZuQkmkUi0QwMLiiV8XLWbFRJa+aXrh
r++COdOnIb4Xn3Po+rycSII0/8Hq2wJs0CQ2i1UyCy8ZiEa5zYV8BkCW845dCutD
8vgWAEeDyJlV1C955lqm+gOmDVQztShpcIk2/rGzAhGhdCvki6s3+it58T55ODh0
LAv9FnzYF9cx/T6aPwHkhSoIBz7mDcRg/tRT3bDG+V/guvPYfOEA9LwJutN2bPs=
=tA4g
-----END PGP SIGNATURE-----

Richard H

unread,
Aug 7, 2015, 8:48:41 AM8/7/15
to qubes...@googlegroups.com, Marek Marczykowski-Górecki
Thanks Marek for the reply,

While the command you provided correctly shows my time zone in each of the VMs, the time is not always shown correct within the VM (for example Gmail running in Chrome shows UTC).

This morning when I open up my VMs I am getting a new system message that my time zone is reset to my time zone.  However, this only happens where the time zone was set to automatic.  For those that had the time zone manually set, it remains on UTC even though the command you provided correctly shows my time zone.

Kind regards, 
Richard


Marek Marczykowski-Górecki

unread,
Aug 7, 2015, 11:07:00 AM8/7/15
to Richard H, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> Thanks Marek for the reply,
>
> While the command you provided correctly shows my time zone in each of the
> VMs, the time is not always shown correct within the VM (for example Gmail
> running in Chrome shows UTC).
>
> This morning when I open up my VMs I am getting a new system message that
> my time zone is reset to my time zone. However, this only happens where
> the time zone was set to automatic. For those that had the time zone
> manually set, it remains on UTC even though the command you provided
> correctly shows my time zone.

Can you identify what showed you a message about resetting the time
zone? Maybe some gnome-settings-daemon related tool?
I think this is the problem - Qubes scripts properly setup time zone,
but later, some tool mess with the settings.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJVxMmIAAoJENuP0xzK19csilIIAIl/5jfpCjHgUyrtQVmagJA0
bvGxPGJhl/JHgwHXHu2xAp0nuex92CvLo68H1e6JEN91tS9f9Vk0TqYLdz4pEOlm
cdDaXRP66siHmOKHse2Hg5yQ/NoPGzjKLSRcpfwb4EMrQxcPlArov5rSDAJDTMBP
s1+avXOESWs6YbVU0sVMbD+WVHh3IUnI4CgC0yRzGnGwWBKyNhLf2MpF3qMC8sOu
8rGO1iHsgiUv9wXmjt+XCkIMY0BV1mFhup6o8XuOqBmIV8TPc5pu8X5R+efoPhas
tWLLmv0Z7jz90G3eNds6nsEXMsxyVXyRotSDeYQ8tpUy9MXeUTLPcfVI4uj7kvs=
=3e0E
-----END PGP SIGNATURE-----

Richard H

unread,
Aug 7, 2015, 4:00:35 PM8/7/15
to qubes...@googlegroups.com, Marek Marczykowski-Górecki
It pops up shortly after I start a VM in the top right-hand corner of the screen. Here is a screen capture of it:



If I click on the Settings button, it opens the AppVM's Date & Time settings window.

The message only appears when I set the Date & Time time zone to automatic, if it is set to manual I do not see the message.

As far as I know, I have not changed or used any gnome-settings-daemon related tool. I am not sure how I can identify it any further.  If you have suggestions, please let me know.

Thanks,
Richard
Reply all
Reply to author
Forward
0 new messages