$ uname -a Linux gentoo-phytium 5.17.7-gentoo #1 SMP PREEMPT Sat May 14 01:18:01 CST 2022 aarch64 GNU/Linux $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/11.3.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-11.3.0/work/gcc-11.3.0/configure --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/11.3.0 --includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/11.3.0/include --datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/11.3.0 --mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/11.3.0/man --infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/11.3.0/info --with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/11.3.0/include/g++-v11 --with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/11.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.3.0 p4' --disable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --enable-lto --with-isl --disable-isl-version-check --enable-default-pie --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.3.0 (Gentoo 11.3.0 p4) $ doas emerge -av lxd These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] acct-group/lxc-0::gentoo 0 KiB [ebuild N ] acct-group/lxd-0-r1::gentoo 0 KiB [ebuild N ] dev-lang/go-bootstrap-1.16.6::gentoo USE="(-big-endian)" 116,672 KiB [ebuild N ] dev-util/xdelta-3.0.11:3::gentoo USE="lzma -examples" 668 KiB [ebuild N ] sys-fs/squashfs-tools-4.5.1::gentoo USE="lzma xattr zstd -debug -lz4 -lzo" 264 KiB [ebuild N ] dev-lang/go-1.18.2:0/1.18.2::gentoo 22,303 KiB [ebuild N ] acct-user/lxc-0::gentoo 0 KiB [ebuild N ] dev-libs/raft-0.13.0::gentoo USE="lz4 -test -zfs" 325 KiB [ebuild N ] app-containers/lxc-4.0.12::gentoo USE="caps pam seccomp ssl tools (-apparmor) -doc -io-uring -man (-selinux) -verify-sig" 1,529 KiB [ebuild N *] sys-fs/lxcfs-4.0.12::gentoo USE="-verify-sig" 451 KiB [ebuild N ] dev-libs/dqlite-1.10.0::gentoo USE="-test" 167 KiB [ebuild N *] app-containers/lxd-4.0.9-r3::gentoo USE="ipv6 nls (-apparmor) -verify-sig" 8,904 KiB Total: 12 packages (12 new), Size of downloads: 151,280 KiB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Running pre-merge checks for acct-group/lxc-0 >>> Running pre-merge checks for acct-group/lxd-0-r1 >>> Running pre-merge checks for acct-user/lxc-0 >>> Emerging (1 of 12) acct-group/lxc-0::gentoo >>> Installing (1 of 12) acct-group/lxc-0::gentoo >>> Emerging (2 of 12) acct-group/lxd-0-r1::gentoo >>> Installing (2 of 12) acct-group/lxd-0-r1::gentoo >>> Emerging (3 of 12) dev-lang/go-bootstrap-1.16.6::gentoo >>> Installing (3 of 12) dev-lang/go-bootstrap-1.16.6::gentoo >>> Emerging (4 of 12) dev-util/xdelta-3.0.11::gentoo >>> Installing (4 of 12) dev-util/xdelta-3.0.11::gentoo >>> Emerging (5 of 12) sys-fs/squashfs-tools-4.5.1::gentoo >>> Installing (5 of 12) sys-fs/squashfs-tools-4.5.1::gentoo >>> Emerging (6 of 12) dev-lang/go-1.18.2::gentoo >>> Installing (6 of 12) dev-lang/go-1.18.2::gentoo >>> Emerging (7 of 12) acct-user/lxc-0::gentoo >>> Installing (7 of 12) acct-user/lxc-0::gentoo >>> Emerging (8 of 12) dev-libs/raft-0.13.0::gentoo >>> Installing (8 of 12) dev-libs/raft-0.13.0::gentoo >>> Emerging (9 of 12) app-containers/lxc-4.0.12::gentoo >>> Installing (9 of 12) app-containers/lxc-4.0.12::gentoo >>> Emerging (10 of 12) sys-fs/lxcfs-4.0.12::gentoo >>> Installing (10 of 12) sys-fs/lxcfs-4.0.12::gentoo >>> Emerging (11 of 12) dev-libs/dqlite-1.10.0::gentoo >>> Installing (11 of 12) dev-libs/dqlite-1.10.0::gentoo >>> Emerging (12 of 12) app-containers/lxd-4.0.9-r3::gentoo >>> Installing (12 of 12) app-containers/lxd-4.0.9-r3::gentoo >>> Recording app-containers/lxd in "world" favorites file... >>> Jobs: 12 of 12 complete Load avg: 2.33, 2.75, 1.86 * Messages for package acct-group/lxc-0: * Adding group 'lxc' to your system ... * - Groupid: 358 * Messages for package acct-group/lxd-0-r1: * Adding group 'lxd' to your system ... * - Groupid: 402 * Messages for package acct-user/lxc-0: * Adding user 'lxc' to your system ... * - Userid: 358 * - Shell: /sbin/nologin * - Home: /dev/null * - Groups: lxc * - GECOS: added by portage for lxc * Updating comment for user 'lxc' ... * - Comment: User for app-containers/lxc * Messages for package app-containers/lxc-4.0.12: * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources * Unable to calculate Linux Kernel version for build, attempting to use running version * * For openrc, there is an init script provided with the package. * You should only need to symlink /etc/init.d/lxc to * /etc/init.d/lxc.configname to start the container defined in * /etc/lxc/configname.conf. * * Correspondingly, for systemd a service file lxc@.service is installed. * Enable and start lxc@configname in order to start the container defined * in /etc/lxc/configname.conf. * * (Note: Above message is only printed the first time package is * installed. Please look at /usr/share/doc/lxc-4.0.12/README.gentoo* * for future reference) * Please run 'lxc-checkconfig' to see optional kernel features. * * Install additional packages for optional runtime features: * app-containers/lxc-templates for automatic template scripts * dev-util/debootstrap for Debian-based distribution container image support * sys-process/criu for snapshot & restore functionality * Messages for package app-containers/lxd-4.0.9-r3: * Could not find a Makefile in the kernel source directory. * Please ensure that /usr/src/linux points to a complete set of Linux sources * Unable to calculate Linux Kernel version for build, attempting to use running version * * Consult https://wiki.gentoo.org/wiki/LXD for more information, * including a Quick Start. * For virtual machine support, see: * https://wiki.gentoo.org/wiki/LXD#Virtual_machines * * Please run 'lxc-checkconfig' to see all optional kernel features. * * * Be sure to add your local user to the lxd group. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. Reproducible: Always
$ lxc-checkconfig LXC version 4.0.12 --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled User namespace: enabled Network namespace: enabled --- Control groups --- Cgroups: enabled Cgroup namespace: enabled Cgroup v1 mount points: Cgroup v2 mount points: /sys/fs/cgroup Cgroup v1 systemd controller: missing Cgroup v1 freezer controller: missing Cgroup ns_cgroup: required Cgroup device: enabled Cgroup sched: enabled Cgroup cpu account: enabled Cgroup memory controller: enabled Cgroup cpuset: enabled --- Misc --- Veth pair device: enabled, not loaded Macvlan: enabled, not loaded Vlan: enabled, not loaded Bridges: enabled, loaded Advanced netfilter: enabled, not loaded CONFIG_IP_NF_TARGET_MASQUERADE: enabled, not loaded CONFIG_IP6_NF_TARGET_MASQUERADE: enabled, not loaded CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, loaded CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, not loaded FUSE (for use with lxcfs): enabled, loaded --- Checkpoint/Restore --- checkpoint restore: enabled CONFIG_FHANDLE: enabled CONFIG_EVENTFD: enabled CONFIG_EPOLL: enabled CONFIG_UNIX_DIAG: enabled CONFIG_INET_DIAG: enabled CONFIG_PACKET_DIAG: enabled CONFIG_NETLINK_DIAG: enabled File capabilities: Note : Before booting a new kernel, you can check its configuration usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
$ cat /etc/portage/package.accept_keywords/lxd app-containers/lxd ~* sys-fs/lxcfs ~*
I do see arm64 images being hosted in https://uk.lxd.images.canonical.com/ so I guess makes sense to proceed.
arm64 done all arches done