Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-17-2012, 01:46 PM   #1
LQ Newbie
Registered: Nov 2012
Posts: 8

Rep: Reputation: Disabled
Question How to eliminate time drifts on a vServer guest?

I'm using Debian Squeeze on a vServer guest hostet under OpenVZ from my provider.

The problem is that the configuration does not allow me to set the time or date, but the system often has a timedrift of 10 minutes or more. All I can do regarding date/time settings myself is to change the timezone to the correct timezone of my country. Now I've got tired from complaining and begging for correcting the time at least once a month.

As dpkg-reconfigure tzdata is able to set an offset (or does it anything else?) for the timezone I'm curious whether it's possible by any means to add the timedrift to the offset so the time will always be much closer to the real local time, either by updating the offset manually or automated using ntp?

This is the info about my system I get from uname -a.
Linux myvsguest* 2.6.32-5-openvz-amd64 #1 SMP Sun May 6 05:21:56 UTC 2012 x86_64 GNU/Linux

*) I replaced the real guest hostname by myvsguest*

Maybe I'm just wrong with my assumption and there is a way I'm not aware of to set the time. But after reading the information about the topic in this forum and other places in the net this can only be done in the vServer host so I dont expect it. To change the provider is an option, of course ((I hope he is reading here))

Any ideas / suggestions are welcome.
Old 11-18-2012, 08:55 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Originally Posted by pgloor View Post
The problem is that the configuration does not allow me to set the time or date
Setting time, or having a NTP daemon set it, require capabilities ('man capabilities') your container doesn't have. Some people have had limited success combating time skew variation with kernel "clocksource=" command line args but that's a stopgap measure. Unless you can get your provider to
vzctl set [YourvServer] --capability sys_time:on (--save) && vzctl restart [YourvServer]
which would give you the capability
Originally Posted by pgloor View Post
To change the provider is an option, of course
...unfortunately is the "right" option: learn from the experience and vote with your wallet.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware guest on Linux-Vserver: patch & install script roberto967 Linux - Virtualization and Cloud 3 05-23-2013 12:29 AM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 04:06 AM
LXer: MySQL veteran drifts clear of Oracle Borg LXer Syndicated Linux News 0 10-08-2010 02:40 AM
kernel clock drifts ravspratapsingh Linux - Kernel 5 08-19-2010 12:50 AM
Date and time out on VirtualBox Guest OS iPatch Linux - Virtualization and Cloud 1 10-31-2009 07:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration