Hi.
First, the answer I posted earlier was not objectively proved, so I deleted it.
@tomp and @stgraber container run kernel space based nfs servers?
To run nfs server in lxd container, use unfs3(user-space nfs server version 3).
Please refer to the two URLs below.
The unfs3 was tested in ubunt 20.04 container and centos 7.8 container.
It compiles on ubuntu but fails with a compile error on centos.
show the below picture.
I hope it help for you. Thank you @Makrand