MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to set/change timezone in openvz base VM?  (Read 3701 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How to set/change timezone in openvz base VM?
« on: August 03, 2015, 03:02:18 PM »
Hello folks,

Yes, you can set/change different timezone in OpenVZ based VM. Please follow the instructions and run below commands.

Login to the host node via ssh.

Stop the VM(container) on which you want to set time.

Quote
# vzctl stop 151

Set the container to have capability to change the time zone.

Quote
# vzctl set 151 --capability sys_time:on --save

Start the VM and login to it.

Quote
# vzctl start 151
# vzctl enter 151

Set/Change your local timezone with below commands.

Quote
# mv /etc/localtime /etc/localtime.old
# ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime


Set the date and time.

Quote
# date 080303002015


That's All, Enjoy...!!!!!
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How to set/change timezone in openvz base VM?
« on: August 03, 2015, 03:02:18 PM »