LXC container with NSF share service

entalpia

Member
Nov 17, 2019
1
0
6
41
Hi, I'm having an issue.
Following multiple tuts, I was trying to configure a NSF share on top of a container.
I've tried multiple distro (Debian, Ubuntu, CentOs), different distro versions (Debian 9/10 and Ubuntu 18/19) and I've also tried with a Web interfaces like Webmin, but anyway I got the same issue:

Code:
* nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2020-01-11 21:57:12 UTC; 48min ago
  Process: 141 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=1/FAILURE)
  Process: 139 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
Main PID: 141 (code=exited, status=1/FAILURE)

Jan 11 21:57:12 NFS systemd[1]: nfs-server.service: Failed to reset devices.list: Operation not permitted
Jan 11 21:57:12 NFS systemd[1]: Starting NFS server and services...
Jan 11 21:57:12 NFS rpc.nfsd[141]: error starting threads: errno 38 (Function not implemented)
Jan 11 21:57:12 NFS systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE
Jan 11 21:57:12 NFS systemd[1]: Failed to start NFS server and services.
Jan 11 21:57:12 NFS systemd[1]: nfs-server.service: Unit entered failed state.
Jan 11 21:57:12 NFS systemd[1]: nfs-server.service: Failed with result 'exit-code'.

I've used as references these posts: https://www.howtoforge.com/tutorial/how-to-configure-nfs-storage-in-proxmox-ve/ / https://forum.proxmox.com/threads/nfs-share-from-proxmox-host.20549/ / https://vitux.com/install-nfs-server-and-client-on-ubuntu/ / https://www.linode.com/docs/networking/nfs/how-to-mount-nfs-shares-on-debian-9/ / https://www.rosehosting.com/blog/how-to-install-webmin-on-centos-7/
And I'm using this version of Proxmox 5.4-3

what I'm doing wrong?
tnx
 
Hi,

Use instead Ganesha NFS server what is a user-space implementation of NFS.

sounds interesting. Actually i am trying to move some services from an old VM into a new Container, including a NFS-Server.
After reading your Post i set up a minimal Container with Debian 10 and nfs-ganesha for testing.
There is not much Information on how to configure a simple NFSv3 Export on the Internet.
I think i got the Export working with minimal settings, but the Container himself and also a external bare metal machine cant mount the export.
Are there Special Settings for the (unpriviliged Container), that i have to configure in Proxmox?

Would be nice to have some more details about nfs-ganesha in PVE Containers.

Thank you.
 
Are there Special Settings for the (unpriviliged Container), that i have to configure in Proxmox?
No extra settings needed. Ganesha is a userspace server.

What doe you use as backend and what are the fs in your container?
 
In your case, you can use as backend VFS what I would recommend or Lustre which is very complex to use.
You have to install the backend packages too Ganesha has not backend module included.
 
Hi Wolfgang,

In your case, you can use as backend VFS what I would recommend or Lustre which is very complex to use.
You have to install the backend packages too Ganesha has not backend module included.

ah, ok. Now i know what you mean. The Package nfs-ganesha-vfs is already installed, because otherwise ganesha didn't start.
But this didn't solve the Problem.

I activated Debug to see if my problem is the same as in the thread i posted.
And yes, it is. The error in the debuglog is "FSAL DEBUG :Failed with Operation not permitted openflags 0x00000020".

But setting the "lxc.seccomp.profile", as mentioned in the thread, did not change anything.

What can i do to get it running?

Do you have an example Config?

Thanks.
 
Hi again,

i tried installing latest nfs-ganesha from their project repository.
But the Problem is still the same.

Is there any chance to get this running in an unpriviliged container with zfs storage?

Best regards.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!