#652·waydroid

waydroid is failed to start if LXC built without apparmor support

Author: RarogCmexCreated Dec 19, 2022Updated Sep 17, 2026

Describe the bug It might be LXC issue itself, however, if LXC built without apparmor support, it can't launch waydroid

lxc-stop: waydroid: ../lxc-5.0.1/src/lxc/confile.c: set_config_apparmor_profile: 1651 Invalid argument - Built without AppArmor support
lxc-stop: waydroid: ../lxc-5.0.1/src/lxc/parse.c: lxc_file_for_each_line_mmap: 129 Failed to parse config file "/var/lib/waydroid/lxc/waydroid/config" at line "lxc.apparmor.profile = unconfined"
Failed to load config for waydroid
lxc-stop: waydroid: ../lxc-5.0.1/src/lxc/tools/lxc_stop.c: main: 143 Error opening container

Screenshots If applicable, add screenshots to help explain your problem.

General information (please complete the following information):

  • Waydroid tools Version 1.3.4
  • Waydroid Images Version Any

Desktop (please complete the following information):

  • OS: Gentoo
  • GPU: Nvidia GTX 1060
  • Kernel version: 6.0.13-gentoo-dist
  • Host mesa version: media-libs/mesa 22.3.1
  • Desktop: KDE Plasma Wayland

Smartphone (please complete the following information): Not matter Additional context

Logs (please upload as file)

rarogcmexdell
Failed to load config for waydroid
Failure to retrieve information on /var/lib/waydroid/lxc:waydroid
Failed to load config for waydroid
Failure to retrieve information on /var/lib/waydroid/lxc:waydroid
[17:48:56] WayDroid container is 

Installed LXC: [I] app-containers/lxc Available versions: 5.0.1-r2^t {apparmor +caps examples io-uring lto man pam seccomp selinux ssl systemd test +tools verify-sig} Installed versions: 5.0.1-r2^t(16:46:33 12/16/22)(caps io-uring lto pam seccomp ssl tools -apparmor -examples -man -selinux -systemd -test -verify-sig) Homepage: https://linuxcontainers.org/ https://github.com/lxc/lxc Description: A userspace interface for the Linux kernel containment features

It have disabled apparmor support.