During a recent virgin setup of LXD for ffs stage1 development and using the Funtoo wiki guide on Funtoo next, I ran into issues with lxcfs not working:
lxc ffs-root-arm-64bit-gnu-test 20221021202123.257 ERROR conf - ../lxc-5.0.1/src/lxc/conf.c:lxc_storage_prepare:506 - No such file or directory - Failed to access to "/var/lib/lxc/rootfs". Check it is present lxc ffs-root-arm-64bit-gnu-test 20221021202123.257 ERROR conf - ../lxc-5.0.1/src/lxc/conf.c:lxc_rootfs_init:541 - Invalid argument - Failed to prepare rootfs storage lxc ffs-root-arm-64bit-gnu-test 20221021202123.257 ERROR start - ../lxc-5.0.1/src/lxc/start.c:__lxc_start:2079 - Failed to handle rootfs pinning for container "ffs-root-arm-64bit-gnu-test"
The tested reason for this is lxcfs 5.0.0 is hard masked but lxd 5.0.1 and beyond is not. Because of package scenario and the LXD install was completely on a fresh system, lxcfs-4.0.12 was install alongside LXD 5.6. To resolve this issue I had to uninstall everything related to LXD, reinstall with lxcfs-5.0.0, and re-init LXD
The fix is to simple unmasked lxdfs-5.0.0
- relates to
-
FL-10674 LXD stabilization and improve
- Ongoing