I was moving one of my DNS servers to Proxmox 4. I created a Centos 7 LXC container and installed bind on it it with "yum install bind bind-utils". Named will not start.
service named start
Redirecting to /bin/systemctl start named.service
Job for named.service failed. See 'systemctl status named.service' and 'journalctl -xn' for details.
# service named status
Redirecting to /bin/systemctl status named.service
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)
Active: failed (Result: exit-code) since Tue 2015-11-10 18:04:47 CST; 25s ago
Process: 979 ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf (code=exited, status=226/NAMESPACE)
Nov 10 18:04:47 ns1.testtest123.net systemd[979]: Failed at step NAMESPACE spawning /usr/sbin/named-checkconf: Permission denied
Nov 10 18:04:47 ns1.testtest123.net systemd[1]: named.service: control process exited, code=exited status=226
Nov 10 18:04:47 ns1.testtest123.net systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Nov 10 18:04:47 ns1.testtest123.net systemd[1]: Unit named.service entered failed state.
Is this something to do with AppArmor? Few months ago I created a Centos 7 OpenVZ container on Proxmox 3 with no issues at all with DNS server running.
service named start
Redirecting to /bin/systemctl start named.service
Job for named.service failed. See 'systemctl status named.service' and 'journalctl -xn' for details.
# service named status
Redirecting to /bin/systemctl status named.service
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)
Active: failed (Result: exit-code) since Tue 2015-11-10 18:04:47 CST; 25s ago
Process: 979 ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf (code=exited, status=226/NAMESPACE)
Nov 10 18:04:47 ns1.testtest123.net systemd[979]: Failed at step NAMESPACE spawning /usr/sbin/named-checkconf: Permission denied
Nov 10 18:04:47 ns1.testtest123.net systemd[1]: named.service: control process exited, code=exited status=226
Nov 10 18:04:47 ns1.testtest123.net systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Nov 10 18:04:47 ns1.testtest123.net systemd[1]: Unit named.service entered failed state.
Is this something to do with AppArmor? Few months ago I created a Centos 7 OpenVZ container on Proxmox 3 with no issues at all with DNS server running.