lxc 3.2.1-r2 command lxc-execute does not exit as it should
When running lxc-execute sh and then exit the shell you get this error message. sometimes you get this with "lxc-execute ls" also lxc-execute test 20200309192739.860 ERROR utils - utils.c:recursive_destroy:1782 - No such file or directory - Failed to open dir "/sys/fs/cgroup/openrc//lxc.payload/test" lxc-execute test 20200309192739.869 WARN cgfsng - cgroups/cgfsng.c:cgroup_rmdir:1045 - Failed to destroy "/sys/fs/cgroup/openrc//lxc.payload/test" The container contains a standard minimal rootfs from alpine-linux. but i have confirmed with other images as well. Here is the config file: ======================== # This derives from the global common config. lxc.include = /usr/share/lxc/config/common.conf # Doesn't support consoles in /dev/lxc/. lxc.tty.dir = # Drop another (potentially) harmful capabilities. lxc.cap.drop = audit_write lxc.cap.drop = ipc_owner lxc.cap.drop = mknod lxc.cap.drop = sys_nice lxc.cap.drop = sys_pacct lxc.cap.drop = sys_rawio lxc.cap.drop = sys_resource lxc.cap.drop = sys_tty_config lxc.cap.drop = syslog lxc.cap.drop = wake_alarm # Mount /run as tmpfs. lxc.mount.entry=run run tmpfs rw,nodev,relatime,mode=755 0 0 # Mount /dev/shm as tmpfs; needed for building python and possibly other packages. lxc.mount.entry=shm dev/shm tmpfs rw,nodev,noexec,nosuid,relatime,mode=1777,create=dir 0 0 lxc.idmap = u 0 100000 65536 lxc.idmap = g 0 100000 65536 lxc.net.0.type = veth lxc.net.0.link = j lxc.net.0.flags = up lxc.net.0.veth.pair = console #lxc.net.ipv4 = 192.168.1.110 #lxc.net.ipv4.gateway = 192.168.1.1 lxc.rootfs.path = dir:/j/lxc/test/rootfs lxc.signal.halt = SIGUSR1 lxc.signal.reboot = SIGTERM lxc.uts.name = "test" lxc.tty.max = 1 lxc.pty.max = 10 lxc.cap.drop = sys_module mac_admin mac_override sys_time lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed #lxc.mount.entry = shm /dev/shm tmpfs defaults 0 0 #lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0 But the issue seams to be something with cgroups and when network is activated. lxc.net.0.type = veth I have also confirmed that this works with ubunto (lxc 3.0.3) and the same config + rootfs.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information