Ask Your Question
1

Time Keeping in instances

asked 2013-04-15 17:43:03 -0600

slashterix gravatar image

Is it important to run ntpd in guest instances? Or is their hardware clock kept up with the hosts clock (which is kept up with ntpd)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-16 14:22:39 -0600

mikal gravatar image

From the KVM manpage (so, specifically about that hypervisor):

       By default the RTC is driven by the host system time. This allows to use the RTC as
       accurate reference clock inside the guest, specifically if the host time is smoothly
       following an accurate external reference clock, e.g. via NTP.  If you want to isolate the
       guest time from the host, you can set clock to "rt" instead.  To even prevent it from
       progressing during suspension, you can set it to "vm".

So, if your hosts are running NTP you shouldn't need NTP in the guest.

edit flag offensive delete link more

Comments

Is there an easy way to find out if the hosts are running NTP without having to open a support ticket?

colan gravatar imagecolan ( 2018-02-14 19:21:11 -0600 )edit

Looks like the docs say to set up the host nodes with NTP so assuming your provider is following the manual, NTP should be running on them. See https://docs.openstack.org/mitaka/ins... .

colan gravatar imagecolan ( 2018-02-14 19:25:33 -0600 )edit
0

answered 2013-04-16 08:09:01 -0600

updated 2013-04-16 08:09:26 -0600

Hey,

It is not necessary to run ntpd in guest vms for OpenStack to work correctly, that doesn't affect OpenStack at all - unless you don't mess OpenStack's nodes time.

If the applications running in your guest need NTPD then you might want to install it, otherwise, it is not required. It all depends on what you need to do in the guest VM.

Cheers

edit flag offensive delete link more

Comments

1

I know that some virtualization systems (VMWare) are quite bad at keeping the wall clock in a guest accurate, while others handle it quite well. Primarily I just don't want my guest clocks drifting by several minutes. Does OpenStack keep the wall clocks in its guests accurately?

slashterix gravatar imageslashterix ( 2013-04-16 11:32:19 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-04-15 17:43:03 -0600

Seen: 1,947 times

Last updated: Apr 16 '13