LXC - CentOS 7 20150829 NTP failure

AlanMAC

New Member
Dec 3, 2011
14
0
1
Hello everyone, I'm trying to get NTP running on the CentOS 7 LXC template... but it just won't budge. journalctl -xn has the following:

Code:
-- The result is failed.
Sep 16 21:05:52 IPA systemd[1]: Unit ntpd.service entered failed state.
Sep 16 21:06:44 IPA systemd[1]: Starting Network Time Service...
-- Subject: Unit ntpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit ntpd.service has begun starting up.
Sep 16 21:06:44 IPA systemd[615]: Failed at step NAMESPACE spawning /usr/sbin/ntpd: Permission denied
-- Subject: Process /usr/sbin/ntpd could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /usr/sbin/ntpd could not be executed and failed.
-- 
-- The error number returned while executing this process is 13.
Sep 16 21:06:44 IPA systemd[1]: ntpd.service: control process exited, code=exited status=226
Sep 16 21:06:44 IPA systemd[1]: Failed to start Network Time Service.
-- Subject: Unit ntpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit ntpd.service has failed.
-- 
-- The result is failed.

journalctl -xn was complaining about ntpd not being able to run b/c -u ntp:ntp was being passed - so I changed ownership to ntp, but this did nothing. Anyone see this?
 
Why do you want to run NTP inside the container? The container gets time from the host, which already runs an NTP client.
 

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!