Hi,
Mother is CEntos 7 with kernel 3.10.0.
Container with Centos is working.
Container with Ubuntu not. It doesn’t get IP , poweroff doesn’t work.
I’ve done:
Configure the kernel
grubby --args=“user_namespace.enable=1” --update-kernel="$(grubby --default-kernel)"
grubby --args=“namespace.unpriv_enable=1” --update-kernel="$(grubby --default-kernel)"
echo “user.max_user_namespaces=3883” > /etc/sysctl.d/99-userns.conf
reboot
Storage is LVM.
Log from console is following:
root@fh1/boot/grub2# lxc console ubuntu22 --show-log
Console log:
systemd 251.4-1ubuntu7.1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
Detected virtualization lxc.
Detected architecture x86-64.
Warning! Reported kernel version 3.10.0-1160.81.1.el7.x86_64 is older than systemd’s required baseline kernel version 4.15. Your mileage may vary.
Failed to create symlink /sys/fs/cgroup/net_cls: File exists
Failed to create symlink /sys/fs/cgroup/cpu: File exists
Welcome to Ubuntu 22.10!
Initializing machine ID from random generator.
Couldn’t move remaining userspace processes, ignoring: Invalid argument
Queued start job for default target Graphical Interface.
-.slice: Failed to migrate controller cgroups from /lxc.payload.ubuntu22, ignoring: Invalid argument
system.slice: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice, ignoring: Invalid argument
system-modprobe.slice: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/system-modprobe.slice, ignoring: Invalid argument
[ OK ] Created slice Slice /system/modprobe.
user.slice: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/user.slice, ignoring: Invalid argument
[ OK ] Created slice User and Session Slice.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[UNSUPP] Starting of Arbitrary Executable Fi…ystem Automount Point unsupported.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Local Integrity Protected Volumes.
[ OK ] Reached target Path Units.
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Slice Units.
[ OK ] Reached target Swaps.
[ OK ] Reached target Local Verity Protected Volumes.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Reached target Socket Units.
systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)
systemd-journald.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/systemd-journald.service, ignoring: Invalid argument
Starting Journal Service…
keyboard-setup.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/keyboard-setup.service, ignoring: Invalid argument
Starting Set the console keyboard layout…
modprobe@configfs.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/system-modprobe.slice/modprobe@configfs.service, ignoring: Invalid argument
Starting Load Kernel Module configfs…
modprobe@drm.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/system-modprobe.slice/modprobe@drm.service, ignoring: Invalid argument
Starting Load Kernel Module drm…
modprobe@fuse.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/system-modprobe.slice/modprobe@fuse.service, ignoring: Invalid argument
Starting Load Kernel Module fuse…
systemd-network-generator.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/systemd-network-generator.service, ignoring: Invalid argument
Starting Generate network units from Kernel command line…
systemd-remount-fs.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/systemd-remount-fs.service, ignoring: Invalid argument
Starting Remount Root and Kernel File Systems…
systemd-sysctl.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/systemd-sysctl.service, ignoring: Invalid argument
Starting Apply Kernel Variables…
systemd-udev-trigger.service: Failed to migrate controller cgroups from /lxc.payload.ubuntu22/system.slice/systemd-udev-trigger.service, ignoring: Invalid argument
Starting Coldplug All udev Devices…
[ OK ] Started Journal Service.
[ OK ] Finished Set the console keyboard layout.
[ OK ] Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module drm.
[ OK ] Finished Load Kernel Module fuse.
[ OK ] Finished Generate network units from Kernel command line.
[ OK ] Finished Remount Root and Kernel File Systems.
Could you help ?
Thanks.