I searched all day how to fix all these errors and problems that I’m getting with lxc.
All I tried to do is:
lxc-create --config /home/pc/test/centos-config -n test -t oci -- -u docker://opensuse/leap
Relevant configs I can think of:
/home/pc/test/centos-config
lxc.include = /usr/local/etc/lxc/default.conf lxc.idmap = u 0 1000000 65536 lxc.idmap = g 0 1000000 65536
/usr/local/etc/lxc/lxc-usernet
pc veth virbr0 100
ls -la /home/pc/.local/share/lxc/test
drwxrwx--- 3 1000000 pc 34 Feb 25 17:20 . drwxr-xr-x 5 pc pc 72 Feb 25 17:22 .. -rw-r----- 1 pc pc 961 Feb 25 17:20 config drwxr-xr-x 17 pc 1000000 180 Feb 16 17:00 rootfs
ls -la /usr/bin/new[ug]idmap
-rwsr-xr-x 1 pc root 47296 Feb 25 17:09 /usr/bin/newgidmap -rwsr-xr-x 1 pc root 42992 Feb 25 17:09 /usr/bin/newuidmap
lxc-start -F --name=test --logfile=log.txt --logpriority=TRACE
lxc-start test 20190225174836.564 ERROR conf - conf.c:chown_mapped_root:3217 - lxc-usernsexec failed: No such file or directory - Failed to open ttyNo such file or directory - Failed to open tt
lxc-start test 20190225174836.564 ERROR terminal - terminal.c:lxc_terminal_map_ids:1188 - Failed to chown terminal “/dev/pts/17”
lxc-start test 20190225174836.564 ERROR start - start.c:lxc_init:883 - Failed to chown console
lxc-start test 20190225174836.564 TRACE start - start.c:lxc_serve_state_clients:462 - Set container state to ABORTING
lxc-start test 20190225174836.564 TRACE start - start.c:lxc_serve_state_clients:465 - No state clients registered
lxc-start test 20190225174836.564 ERROR start - start.c:__lxc_start:1929 - Failed to initialize container “test”
lxc-start test 20190225174836.564 ERROR lxc_start - tools/lxc_start.c:main:330 - The container failed to start