Cannot start LXD

I’m not sure this is the place, or maybe 3th party apps. I’ve posted this in Linux Containers forum, but I’m not sure if this is a LXD thing, or an OS one (because the cgroup reference in the errors posted)

My uname -a: Linux servidor 5.15.94-1-MANJARO #1 SMP PREEMPT Tue Feb 14 19:45:58 UTC 2023 x86_64 GNU/Linux

LXD version: 5.10-2

LXD is nstalled as a pacman package. The OS is updated today.

I’m unable to start LXD service. What is happening: I removed some containers, and then reboot the machine.

After rebooting, when trying to start using systemctl start lxd.service, it stalls in “activating” and then systemctl says timeout. This has never happened before.

Job for lxd.service failed because a timeout was exceeded.
See "systemctl status lxd.service" and "journalctl -xeu lxd.service" for details.

lxd.log

time="2023-03-12T16:40:03+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
time="2023-03-12T16:40:03+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
time="2023-03-12T16:40:03+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
time="2023-03-12T16:40:03+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
time="2023-03-12T16:50:33+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
time="2023-03-12T16:50:33+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"

systemctl status lxd.service

● lxd.service - LXD Container Hypervisor
     Loaded: loaded (/usr/lib/systemd/system/lxd.service; enabled; preset: disabled)
     Active: activating (start-post) since Sun 2023-03-12 16:50:33 CET; 32s ago
TriggeredBy: ● lxd.socket
       Docs: man:lxd(1)
   Main PID: 5163 (lxd); Control PID: 5164 (lxd)
      Tasks: 31
     Memory: 145.8M
        CPU: 1.618s
     CGroup: /system.slice/lxd.service
             ├─5163 /usr/bin/lxd --group=lxd --logfile=/var/log/lxd/lxd.log
             └─.control
               └─5164 /usr/bin/lxd waitready --timeout=600

mar 12 16:50:33 servidor systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"

journalctl -xeu lxd.service

░░ An ExecStart= process belonging to unit lxd.service has exited.
░░ 
░░ The process' exit code is 'killed' and its exit status is 9.
mar 12 16:50:33 servidor systemd[1]: lxd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit lxd.service has entered the 'failed' state with result 'exit-code'.
mar 12 16:50:33 servidor systemd[1]: Failed to start LXD Container Hypervisor.
░░ Subject: A start job for unit lxd.service has failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit lxd.service has finished with a failure.
░░ 
░░ The job identifier is 2565 and the job result is failed.
mar 12 16:50:33 servidor systemd[1]: lxd.service: Consumed 1.753s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit lxd.service completed and consumed the indicated resources.
mar 12 16:50:33 servidor systemd[1]: lxd.service: Scheduled restart job, restart counter is at 1.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ Automatic restarting of the unit lxd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
mar 12 16:50:33 servidor systemd[1]: Stopped LXD Container Hypervisor.
░░ Subject: A stop job for unit lxd.service has finished
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A stop job for unit lxd.service has finished.
░░ 
░░ The job identifier is 2700 and the job result is done.
mar 12 16:50:33 servidor systemd[1]: lxd.service: Consumed 1.753s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit lxd.service completed and consumed the indicated resources.
mar 12 16:50:33 servidor systemd[1]: Starting LXD Container Hypervisor...
░░ Subject: A start job for unit lxd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit lxd.service has begun execution.
░░ 
░░ The job identifier is 2700.
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:50:33 servidor lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"

What is happening? How to fix it?

Try to get all journal entries. Also -x produces a output that is not easy to read. Try

journalctl --no-pager --no-hostname -b -u lxd.service

The output will not be in a pager like less, so you might need to scroll up in your terminal to see everything. If you rebooted since the last time you started lxd don’t use -b .

This is the output

