On Tue, Apr 5, 2016 at 5:49 PM, John J. McDonough <wb8rcr(a)arrl.net> wrote:
I have a small server that offers a number of directories over NFS. I
am running a virtual machine on another physical machine.
When I try to mount an NFS directory on the VM, the NFS server
refuses, claiming a bad port. Successive tries result in different
reported port numbers.
What is going on? Is there some sort of virtio setting I am missing?
NFS works fine to the machine hosting the VM, but not to another
machine.
1) Do you have a route to the VM?
You can check with:
ip ro get ip_of_vm
If it doesn't exist, you can create it with:
ip ro add ip_of_vm/<prefix> via ip_of_vm_host dev eth0
or
route add -host ip_of_vm netmask <netmask> gw ip_of_vm_host eth0
2) Does the VM firewall allow nfs access?