我在OVH有一个kimsufi服务器,运行的是proxmox 2.3和ipfailover 当我启动服务器时,它就在网络上; 另一方面,如果我启动网络和/或apache2,我的容器CT OpenVZ debian 7会出错:
vzctl enter 100
/etc/init.d/networking restart
Restarting networking (via systemctl): networking.service Failed to get D-Bus connection: No such file or directory
/etc/init.d/apache2 restart
Restarting apache2 (via systemctl): apache2.serviceFailed to get D-Bus connection: No such file or directory
with ping google.com i have :
ping: unknown host google.com
您有个主意吗? 谢谢你的帮助
答案 0 :(得分:0)
Debian发行系统控制的操作系统。默认情况下,在容器中,PID-1上没有systemd守护程序。
旧的init脚本“ restart”被转发到“ systemctl restart”,并且systemctl想与systemd守护程序对话。这就是错误消息的来源。
解决方案应该是