Dbus Issue On CentOS 7 As A Lxc Container

Home » CentOS » Dbus Issue On CentOS 7 As A Lxc Container
CentOS No Comments

Hi, dbus on CentOS 7 lxc won’t work.

So I’m unable to start or query status units with systemd, for example:

systemctl status Failed to get D-Bus connection: No such file or directory

I have no issues with CentOS 8 container (debian 10 ones work fine too)
This is the output of ps aux on CentOS 7:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 42712 3860 ? Ss 20:11 0:00
/lib/systemd/systemd systemd.unified_cgroup_hierarchy=1
root 2 0.0 0.0 11840 3052 ? Ss 20:12 0:00 /bin/bash root 28 0.0 0.0 51772 3548 ? R+ 20:19 0:00 ps aux

On CentOS 8 instead:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 241980 5320 ? Ss Oct06 0:01
/lib/systemd/systemd systemd.unified_cgroup_hierarchy=1
root 17 0.0 0.0 93944 5552 ? Ss Oct06 0:00
/usr/lib/systemd/systemd-journald root 22 0.0 0.0 97164 2892 ? Ss Oct06 0:00
/usr/lib/systemd/systemd-udevd root 34 0.0 0.0 85920 5252 ? Ss Oct06 0:00
/usr/lib/systemd/systemd-logind dbus 35 0.0 0.0 54108 2312 ? Ss Oct06 0:00
/usr/bin/dbus-daemon –system –address=systemd: –nofork –nopidfile
–systemd-activat ion –syslog-only root 37 0.0 0.0 368376 7076 ? Ssl Oct06 0:03
/usr/sbin/NetworkManager –no-daemon root 42 0.0 0.0 78536 4124 ? Ss Oct06 0:00
/usr/sbin/sshd -D
-oCiphers