Lxd seccomp fail

[werwolf@srv] ~  
❯ lxc launch images:opensuse/tumbleweed test
Creating test
Starting test                                 
Error: Load go-lxc struct: Failed to set LXC config: lxc.seccomp.profile=/var/lib/lxd/security/seccomp/test
Try `lxc info --show-log local:test` for more info

[werwolf@srv] ~  
❯ lxc ls                                                                                                                                                                                                                                                                   ⏎
+------+---------+------+------+-----------+-----------+----------+
| NAME |  STATE  | IPV4 | IPV6 |   TYPE    | SNAPSHOTS | LOCATION |
+------+---------+------+------+-----------+-----------+----------+
| test | STOPPED |      |      | CONTAINER | 0         | srv      |
+------+---------+------+------+-----------+-----------+----------+

[werwolf@srv] ~  
❯ lxc info --show-log local:test
Name: test
Status: STOPPED
Type: container
Architecture: aarch64
Location: srv
Created: 2022/05/27 09:52 +06

Log:



[werwolf@srv] ~  
❯ sudo ls -lah /var/lib/lxd/security/seccomp/                                                                                                                                                                                                                              ⏎
итого 0
drwx------ 1 root root  0 янв 30  2021 .
drwx------ 1 root root 30 дек 13  2020 ..

the problem is reproduced only on aarch64, on x86_64 everything works as it should.

[werwolf@srv] ~  
❯ rpm -qa | grep -i lxd
lxd-5.1-1.1.aarch64
lxd-bash-completion-5.1-1.1.noarch

[werwolf@srv] ~  
❯ LANG=c zypper info lxd
Loading repository data...
Reading installed packages...


Information for package lxd:
----------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : lxd
Version        : 5.1-1.1
Arch           : aarch64
Vendor         : openSUSE
Installed Size : 206.4 MiB
Installed      : Yes
Status         : up-to-date
Source package : lxd-5.1-1.1.src
Upstream URL   : https://linuxcontainers.org/lxd
Summary        : Container hypervisor based on LXC
Description    : 
    LXD is a system container manager. It offers a user experience
    similar to virtual machines but uses Linux containers (LXC) instead.

I created bugreport in a bugzilla distribution. but just in case I write here, suddenly this is a problem not related to a specific distribution.

We’ve got daily tests on x86_64, i686, aarch64, armv7l, ppc64le and s390x so if it was an issue in LXD itself, we’d have caught it that way.

This is most likely some weirdness around the seccomp version or kernel config for this particular distro or liblxc not being properly built against seccomp on that architecture.