Article ID: 112928, created on Dec 1, 2011, last review on May 9, 2014

  • Applies to:
  • Virtuozzo containers for Linux


After decree No. 725 of Russian government there are changes in UTC time offsets for all timezones. Due to these changes some containers may have outdated timezone information in comparison to hardware node:
[root@node ~]# date +%Z
[root@container~]# date +%Z

[root@node ~]# date +%z
[root@container ~]# date +%z


The container experiencing the issue is outdated. The file /etc/localtime differs from the one on the node.


Permanent solution: keep OS templates and containers up-to-date

1. Update OS template cache on regular basis:
vzpkg update cache TEMPLATENAME

2. Keep containers updated:
vzpkg update CTID

Temporary workaround: copy /etc/localtime from hardware node to a container
mv /vz/private/CTID/fs/root/etc/localtime{,.bak}
cp /etc/localtime /vz/private/CTID/fs/root/etc/localtime

e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF