新创建的特权模式LXC无法显示console
已发现的情况:archlinux-base_20240911-1_amd64模板创建出的LXC在使用privileged启动(即unprivileged container = No,不勾选)时无法显示console。根据帖子new-privileged-container-no-console所说,使用ubuntu-24.10-standard_24.10-1_amd64也会遇到这个情况,解决方法是在这个LXC的Options -> Features中勾选nesting。
但是有人提出debian-12-standard_12.7-1_amd64可以在nesting关闭时正常工作。
帖子提到的版本号为8.2.7,我的版本为8.4.9。
新创建的fedora-42-default_20250428_amd64无法显示console
根据贴子Fedora 42 LXC fails to boot due to systemd-homed-firstboot.service misconfiguration所说,和systemd-firstboot有关,是由于systemd没有完整启动导致的。其bug报告的回复表示正实现一种绕过firstboot的方式,或许对此bug的修复有用。
目前最简单的解决方案
在创建LXC时选择使用debian。