我试图在Fedora工作站上设置用于测试环境的LXD系统,但是LXD服务由于依赖服务LXC失败而无法启动。在尝试启动sudo systemctl start lxd.service之后,journalctl -xe给出的错误消息是:
Sep 25 09:51:52 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295
ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=lxcfs comm="systemd"
exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succ>
Sep 25 09:51:52 localhost.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295
ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=lxcfs comm="systemd"
exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succe>
Sep 25 09:51:52 localhost.localdomain systemd[1]: lxcfs.service: Start request repeated too quickly.
Sep 25 09:51:52 localhost.localdomain systemd[1]: lxcfs.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit lxcfs.service has entered the 'failed' state with result 'exit-code'.
Sep 25 09:51:52 localhost.localdomain systemd[1]: Failed to start FUSE filesystem for LXC.
-- Subject: A start job for unit lxcfs.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit lxcfs.service has finished with a failure.
--
-- The job identifier is 6287 and the job result is failed.
Sep 25 09:51:52 localhost.localdomain systemd[1]: Dependency failed for LXD - main daemon.
-- Subject: A start job for unit lxd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit lxd.service has finished with a failure.
--
-- The job identifier is 6394 and the job result is dependency.
Sep 25 09:51:52 localhost.localdomain systemd[1]: lxd.service: Job lxd.service/start failed with result 'dependency'.我对这件事很困惑。到目前为止,我一直遵循以下安装和配置步骤:https://copr.fedorainfracloud.org/coprs/ganto/lxc3/,但现在我陷入了服务启动失败的境地。我做错了什么?
发布于 2020-10-09 09:02:00
您真的需要lxcfs服务吗?卸载它怎么样?
如果你确实需要这种服务,你应该关注为什么它不起作用。检查这些命令的输出:
journalctl -u lxcfs.service
systemctl cat lxcfs.service在ExecStart部分中查找服务选项,然后尝试手动运行该命令。它显示屏幕上有什么错误吗?
致以敬意,
https://serverfault.com/questions/1035325
复制相似问题