ntdp im lxc

jms1000

Well-Known Member
Oct 25, 2016
150
4
58
59
Germany, Schkeuditz
www.sv-forensik.de
Ich habe in einem LXC mit debian einem ntpd am laufen. Seit einem der letzten Updates mag der ntpd aber nicht mehr, Fehlermeldung im Syslog:

adj_systime: Operation not permitted
oder
local_clock: ntp_loopfilter.c line 818: ntp_adjtime: Operation not permitted



Vor langer Zeit konnte man da mal sowas wie vzctl set sys_time:on machen. Wie funktioniert das jetzt mit den lxc's ?
 
Bitteschön:

pct config 20111
arch: amd64
cpulimit: 1
hostname: xxxx
memory: 2048
mp0: /mnt/pve/data-bak/20111,mp=/mnt/pve/data-bak,shared=1
net0: bridge=vmbr0,gw=x.x.x.x,hwaddr=62:63:66:34:61:61,ip=x.x.x.x/24,name=eth0,type=veth
onboot: 1
ostype: debian
rootfs: data-prx:20111/vm-20111-disk-1.raw,size=2G
swap: 2048
 
Die Konfig schaut gut aus. Habs hier auf Centos7 getestet. Gleiches Problem. Habs auch noch mit "unprivileged" getestet.
 
Last edited:
Der Wechsel zu unprivileged geht ja soweit ich weis nur über restore ... restore bringt aber nur fehlermeldungen:

pvedaemon[29612]: <root@pam> end task UPID:prx2:00003640:02A832D3:5A7D8240:vzrestore:20123:root@pam: command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf /proc/self/fd/12 --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' -C /var/lib/lxc/20123/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
 
Hello!!
MEIN ERSTER "BEITRAG" JEAH!

Gibt es hier irgendwelche workarounds?

freeipa Installation in einem centos-CT.

im Sekundentakt:
Code:
Jun 12 09:45:16 ipa ntpd[3701]: adj_systime: Operation not permitted
Jun 12 09:45:17 ipa ntpd[3701]: adj_systime: Operation not permitted
Jun 12 09:45:18 ipa ntpd[3701]: adj_systime: Operation not permitted
Jun 12 09:45:19 ipa ntpd[3701]: adj_systime: Operation not permitted
Jun 12 09:45:20 ipa ntpd[3701]: adj_systime: Operation not permitted
Jun 12 09:45:21 ipa ntpd[3701]: adj_systime: Operation not permitted

VG aus HH