lxc-checkconfig

checks whether the current kernel has the required features enabled for LXC

TLDR

Check current kernel support
$ lxc-checkconfig
Check specific kernel config
$ CONFIG=/path/to/config lxc-checkconfig

SYNOPSIS

lxc-checkconfig

DESCRIPTION

lxc-checkconfig checks whether the current kernel has the required features enabled for LXC container support. It examines namespaces, cgroups, and other kernel capabilities.

CHECKS PERFORMED

Namespaces: User, PID, UTS, IPC, NetworkCgroups: v1/v2, controllersMisc: Seccomp, checkpoint/restore

INSTALL

sudo apt install lxc
sudo dnf install lxc
sudo pacman -S lxc
sudo apk add lxc
sudo zypper install lxc
brew install lxc
nix profile install nixpkgs#lxc

CAVEATS

Set CONFIG environment variable to check a different kernel configuration file. Helps diagnose why containers might not work on a system.

SEE ALSO

lxc-create(1), lxc-start(1)