Hello,
when creating a LXC container on Proxmox using the Proxmox supplied Fedora 42 template, no Console session will work by default and the system will not fully boot up.
The affected versions are:
This happens due to systemd not fully starting up and thus not configuring the necessary getty instances.
Systemd doesn't start up fully, because the Fedora LXC template is configured to run a firstboot assistant in the console. This can be revealed using lxc-start -F:
The firstboot assistant continues after filling out the information on the default console. After completing up, subsequent LXC starts work as expected with systemd fully starting up and their console session appearing.
The Fedora 42 LXC image should be fixed to not have the firstboot process enabled (I believe this is due to systemd-homed-firstboot.service being enabled).
when creating a LXC container on Proxmox using the Proxmox supplied Fedora 42 template, no Console session will work by default and the system will not fully boot up.
The affected versions are:
Code:
pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve)
Code:
fedora-42-default_20250428_amd64.tar.xz
This happens due to systemd not fully starting up and thus not configuring the necessary getty instances.
Systemd doesn't start up fully, because the Fedora LXC template is configured to run a firstboot assistant in the console. This can be revealed using lxc-start -F:
Code:
root@pve01:~# /usr/bin/lxc-start -F 104
systemd 257.5-2.fc42 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +IPE +SMACK +SECCOMP -GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF +XKBCOMMON +UTMP +SYSVINIT +LIBARCHIVE)
Detected virtualization lxc.
Detected architecture x86-64.
Detected first boot.
Welcome to Fedora Linux 42 (Container Image)!
Initializing machine ID from random generator.
bpf-restrict-fs: BPF LSM hook not enabled in the kernel, BPF LSM not supported.
Failed to populate /etc with preset unit settings, ignoring: File exists
Queued start job for default target graphical.target.
[ OK ] Created slice system-container\x2dgetty.slice - Slice /system/container-getty.
[ OK ] Created slice system-modprobe.slice - Slice /system/modprobe.
[ OK ] Created slice user.slice - User and Session Slice.
[ OK ] Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[ OK ] Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[ OK ] Reached target cryptsetup.target - Local Encrypted Volumes.
[ OK ] Reached target integritysetup.target - Local Integrity Protected Volumes.
[ OK ] Reached target paths.target - Path Units.
[ OK ] Reached target remote-cryptsetup.target - Remote Encrypted Volumes.
[ OK ] Reached target remote-fs.target - Remote File Systems.
[ OK ] Reached target remote-veritysetup.target - Remote Verity Protected Volumes.
[ OK ] Reached target slices.target - Slice Units.
[ OK ] Reached target swap.target - Swaps.
[ OK ] Reached target veritysetup.target - Local Verity Protected Volumes.
[ OK ] Listening on systemd-coredump.socket - Process Core Dump Socket.
[ OK ] Listening on systemd-creds.socket - Credential Encryption/Decryption.
[ OK ] Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[ OK ] Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[ OK ] Listening on systemd-journald.socket - Journal Sockets.
[ OK ] Listening on systemd-networkd.socket - Network Service Netlink Socket.
[ OK ] Listening on systemd-oomd.socket - Userspace Out-Of-Memory (OOM) Killer Socket.
[ OK ] Listening on systemd-userdbd.socket - User Database Manager Socket.
Mounting dev-mqueue.mount - POSIX Message Queue File System...
Mounting proc-sys-fs-binfmt_misc.mount - Arbitrary Executable File Formats File System...
sys-kernel-debug.mount: Failed to check directory /sys/kernel/debug: Permission denied
Mounting sys-kernel-debug.mount - Kernel Debug File System...
Mounting tmp.mount - Temporary Directory /tmp...
Starting modprobe@configfs.service - Load Kernel Module configfs...
Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
Starting modprobe@drm.service - Load Kernel Module drm...
Starting modprobe@fuse.service - Load Kernel Module fuse...
Starting modprobe@loop.service - Load Kernel Module loop...
Starting systemd-journald.service - Journal Service...
Starting systemd-network-generator.service - Generate network units from Kernel command line...
Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
Starting systemd-sysctl.service - Apply Kernel Variables...
Starting systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully...
Starting systemd-udev-load-credentials.service - Load udev Rules from Credentials...
[ OK ] Mounted dev-mqueue.mount - POSIX Message Queue File System.
[ OK ] Mounted proc-sys-fs-binfmt_misc.mount - Arbitrary Executable File Formats File System.
sys-kernel-debug.mount: Mount process exited, code=exited, status=32/n/a
sys-kernel-debug.mount: Failed with result 'exit-code'.
[FAILED] Failed to mount sys-kernel-debug.mount - Kernel Debug File System.
See 'systemctl status sys-kernel-debug.mount' for details.
[ OK ] Mounted tmp.mount - Temporary Directory /tmp.
modprobe@configfs.service: Deactivated successfully.
[ OK ] Finished modprobe@configfs.service - Load Kernel Module configfs.
modprobe@dm_mod.service: Deactivated successfully.
[ OK ] Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
modprobe@drm.service: Deactivated successfully.
[ OK ] Finished modprobe@drm.service - Load Kernel Module drm.
modprobe@fuse.service: Deactivated successfully.
[ OK ] Finished modprobe@fuse.service - Load Kernel Module fuse.
modprobe@loop.service: Deactivated successfully.
[ OK ] Finished modprobe@loop.service - Load Kernel Module loop.
[ OK ] Finished systemd-network-generator.service - Generate network units from Kernel command line.
[ OK ] Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
[ OK ] Finished systemd-sysctl.service - Apply Kernel Variables.
[ OK ] Reached target network-pre.target - Preparation for Network.
Mounting sys-kernel-config.mount - Kernel Configuration File System...
Starting systemd-userdbd.service - User Database Manager...
[ OK ] Finished systemd-udev-load-credentials.service - Load udev Rules from Credentials.
sys-kernel-config.mount: Mount process exited, code=exited, status=32/n/a
sys-kernel-config.mount: Failed with result 'exit-code'.
[FAILED] Failed to mount sys-kernel-config.mount - Kernel Configuration File System.
See 'systemctl status sys-kernel-config.mount' for details.
[ OK ] Started systemd-journald.service - Journal Service.
Starting systemd-journal-flush.service - Flush Journal to Persistent Storage...
[ OK ] Finished systemd-journal-flush.service - Flush Journal to Persistent Storage.
[ OK ] Started systemd-userdbd.service - User Database Manager.
[ OK ] Finished systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully.
Starting systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev...
[ OK ] Finished systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
[ OK ] Reached target local-fs-pre.target - Preparation for Local File Systems.
[ OK ] Reached target local-fs.target - Local File Systems.
[ OK ] Listening on systemd-bootctl.socket - Boot Entries Service Socket.
[ OK ] Listening on systemd-sysext.socket - System Extension Image Management.
Starting systemd-boot-update.service - Automatic Boot Loader Update...
Starting systemd-tmpfiles-setup.service - Create System Files and Directories...
Starting systemd-networkd.service - Network Configuration...
[ OK ] Finished systemd-boot-update.service - Automatic Boot Loader Update.
[ OK ] Started systemd-networkd.service - Network Configuration.
Starting systemd-networkd-persistent-storage.servi…- Enable Persistent Storage in systemd-networkd...
Starting systemd-networkd-wait-online.service - Wait for Network to be Configured...
[ OK ] Finished systemd-tmpfiles-setup.service - Create System Files and Directories.
Starting systemd-oomd.service - Userspace Out-Of-Memory (OOM) Killer...
Starting systemd-resolved.service - Network Name Resolution...
[ OK ] Reached target time-set.target - System Time Set.
[ OK ] Reached target time-sync.target - System Time Synchronized.
Starting systemd-update-utmp.service - Record System Boot/Shutdown in UTMP...
[ OK ] Finished systemd-networkd-persistent-storage.service - Enable Persistent Storage in systemd-networkd.
[ OK ] Finished systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.
[ OK ] Started systemd-oomd.service - Userspace Out-Of-Memory (OOM) Killer.
[ OK ] Started systemd-resolved.service - Network Name Resolution.
[ OK ] Reached target network.target - Network.
[ OK ] Reached target nss-lookup.target - Host and Network Name Lookups.
[ OK ] Reached target sysinit.target - System Initialization.
[ OK ] Started dnf-makecache.timer - dnf5 makecache.
[ OK ] Started systemd-tmpfiles-clean.timer - Daily Cleanup of Temporary Directories.
[ OK ] Reached target timers.target - Timer Units.
[ OK ] Listening on dbus.socket - D-Bus System Message Bus Socket.
[ OK ] Listening on systemd-hostnamed.socket - Hostname Service Socket.
[ OK ] Reached target sockets.target - Socket Units.
[ OK ] Reached target basic.target - Basic System.
Starting systemd-homed.service - Home Area Manager...
Starting systemd-logind.service - User Login Management...
Starting dbus-broker.service - D-Bus System Message Bus...
[ OK ] Started dbus-broker.service - D-Bus System Message Bus.
[ OK ] Started systemd-homed.service - Home Area Manager.
[ OK ] Finished systemd-homed-activate.service - Home Area Activation.
Starting systemd-homed-firstboot.service - First Boot Home Area Wizard...
[ OK ] Started systemd-logind.service - User Login Management.
-- Press any key to proceed --
[ OK ] Finished systemd-networkd-wait-online.service - Wait for Network to be Configured.
[ OK ] Reached target network-online.target - Network is Online.
‣ Please enter user name to create (empty to skip):
The firstboot assistant continues after filling out the information on the default console. After completing up, subsequent LXC starts work as expected with systemd fully starting up and their console session appearing.
The Fedora 42 LXC image should be fixed to not have the firstboot process enabled (I believe this is due to systemd-homed-firstboot.service being enabled).