I have a kubernetes cluster on one host where the master and the workers are on virtual machines. On another host, which is connected to the first through a local network, I have a virtual machine running an nfs server. Additionally, I have setup an ssh tunnel to the nfs server's host entry point. The command used is

ssh -fNv -L forwarded_port:localhost:2049 user@remote_host_ip

However, I get following error:

mount.nfs: requested NFS version or transport protocol is not supported

If I add the protocol tcp option to the mounting request, I get

mount.nfs: access denied by server while mounting localhost:/shared_folder

Does anyone understand this problem and know how to fix it?

  • NFS is a complex protocol. NFSv3, which I guess you use, needs also to forward a connection the the portmapper, statd, mountd and lockd (check with rpcinfo -p localhost on the server). I would recommend either switching to NFS4 and forget ssh or to use sshfs and forget NFS. – Piotr P. Karwasz Nov 24 '19 at 10:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.