I have been researching and attempting this for a while now. Maybe it's impossible but I haven't given up completely.
What I want to accomplish is to create an LXC that does two things...NFS and TFTP server. I have a ZFS pool and a directory that successfully gets mounted inside my container and has rwx permissions.
I have only been testing on debian11 ct template but I can go back to 10 or 9 (really would like to stay current) if it is needed.
I want to do this with an unprivileged container and an apparmor profile (found a "default with nfsd" profile but it was back in proxmox5).
The closest I have gotten so far is the container has access to my ZFS pool directory and can r/w files to it. I cannot get the nfs-kernel-server to start. It keeps failing with "A dependency job for nfs-server.service failed" error.
Any ideas welcome. I feel I am close but not sure where to go next. Thanks.
What I want to accomplish is to create an LXC that does two things...NFS and TFTP server. I have a ZFS pool and a directory that successfully gets mounted inside my container and has rwx permissions.
I have only been testing on debian11 ct template but I can go back to 10 or 9 (really would like to stay current) if it is needed.
I want to do this with an unprivileged container and an apparmor profile (found a "default with nfsd" profile but it was back in proxmox5).
The closest I have gotten so far is the container has access to my ZFS pool directory and can r/w files to it. I cannot get the nfs-kernel-server to start. It keeps failing with "A dependency job for nfs-server.service failed" error.
Any ideas welcome. I feel I am close but not sure where to go next. Thanks.