Hi,
After the last upgrade of the ‘lxc’ package on Arch linux (from 1:4.0.10-2 to 1:4.0.11-2), lxd doesn’t start the containers anymore (i.e. lxd start fails).
The problem is encountered only on Arch machines with the LTS kernel, the machines with standard kernel are not affected.
Versions:
⏹ [lyderic@nuc ~]$ pacman -Q lxc lxd linux-lts
lxc 1:4.0.11-2
lxd 4.19-1
linux-lts 5.10.75-1
Reproduce:
⏹ [lyderic@nuc ~]$ lxc list bob
+------+---------+------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+---------+------+------+-----------+-----------+
| bob | STOPPED | | | CONTAINER | 4 |
+------+---------+------+------+-----------+-----------+
⏹ [lyderic@nuc ~]$ lxc start bob
Error: Failed to run: /usr/bin/lxd forkstart bob /var/lib/lxd/containers /var/log/lxd/bob/lxc.conf:
Try `lxc info --show-log bob` for more info
⏹ [lyderic@nuc ~]$ lxc info --show-log bob
Name: bob
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2021/06/29 08:34 BST
Last Used: 2021/10/28 07:36 BST
Snapshots:
[...]
Log:
lxc bob 20211028063616.909 ERROR start - start.c:core_scheduling:1575 - Invalid argument - The kernel does not support core scheduling
lxc bob 20211028063616.910 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:867 - Received container state "ABORTING" instead of "RUNNING"
lxc bob 20211028063616.911 ERROR start - start.c:__lxc_start:2073 - Failed to spawn container "bob"
lxc bob 20211028063616.911 WARN start - start.c:lxc_abort:1038 - No such process - Failed to send SIGKILL via pidfd 17 for process 998
lxc 20211028063621.989 ERROR af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20211028063621.989 ERROR commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors
Please note that the above works perfectly on a machine that has a standard kernel, i.e. a machine with the following versions:
$ pacman -Q lxc lxd linux
lxc 1:4.0.11-2
lxd 4.19-1
linux 5.14.14.arch1-1
Many thanks for looking into it. For the moment, to make it work, I downgraded the lxc package as follows:
⏹ [lyderic@nuc ~]$ sudo pacman -U "/var/cache/pacman/pkg/lxc-1:4.0.10-2-x86_64.pkg.tar.zst"
loading packages...
warning: downgrading package lxc (1:4.0.11-2 => 1:4.0.10-2)
[...]
⏹ [lyderic@nuc ~]$ pacman -Q lxc lxd linux-lts
lxc 1:4.0.10-2
lxd 4.19-1
linux-lts 5.10.75-1
.