OpenVZ Forum


Home » Mailing lists » Users » How does the clock work in OpenVZ?
Re: How does the clock work in OpenVZ? [message #10951 is a reply to message #10949] Fri, 09 March 2007 09:51 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Wolfgang,

> 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,
Kirill
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: bash segfaulting on 2.6.18
Next Topic: syslog "kernel: BUG: unable to handle kernel NULL pointer dereference"
Goto Forum:
  


Current Time: Mon Jun 23 15:49:46 GMT 2025

Total time taken to generate the page: 0.04797 seconds