NTP server on a bridged ethernet container

andrea

Member
Sep 18, 2009
36
0
6
Roma, Italy
www.mediatouch.it
After browsing the forums and googling around, I'm still not sure about the correct approach for a NTP server inside a container.

The need is for a ntpd daemon running in a OpenVZ container with bridged ethernet (vmbr0) and acting as time server for a local network. Just installing and running ntpd with proper "broadcast" configuration seems to work and sync time either in the container and in the clients pointing to it. (container log confirms the sync with time server pool)

However, OpenVZ container running ntpd does NOT has the sys_time capability on. So my doubt is, which time is managing the ntpd daemon, the container one OR the hardware node one, which is already running ntpd?

Also, if time in container syncs correctly without sys_time capability, it appears a bridged container behaves differently than others, but i was unable to find useful documentation.

Any help pointing me in the right direction would be greatly appreciated
Cheers,
Andrea
 
Thanks Dietnar,

yes, the capability can be set, however the question was more keen to understand why a container sync time without such capability and if there are differences running NTPD in a bridged container.
 
yes, the capability can be set, however the question was more keen to understand why a container sync time without such capability and if there are differences running NTPD in a bridged container.

The container uses the host time (and the host have ntpd running). I do not see how network mode (bridged/venet) relate to this at all.
 

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!