Apparently zfs will not run in an lxc/lxd container because of kernel restrictions. See solution in https://discuss.linuxcontainers.org/t/can-i-install-zfs-in-ubuntu-20-04-or-22-04-containers/14725/4
I suggest that the zfsutils / zfs-linux package should give an incompatibility warning when an installation is attempted within an lxc container.
Apparently zfs will not run in an lxc/lxd container because of kernel restrictions. See solution in https:/ /discuss. linuxcontainers .org/t/ can-i-install- zfs-in- ubuntu- 20-04-or- 22-04-container s/14725/ 4
I suggest that the zfsutils / zfs-linux package should give an incompatibility warning when an installation is attempted within an lxc container.