OpenVZ Forum

Home » General » Support » *SOLVED* Time inside vps differs from the host machine
*SOLVED* Time inside vps differs from the host machine [message #3765] Wed, 14 June 2006 20:58 Go to next message
eugeniopacheco is currently offline  eugeniopacheco
Messages: 40
Registered: November 2005

I'm having a little problem here... I have openvz running on a Pentium 3.2 HT with the following information:

Linux 2.6.8-022stab077.1-smp #1 SMP Fri Apr 21 17:02:34 MSD 2006 i686 i686 i386 GNU/Linux

This is running on Fedora Core 4 and I have a VPS with debian-3.1. The problem is that the times on the host machine and vps are messed up... Look:

This was on the host machine:
[root@test ~]# date
Wed Jun 14 16:57:19 EDT 2006
[root@test ~]# clock
Wed 14 Jun 2006 04:57:30 PM EDT -0.356429 seconds

This was on the VPS:
vps:~# date
Wed Jun 14 20:57:50 UTC 2006

How come the three times are different? Shouldn't they all be the same?

Thanks for the help...

Eugenio Pacheco

[Updated on: Fri, 16 June 2006 13:35] by Moderator

Report message to a moderator

Re: Time inside vps differs from the host machine [message #3769 is a reply to message #3765] Thu, 15 June 2006 05:21 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Yes, this is the same.
Your VPS uses UTC time, but your Hardware Node uses EDT (Eastern Standard Time), which differs from UTC and equals (UTC - 4).
Thus, everithing is ok.

However, you can tune VPS or HN to use the same time standart.
It depends on Linux distribution how to do it.
Previous Topic: Vzctl and VPS variables
Next Topic: *SOLVED* How to disable raw sockets
Goto Forum:

Current Time: Tue May 30 17:56:04 GMT 2023

Total time taken to generate the page: 0.01298 seconds