![Fedora 31 LXC 服务启动失败“无法启动 LXC 的 FUSE 文件系统”](https://linux22.com/image/757960/Fedora%2031%20LXC%20%E6%9C%8D%E5%8A%A1%E5%90%AF%E5%8A%A8%E5%A4%B1%E8%B4%A5%E2%80%9C%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8%20LXC%20%E7%9A%84%20FUSE%20%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E2%80%9D.png)
我正在尝试在 Fedora Desktop 工作站上为测试环境设置 LXD 系统,但由于依赖服务 LXC 失败,LXD 服务无法启动。尝试启动后,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/但现在我陷入了服务启动失败的困境。我做错了什么?
答案1
您确实需要 lxcfs 服务吗?卸载它如何?
如果你确实需要该服务,那么你应该关注它为什么不起作用。检查以下命令的输出:
journalctl -u lxcfs.service
systemctl cat lxcfs.service
在 [Service] 部分中查找 ExecStart 选项并尝试手动运行该命令。屏幕上是否显示任何错误?
问候,