mar 12 16:01:47 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:01:47 lxd[1641]: time="2023-03-12T16:01:47+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:01:47 lxd[1641]: time="2023-03-12T16:01:47+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:01:47 lxd[1641]: time="2023-03-12T16:01:47+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:01:47 lxd[1641]: time="2023-03-12T16:01:47+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 16:03:42 systemd[1]: lxd.service: Control process exited, code=killed, status=15/TERM
mar 12 16:04:12 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 16:04:12 systemd[1]: lxd.service: Killing process 1641 (lxd) with signal SIGKILL.
mar 12 16:04:12 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 16:04:12 systemd[1]: lxd.service: Failed with result 'signal'.
mar 12 16:04:12 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 16:04:12 systemd[1]: lxd.service: Consumed 1.950s CPU time.
mar 12 16:07:51 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:07:51 lxd[3202]: time="2023-03-12T16:07:51+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:07:51 lxd[3202]: time="2023-03-12T16:07:51+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:07:51 lxd[3202]: time="2023-03-12T16:07:51+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:07:51 lxd[3202]: time="2023-03-12T16:07:51+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 16:11:35 systemd[1]: lxd.service: Control process exited, code=killed, status=15/TERM
mar 12 16:12:05 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 16:12:05 systemd[1]: lxd.service: Killing process 3202 (lxd) with signal SIGKILL.
mar 12 16:12:05 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 16:12:05 systemd[1]: lxd.service: Failed with result 'signal'.
mar 12 16:12:05 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 16:12:05 systemd[1]: lxd.service: Consumed 1.712s CPU time.
mar 12 16:12:58 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:12:58 lxd[3741]: time="2023-03-12T16:12:58+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:12:58 lxd[3741]: time="2023-03-12T16:12:58+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:12:58 lxd[3741]: time="2023-03-12T16:12:58+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:12:58 lxd[3741]: time="2023-03-12T16:12:58+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 16:22:58 systemd[1]: lxd.service: start-post operation timed out. Terminating.
mar 12 16:22:58 systemd[1]: lxd.service: Control process exited, code=killed, status=15/TERM
mar 12 16:23:28 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 16:23:28 systemd[1]: lxd.service: Killing process 3741 (lxd) with signal SIGKILL.
mar 12 16:23:28 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 16:23:28 systemd[1]: lxd.service: Failed with result 'timeout'.
mar 12 16:23:28 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 16:23:28 systemd[1]: lxd.service: Consumed 1.786s CPU time.
mar 12 16:23:28 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 1.
mar 12 16:23:28 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 16:23:28 systemd[1]: lxd.service: Consumed 1.786s CPU time.
mar 12 16:23:28 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:23:29 lxd[4216]: time="2023-03-12T16:23:29+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:23:29 lxd[4216]: time="2023-03-12T16:23:29+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:23:29 lxd[4216]: time="2023-03-12T16:23:29+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:23:29 lxd[4216]: time="2023-03-12T16:23:29+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 16:33:29 lxd[4217]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 16:33:29 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 16:33:59 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 16:33:59 systemd[1]: lxd.service: Killing process 4216 (lxd) with signal SIGKILL.
mar 12 16:33:59 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 16:33:59 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 16:33:59 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 16:33:59 systemd[1]: lxd.service: Consumed 1.885s CPU time.
mar 12 16:33:59 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 2.
mar 12 16:33:59 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 16:33:59 systemd[1]: lxd.service: Consumed 1.885s CPU time.
mar 12 16:33:59 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:33:59 lxd[4508]: time="2023-03-12T16:33:59+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:33:59 lxd[4508]: time="2023-03-12T16:33:59+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:33:59 lxd[4508]: time="2023-03-12T16:33:59+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:33:59 lxd[4508]: time="2023-03-12T16:33:59+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 16:38:47 systemd[1]: lxd.service: Control process exited, code=killed, status=15/TERM
mar 12 16:39:18 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 16:39:18 systemd[1]: lxd.service: Killing process 4508 (lxd) with signal SIGKILL.
mar 12 16:39:18 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 16:39:18 systemd[1]: lxd.service: Failed with result 'signal'.
mar 12 16:39:18 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 16:39:18 systemd[1]: lxd.service: Consumed 1.673s CPU time.
mar 12 16:40:03 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:40:03 lxd[5024]: time="2023-03-12T16:40:03+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:40:03 lxd[5024]: time="2023-03-12T16:40:03+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:40:03 lxd[5024]: time="2023-03-12T16:40:03+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:40:03 lxd[5024]: time="2023-03-12T16:40:03+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 16:50:03 lxd[5025]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 16:50:03 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 16:50:33 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 16:50:33 systemd[1]: lxd.service: Killing process 5024 (lxd) with signal SIGKILL.
mar 12 16:50:33 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 16:50:33 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 16:50:33 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 16:50:33 systemd[1]: lxd.service: Consumed 1.753s CPU time.
mar 12 16:50:33 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 1.
mar 12 16:50:33 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 16:50:33 systemd[1]: lxd.service: Consumed 1.753s CPU time.
mar 12 16:50:33 systemd[1]: Starting LXD Container Hypervisor...
mar 12 16:50:33 lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 16:50:33 lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 16:50:33 lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 16:50:33 lxd[5163]: time="2023-03-12T16:50:33+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 17:00:33 lxd[5164]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 17:00:33 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 17:01:03 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 17:01:03 systemd[1]: lxd.service: Killing process 5163 (lxd) with signal SIGKILL.
mar 12 17:01:03 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 17:01:03 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 17:01:03 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 17:01:03 systemd[1]: lxd.service: Consumed 1.823s CPU time.
mar 12 17:01:04 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 2.
mar 12 17:01:04 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 17:01:04 systemd[1]: lxd.service: Consumed 1.823s CPU time.
mar 12 17:01:04 systemd[1]: Starting LXD Container Hypervisor...
mar 12 17:01:04 lxd[5327]: time="2023-03-12T17:01:04+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 17:01:04 lxd[5327]: time="2023-03-12T17:01:04+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 17:01:04 lxd[5327]: time="2023-03-12T17:01:04+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 17:01:04 lxd[5327]: time="2023-03-12T17:01:04+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 17:11:04 lxd[5328]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 17:11:04 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 17:11:34 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 17:11:34 systemd[1]: lxd.service: Killing process 5327 (lxd) with signal SIGKILL.
mar 12 17:11:34 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 17:11:34 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 17:11:34 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 17:11:34 systemd[1]: lxd.service: Consumed 1.784s CPU time.
mar 12 17:11:34 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 3.
mar 12 17:11:34 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 17:11:34 systemd[1]: lxd.service: Consumed 1.784s CPU time.
mar 12 17:11:34 systemd[1]: Starting LXD Container Hypervisor...
mar 12 17:11:34 lxd[5595]: time="2023-03-12T17:11:34+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 17:11:34 lxd[5595]: time="2023-03-12T17:11:34+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 17:11:34 lxd[5595]: time="2023-03-12T17:11:34+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 17:11:34 lxd[5595]: time="2023-03-12T17:11:34+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 17:21:34 lxd[5596]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 17:21:34 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 17:22:04 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 17:22:04 systemd[1]: lxd.service: Killing process 5595 (lxd) with signal SIGKILL.
mar 12 17:22:04 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 17:22:04 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 17:22:04 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 17:22:04 systemd[1]: lxd.service: Consumed 1.858s CPU time.
mar 12 17:22:05 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 4.
mar 12 17:22:05 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 17:22:05 systemd[1]: lxd.service: Consumed 1.858s CPU time.
mar 12 17:22:05 systemd[1]: Starting LXD Container Hypervisor...
mar 12 17:22:05 lxd[5726]: time="2023-03-12T17:22:05+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 17:22:05 lxd[5726]: time="2023-03-12T17:22:05+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 17:22:05 lxd[5726]: time="2023-03-12T17:22:05+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 17:22:05 lxd[5726]: time="2023-03-12T17:22:05+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 17:32:05 lxd[5727]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 17:32:05 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 17:32:35 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 17:32:35 systemd[1]: lxd.service: Killing process 5726 (lxd) with signal SIGKILL.
mar 12 17:32:35 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 17:32:35 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 17:32:35 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 17:32:35 systemd[1]: lxd.service: Consumed 1.805s CPU time.
mar 12 17:32:35 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 5.
mar 12 17:32:35 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 17:32:35 systemd[1]: lxd.service: Consumed 1.805s CPU time.
mar 12 17:32:35 systemd[1]: Starting LXD Container Hypervisor...
mar 12 17:32:35 lxd[5897]: time="2023-03-12T17:32:35+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 17:32:35 lxd[5897]: time="2023-03-12T17:32:35+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 17:32:35 lxd[5897]: time="2023-03-12T17:32:35+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 17:32:35 lxd[5897]: time="2023-03-12T17:32:35+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"
mar 12 17:42:35 lxd[5898]: Error: LXD still not running after 600s timeout (<nil>)
mar 12 17:42:35 systemd[1]: lxd.service: Control process exited, code=exited, status=1/FAILURE
mar 12 17:43:05 systemd[1]: lxd.service: State 'stop-sigterm' timed out. Killing.
mar 12 17:43:05 systemd[1]: lxd.service: Killing process 5897 (lxd) with signal SIGKILL.
mar 12 17:43:05 systemd[1]: lxd.service: Main process exited, code=killed, status=9/KILL
mar 12 17:43:05 systemd[1]: lxd.service: Failed with result 'exit-code'.
mar 12 17:43:05 systemd[1]: Failed to start LXD Container Hypervisor.
mar 12 17:43:05 systemd[1]: lxd.service: Consumed 1.781s CPU time.
mar 12 17:43:06 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 6.
mar 12 17:43:06 systemd[1]: Stopped LXD Container Hypervisor.
mar 12 17:43:06 systemd[1]: lxd.service: Consumed 1.781s CPU time.
mar 12 17:43:06 systemd[1]: Starting LXD Container Hypervisor...
mar 12 17:43:06 lxd[6008]: time="2023-03-12T17:43:06+01:00" level=warning msg="AppArmor support has been disabled because of lack of kernel support"
mar 12 17:43:06 lxd[6008]: time="2023-03-12T17:43:06+01:00" level=warning msg=" - AppArmor support has been disabled, Disabled because of lack of kernel support"
mar 12 17:43:06 lxd[6008]: time="2023-03-12T17:43:06+01:00" level=warning msg=" - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored"
mar 12 17:43:06 lxd[6008]: time="2023-03-12T17:43:06+01:00" level=warning msg=" - Couldn't find the CGroup network priority controller, network priority will be ignored"

Unfortunately there is not much to go on.

This seems to be the only real error send form lxd.

This is from systemd, but indicates that the lxd process itself exited with an error. Also there is always some time between the startup warnings and the time the service is stopped. But not always 10 minutes.

A simple internet search lists multiple causes why this might happens, it might be everything. I did a try on an up to date Manjaro with Kernel 5.15 and lxd worked without a problem. So it might be specific to your system and configuration.

Ok. Thank you.

Yes, it was working fine. Maybe I can get a solution from the LXD forum.

Thank you again.