OpenVZ Forum


Home » General » Support » *SOLVED* How do I change date/timezone of VE?
*SOLVED* How do I change date/timezone of VE? [message #6694] Thu, 21 September 2006 12:13 Go to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
Title says everything. I've tried all the normal *nix tools for this (rdate, date etc. which say operation not permitted), copied timezone file /etc/localtime etc.

How do you change the timezone for VE?

[Updated on: Fri, 22 September 2006 05:40] by Moderator

Report message to a moderator

Re: How do I change date/timezone of VE? [message #6697 is a reply to message #6694] Thu, 21 September 2006 12:50 Go to previous messageGo to next message
dreamwiz is currently offline  dreamwiz
Messages: 11
Registered: September 2006
Junior Member
Solution:

Stop VE vzctl stop 101

in HD node, run:

vzctl set 101 --capability sys_time:on --save

Start VE: vzctl start 101

Enter VE: vzctl enter 101

mv /etc/localtime /etc/localtime.old
ln -s /usr/share/zoneinfo/Europe/Helsinki /etc/localtime

date 092115442006 (09 = Month, 21 = day, 15 = hour, 44=minutes, 2006 = year)

run date to check your time is right. That's it!


Re: *SOLVED* How do I change date/timezone of VE? [message #37906 is a reply to message #6694] Sat, 31 October 2009 18:16 Go to previous message
webworx is currently offline  webworx
Messages: 1
Registered: October 2009
Junior Member
Thanks, that was VERY helpful
Previous Topic: Debian Lenny 686 virtualizing Can I use CentOS 5 64? (In the background)
Next Topic: cpuunits on 2.6.24-ovz009.1
Goto Forum:
  


Current Time: Mon Oct 07 12:08:45 GMT 2024

Total time taken to generate the page: 0.05388 seconds