0

I'm trying to create unprivileged container, went to

Error: Failed to initialize cgroup driver / PAM unable to open pam_cgfs.so

Downgraded lxc to 3.0.1 as it's suggested in doc https://wiki.archlinux.org/index.php/Linux_Containers but now lxc doesn't even say what's wrong:

> lxc-create -l DEBUG -n test2345 -t download -- --dist archlinux --release current --arch amd64
Error creating container test2345

container log:

> cat /home/user/.local/share/lxc/test2345/test2345.log 
lxc-create test2345 20181121173634.835 INFO     lxc_confile - confile.c:set_config_idmaps:1666 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-create test2345 20181121173634.835 INFO     lxc_confile - confile.c:set_config_idmaps:1666 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-create test2345 20181121173634.835 DEBUG    lxc_conf - conf.c:chown_mapped_root:3086 - trying to chown "/home/user/.local/share/lxc/test2345" to 1000

configs:

> cat /etc/subuid 
user:100000:65536

> cat /etc/subgid 
user:100000:65536

> cat /home/user/.config/lxc/default.conf  
lxc.idmap = u 0 100000 65536 
lxc.idmap = g 0 100000 65536

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.