LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-17-2012, 12:46 PM   #1
pgloor
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, 07:55 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
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
Code:
vzctl set [YourvServer] --capability sys_time:on (--save) && vzctl restart [YourvServer]
which would give you the capability
Quote:
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.
  


Reply



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-22-2013 11:29 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
LXer: MySQL veteran drifts clear of Oracle Borg LXer Syndicated Linux News 0 10-08-2010 01:40 AM
kernel clock drifts ravspratapsingh Linux - Kernel 5 08-18-2010 11:50 PM
Date and time out on VirtualBox Guest OS iPatch Linux - Virtualization and Cloud 1 10-31-2009 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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