OpenVZ Forum


Home » General » Support » How to set time in OpenVZ VPS?
Re: How to set time in OpenVZ VPS? [message #42142 is a reply to message #37400] Sun, 06 March 2011 16:22 Go to previous messageGo to previous message
shamu is currently offline  shamu
Messages: 13
Registered: December 2010
Location: Upper Bavaria / Germany
Junior Member
I want a ntpd running in a container adjust the hw node's time (step a), see below) and the systems hw clock. As far as I know on not virtualized machinges it could be done using the command '/sbin/hwclock -w'. But, how to do it from within a container?

Quote:
It is even recommended to use a container and set the time with NTP within one container for security reasons. In this case you have to:

a) assign a capability SYS_TIME to set the system time
b) give access to the /dev/rtc0 device if you want to also set the time back to the RTC clock


Well, a) is o.k. and already done on my system. But, in detail, how can I perform step b) ?

Thanks for your help in advance!

Greetinx

shamu
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: how to let container forward ip packets
Next Topic: Problem with limit od CPU.
Goto Forum:
  


Current Time: Fri Oct 10 06:48:54 GMT 2025

Total time taken to generate the page: 0.18150 seconds