Time server in Qemu - CentOS 5.3

nick

Renowned Member
Mar 28, 2007
364
1
83
HI all,

I have a Qemu server based on CentOS 5.3 and an application that depend on time registered on server. He register values that depend on time.
The machine is configurated to syncronize hourly to a time server; the sync process work perfect.
The problem is that in 1 hour the time on machine goes wrong...remain with 10-15 minnutes behind real time...and after 1 hour...the server syncronise again with timeserver. How can I solve this issue? It's a general issue?

Thank you!
Regards
 
I use NTP....

Package ntp-4.2.2p1-9.el5.centos.2.i386 already installed and latest version
 
this is the console:

Code:
[root@rapoarte ~]# ntpdate ro.pool.ntp.org
20 Oct 10:09:43 ntpdate[4104]: the NTP socket is in use, exiting
[root@rapoarte ~]# /etc/init.d/ntpd status
ntpd (pid 2102) is running...
 
Code:
ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        .LOCL.          10 l   52   64  377    0.000    0.000   0.001
 cache.chml.ro   193.79.237.14    2 u  828 1024  377    2.388  40151.7 12898.9
 0x56787001.nifl 80.96.120.253    2 u  824 1024  377    2.316  41867.6 12327.3

Now, the sync process is defined using Webmin. This section don't work without NTP installed!
 

Attachments

  • time.jpg
    time.jpg
    100.7 KB · Views: 4
Code:
vlan1: rtl8139=4E:CA:31:6F:F9:70
ostype: l26
ide0: vm-119-disk.qcow2
memory: 512
onboot: 1
name: Rapoarte
ide2: CentOS-5.3-i386-netinstall.iso,media=cdrom
smp: 1
bootdisk: ide0

PVE version: pve-manager/1.3/4023
Linux 2.6.24-7-pve #1 SMP PREEMPT Tue Jun 2 08:00:29 CEST 2009
 
That does not sound like NTP?? confused.

If the time skew is too big, ntp daemon will not attempt to sync the time.

One has to use ntpdate to sync it - but ntp daemon can't be running at the same time.

So:

/etc/init.d/ntpd stop
ntpdate pool.ntp.org
/etc/init.d/ntpd start


Also, if you have a Linux guest, make sure kvm-clock is used:

# cat /sys/devices/system/clocksource/clocksource0/available_clocksource
kvm-clock tsc acpi_pm jiffies

# cat /sys/devices/system/clocksource/clocksource0/current_clocksource
kvm-clock

kvm-clock will be only available with kernels that are not too ancient (2.6.26 and newer; maybe some older kernels as well).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!