Hello,
I recently created an lxc container in the proxmox 6.2 gui and installed a freeipa server on it.
I used a centos 7 template for this. The ipa-server runs fine, but I see some unexpected behaviour in the logs and I found that I as root can not change owner or group from any created file or folder in the container. I can create file and folders as root, those are created with uid=0
I also see "ntpd[1018]: adj_systime: Operation not permitted" in the logs. After searching the forum, I think it also has to do with permissions for other than root user.
There is no nfs mount involved and I don't have this problem with other lxc containers on the same host that are "privileged" containers.
I can't put my finger on the origin of these issues.
I would appreciate it if anybody could point me to some documentation that explains this behaviour.
I found the wiki page on unprivileged containers, unfortunately this is a quit compact explanation and I could not link it to 'chown' "invalid argument" error I get
Any help is welcome.
My config.
arch: amd64
cores: 2
hostname: my-ipa.example.com
memory: 2976
nameserver: x.x.x.y
net0: name=eth0,bridge=vmbr2,firewall=1,gw=x.x.x.r,hwaddr=x:x:u:u:j:w,ip=x.x.x.f/24,ip6=auto,type=veth
onboot: 1
ostype: centos
rootfs: local-lvm:vm-num1-disk-0,size=8G
searchdomain: example.com
startup: order=1
swap: 2048
unprivileged: 1
lxc.cap.drop:
lxc.cap.drop: mac_admin mac_override sys_module sys_rawio
I recently created an lxc container in the proxmox 6.2 gui and installed a freeipa server on it.
I used a centos 7 template for this. The ipa-server runs fine, but I see some unexpected behaviour in the logs and I found that I as root can not change owner or group from any created file or folder in the container. I can create file and folders as root, those are created with uid=0
I also see "ntpd[1018]: adj_systime: Operation not permitted" in the logs. After searching the forum, I think it also has to do with permissions for other than root user.
There is no nfs mount involved and I don't have this problem with other lxc containers on the same host that are "privileged" containers.
I can't put my finger on the origin of these issues.
I would appreciate it if anybody could point me to some documentation that explains this behaviour.
I found the wiki page on unprivileged containers, unfortunately this is a quit compact explanation and I could not link it to 'chown' "invalid argument" error I get
Any help is welcome.
My config.
arch: amd64
cores: 2
hostname: my-ipa.example.com
memory: 2976
nameserver: x.x.x.y
net0: name=eth0,bridge=vmbr2,firewall=1,gw=x.x.x.r,hwaddr=x:x:u:u:j:w,ip=x.x.x.f/24,ip6=auto,type=veth
onboot: 1
ostype: centos
rootfs: local-lvm:vm-num1-disk-0,size=8G
searchdomain: example.com
startup: order=1
swap: 2048
unprivileged: 1
lxc.cap.drop:
lxc.cap.drop: mac_admin mac_override sys_module sys_rawio