how to change HVM timezone with qvm-prefs

117 views
Skip to first unread message

wyory

unread,
Sep 10, 2015, 4:59:24 PM9/10/15
to qubes...@googlegroups.com
Hi,

How do I set the HVM clock timezone?

According to this https://www.qubes-os.org/doc/Dom0Tools/QvmPrefs/ I
should be able to do it with qvm-prefs. I can set positive values, but
then my HVM won't start. I can't set negative offset (which is what I
need), and I can't set it back to localtime.

qvm-prefs -s hvmname timezone localtime
Invalid timezone value!

qvm-prefs -s hvmname timezone -3600
qvm-prefs: error: no such option: -3

After changing it to a positive integer, I can't start my HVM. I get:
AttributeError: 'int' object has no attribute 'lower'

-wyory

Marek Marczykowski-Górecki

unread,
Sep 10, 2015, 7:09:51 PM9/10/15
to wyory, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Ough, this looks like really dumb bug. Especially that with 'localtime'
- - it is the only rejected text value instead of being the only one
accepted...

https://github.com/QubesOS/qubes-issues/issues/1184

- --
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

iQEcBAEBCAAGBQJV8g21AAoJENuP0xzK19cs1MEH/jTxa7ftiS5crPeimfHFv0pn
BjmlvWxsjX8Dqn8Tf7zQHLaAsA+yUeAxv/ElWDcrgQQtotNP2y5FMGDvwg+TQDGq
FgeANPh/nLoHPGhTXmHKhHxjKqrZHpPmGOm0PO+R7a4jHupRAEd9/BZjKm7rPEmQ
6kMjcBUBaTJGKEPc0SCh/KwBnkEazGF05WAYH1Yg7Kw6+tPAo+2C8G+RcNKEk6u2
5fU+ZmQrSlbpTEeCVUnrzhTAoXBFd4CHiCX2Rp3OTiCggMQXEDtNxUh3+qbaO+AZ
+D2XJDKMDNS6AEW4S6soTTvmILrO8f2xSnVpxFB5/2bxxr62JOtTqfyeikQBL8o=
=n9cB
-----END PGP SIGNATURE-----

wyory

unread,
Sep 10, 2015, 10:09:07 PM9/10/15
to Marek Marczykowski-Górecki, qubes...@googlegroups.com

Marek Marczykowski-Górecki:
> On Thu, Sep 10, 2015 at 08:59:08PM +0000, wyory wrote:
>> Hi,
>
>> How do I set the HVM clock timezone?
>
>> According to this https://www.qubes-os.org/doc/Dom0Tools/QvmPrefs/ I
>> should be able to do it with qvm-prefs. I can set positive values, but
>> then my HVM won't start. I can't set negative offset (which is what I
>> need), and I can't set it back to localtime.
>
>> qvm-prefs -s hvmname timezone localtime
>> Invalid timezone value!
>
>> qvm-prefs -s hvmname timezone -3600
>> qvm-prefs: error: no such option: -3
>
>> After changing it to a positive integer, I can't start my HVM. I get:
>> AttributeError: 'int' object has no attribute 'lower'
>
> Ough, this looks like really dumb bug. Especially that with 'localtime'
> - it is the only rejected text value instead of being the only one
> accepted...
>
> https://github.com/QubesOS/qubes-issues/issues/1184
>
>

Thanks for creating the ticket. This is a HVM template by the way.

I was able to start the HVM template again by manually setting timezone
to localtime in /var/lib/qubes.xml

But if I try setting the value ion qubes.xml to the negative offset I
need I get "libvirt.libvirtError: unsupported configuration: unknown
clock basis 'UTC'"


-wyory
Reply all
Reply to author
Forward
0 new messages