* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
@ 2024-01-24 18:01 ` sbromberger
2024-01-24 18:14 ` sbromberger
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sbromberger @ 2024-01-24 18:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1712 bytes --]
New comment by sbromberger on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1908655220
Comment:
Ah, I found some logs in /var/log/incus/testub:
Excerpt from `lxc.log`:
```
lxc testub 20240124172933.916 INFO conf - ../src/lxc/conf.c:setup_personality:1917 - Set personality to "0lx0"
lxc testub 20240124172933.917 NOTICE conf - ../src/lxc/conf.c:lxc_setup:4469 - The container "testub" is set up
lxc testub 20240124172933.918 NOTICE start - ../src/lxc/start.c:start:2194 - Exec'ing "/sbin/init"
lxc testub 20240124172933.921 NOTICE start - ../src/lxc/start.c:post_start:2205 - Started "/sbin/init" with pid "15889"
lxc testub 20240124172933.921 NOTICE start - ../src/lxc/start.c:signal_handler:446 - Received 17 from pid 15890 instead of container init 15889
lxc testub 20240124172933.978 INFO error - ../src/lxc/error.c:lxc_error_set_and_log:31 - Child <15889> ended on error (255)
lxc testub 20240124172933.995 INFO conf - ../src/lxc/conf.c:run_script_argv:340 - Executing script "/usr/libexec/incus/incusd callhook /var/lib/incus "default" "testub" stopns" for container "testub"
lxc testub 20240124172934.129 INFO conf - ../src/lxc/conf.c:lxc_map_ids:3603 - Caller maps host root. Writing mapping directly
lxc testub 20240124172934.130 NOTICE utils - ../src/lxc/utils.c:lxc_drop_groups:1368 - Dropped supplimentary groups
lxc testub 20240124172934.147 INFO conf - ../src/lxc/conf.c:run_script_argv:340 - Executing script "/usr/libexec/incus/incusd callhook /var/lib/incus "default" "testub" stop" for container "testub"
```
Full log here: https://gist.github.com/sbromberger/b05b018f3df1192a0a6bada49d8be1e8
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
2024-01-24 18:01 ` sbromberger
@ 2024-01-24 18:14 ` sbromberger
2024-01-24 19:41 ` CameronNemo
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sbromberger @ 2024-01-24 18:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
New comment by sbromberger on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1908674180
Comment:
I found these logs in `console.log` on another image as well:
```
Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted
[!!!!!!] Failed to mount API filesystems.
Exiting PID 1...
```
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
2024-01-24 18:01 ` sbromberger
2024-01-24 18:14 ` sbromberger
@ 2024-01-24 19:41 ` CameronNemo
2024-02-27 21:07 ` BikyAlex
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: CameronNemo @ 2024-01-24 19:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1908800084
Comment:
As mentioned in the PR, does this happen with the unified cgroup mode i.e. a cgroup2-only setup?
The latest systemd release actually deprecated cgroup v1 support, and it will be removed in a future systemd release:
> * We intend to remove cgroup v1 support from a systemd release after
> the end of 2023. If you run services that make explicit use of
> cgroup v1 features (i.e. the "legacy hierarchy" with separate
> hierarchies for each controller), please implement compatibility with
> cgroup v2 (i.e. the "unified hierarchy") sooner rather than later.
> Most of Linux userspace has been ported over already.
https://github.com/systemd/systemd/releases/tag/v255
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
` (2 preceding siblings ...)
2024-01-24 19:41 ` CameronNemo
@ 2024-02-27 21:07 ` BikyAlex
2024-02-27 23:15 ` CameronNemo
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: BikyAlex @ 2024-02-27 21:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 768 bytes --]
New comment by BikyAlex on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1967590039
Comment:
Confirm this happens to other distros. I tested Debian and NixOS, both fail to start with the same operation not permitted / failed to mount API FS error.
I tested Incus on a NixOS host and there systemd distros launch fine. Not sure why this is an issue on Void alone.
Anyway, edited rc.conf and set "CGROUP_MODE=unified" and rebooted. Debian and NixOS start now. Not sure what's the point of keeping cgroup in hybrid by default in Void, if any other things depend on that.
Well, I'm happy I can use Incus with this workaround. I wanted to be able to run stuff on other distros in case there's no package in Void.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
` (3 preceding siblings ...)
2024-02-27 21:07 ` BikyAlex
@ 2024-02-27 23:15 ` CameronNemo
2024-02-27 23:18 ` classabbyamp
2024-02-28 2:01 ` CameronNemo
6 siblings, 0 replies; 8+ messages in thread
From: CameronNemo @ 2024-02-27 23:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1967885164
Comment:
@BikyAlex I am not entirely sure how to escalate the "let's move CGROUP_MODE to unified by default" pitch, but I definitely don't think anything really depends on the hybrid cgroups anymore. Except for perhaps older device kernels like rpi kernels?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
` (4 preceding siblings ...)
2024-02-27 23:15 ` CameronNemo
@ 2024-02-27 23:18 ` classabbyamp
2024-02-28 2:01 ` CameronNemo
6 siblings, 0 replies; 8+ messages in thread
From: classabbyamp @ 2024-02-27 23:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1967892009
Comment:
rpi kernels are on 6.1, not sure what the kconfig sets wrt cgroups though
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: incus images based on Ubuntu fail to start
2024-01-24 17:32 [ISSUE] incus images based on Ubuntu fail to start sbromberger
` (5 preceding siblings ...)
2024-02-27 23:18 ` classabbyamp
@ 2024-02-28 2:01 ` CameronNemo
6 siblings, 0 replies; 8+ messages in thread
From: CameronNemo @ 2024-02-28 2:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/issues/48356#issuecomment-1968052395
Comment:
@classabbyamp
void-linux/void-runit#103 would resolve this issue IMO
^ permalink raw reply [flat|nested] 8+ messages in thread