Synchronise clocks on ubuntu running in EC2?

Date Published: 09/02/2013 10:37 PM

I've got three servers running on AWS EC2 using official Ubuntu AMIs using paravirtualisation. I have noticed their clocks are out of sync by about a minute.

NTP is not installed by default in the official AMIs. Apparently NTP will not function correctly on VMs. Apparently you don't need to syncronise clocks, because the VM should use the same clock as DOM0, i.e. the host machine. Presumably AWS run NTP on their host machines.

On the other hand there are plenty of blogs telling you to run NTP and disable host clock syncronisation by running echo 1 > /proc/sys/xen/independent_wallclock. However in the official AMIs there is not /proc/sys/xen - there is /proc/xen, but it is empty.

Does anyone know how to synchronise clocks on ubuntu running in EC2?

View full answer on Ask Ubuntu

View Local Answers...

Can't find the answer to this question?

No answers yet.

Can you answer this question?

Synchronise clocks on ubuntu running in EC2?

  • Your Nickname
  • Your Answer

  • Enter the code below to prove you are human