Open Codeer12 opened 3 years ago
Same error, tried archlinux and ubuntu
chronos@localhost ~/brioche $ brioch ubuntu shell
lxc-attach: ubuntu: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: ubuntu: attach.c: lxc_attach: 1430 Failed to get attach context
lxc-attach: ubuntu: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: ubuntu: attach.c: lxc_attach: 1430 Failed to get attach context
lxc-attach: ubuntu: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: ubuntu: attach.c: lxc_attach: 1430 Failed to get attach context
Using lxc-start:
chronos@localhost ~/brioche $ sudo lxc-start ubuntu -F
lxc-start: ubuntu: utils.c: lxc_can_use_pidfd: 1772 Kernel does not support pidfds
lxc-start: ubuntu: utils.c: safe_mount: 1198 Too many levels of symbolic links - Failed to mount "none" onto "/usr/local/lib64/lxc/rootfs/dev"
lxc-start: ubuntu: conf.c: mount_autodev: 1222 Too many levels of symbolic links - Failed to mount tmpfs on "/usr/local/lib64/lxc/rootfs"
lxc-start: ubuntu: conf.c: lxc_setup: 3628 Failed to mount "/dev"
lxc-start: ubuntu: start.c: do_start: 1265 Failed to setup container "ubuntu"
lxc-start: ubuntu: sync.c: sync_wait: 36 An error occurred in another process (expected sequence number 5)
lxc-start: ubuntu: start.c: __lxc_start: 2073 Failed to spawn container "ubuntu"
lxc-start: ubuntu: tools/lxc_start.c: main: 308 The container failed to start
lxc-start: ubuntu: tools/lxc_start.c: main: 313 Additional information can be obtained by setting the --logfile and --logpriority options
Same error with Arch Linux:
chronos@localhost / $ brioche arch desktop gnome
lxc-attach: arch: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: arch: attach.c: lxc_attach: 1430 Failed to get attach context
lxc-attach: arch: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: arch: attach.c: lxc_attach: 1430 Failed to get attach context
lxc-attach: arch: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: arch: attach.c: lxc_attach: 1430 Failed to get attach context
lxc-attach: arch: attach.c: get_attach_context: 403 Failed to get init pid
lxc-attach: arch: attach.c: lxc_attach: 1430 Failed to get attach context
I tried "sudo lxc-start arch --logfile archLog":
lxc-start: arch: lxccontainer.c: wait_on_daemonized_start: 868 Received container state "ABORTING" instead of "RUNNING"
lxc-start: arch: tools/lxc_start.c: main: 308 The container failed to start
lxc-start: arch: tools/lxc_start.c: main: 311 To get more details, run the container in foreground mode
lxc-start: arch: tools/lxc_start.c: main: 313 Additional information can be obtained by setting the --logfile and --logpriority options
The log file contains these:
lxc-start arch 20210915080049.257 ERROR utils - utils.c:lxc_can_use_pidfd:1772 - Kernel does not support pidfds
lxc-start arch 20210915080049.283 ERROR start - start.c:start:2162 - No such file or directory - Failed to exec "/sbin/init"
lxc-start arch 20210915080049.283 ERROR sync - sync.c:sync_wait:36 - An error occurred in another process (expected sequence number 7)
lxc-start arch 20210915080049.283 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:868 - Received container state "ABORTING" instead of "RUNNING"
lxc-start arch 20210915080049.284 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start arch 20210915080049.284 ERROR lxc_start - tools/lxc_start.c:main:311 - To get more details, run the container in foreground mode
lxc-start arch 20210915080049.284 ERROR lxc_start - tools/lxc_start.c:main:313 - Additional information can be obtained by setting the --logfile and --logpriority options
lxc-start arch 20210915080049.284 ERROR start - start.c:__lxc_start:2073 - Failed to spawn container "arch"
Right after finish installing Arch container, I was able to enter the Arch shell without problem. But these errors start to show up after a reboot of Chrome OS.
Whenever I try to start my container, this shows up:
lxc-attach: mycontainer: attach.c: get_attach_context: 403 Failed to get init pi