[Users] How does the clock work in OpenVZ?
Wolfgang Schnerring
wosc at wosc.de
Fri Mar 9 05:27:48 EST 2007
Hello Kirill,
* Kirill Korotaev <dev at sw.ru> [2007-03-09 13:04]:
> > I'm trying to understand whether OpenVZ does anything special about
> > time, and thus whether I need to take care to somehow synchronize the
> > clocks of HN and VEs.
> no. system time is global for the whole node and its VEs.
> By default, VE can not change system time (it requires CAP_SYS_TIME)
>
> > For example, can gettimeofday(2) return
> > different things in the HN and in a VE?
> it can :) but only if different timezones are selected in VEs.
> So you can setup ntpd on the host node and that's all.
Thanks for your quick response! Now I don't need to fear asynchronity
anymore. 8-)
Wolfgang
More information about the Users
mailing list