I have an Ubuntu 10.04 install running in VirtualBox and when I try to run the setup.sh script it fails in the nfs-kernel-server script. All it shows in the terminal window is that it failed, but in the daemon.log file I have a list of entries like this.
May 25 12:57:46 brian-desktop nfsd[7601]: nfssvc: writing fds to kernel failed: errno 13 (Permission denied)
May 25 12:57:46 brian-desktop nfsd[7601]: nfssvc: writing fds to kernel failed: errno 13 (Permission denied)
May 25 12:57:46 brian-desktop portmap[7605]: connect from 192.168.1.65 to set(nfs): request from non-local host
May 25 12:57:46 brian-desktop portmap[7604]: connect from 192.168.1.65 to unset(nfs): request from non-local host
May 25 12:57:46 brian-desktop portmap[7606]: connect from 192.168.1.65 to set(nfs): request from non-local host
May 25 12:57:46 brian-desktop nfsd[7601]: nfssvc: Address already in use
May 25 12:57:46 brian-desktop portmap[7603]: connect from 192.168.1.65 to unset(nfs): request from non-local host
May 25 12:57:46 brian-desktop portmap[7608]: connect from 192.168.1.65 to unset(nfs): request from non-local host
May 25 12:57:46 brian-desktop portmap[7609]: connect from 192.168.1.65 to unset(nfs): request from non-local host
May 25 12:57:46 brian-desktop portmap[7610]: connect from 192.168.1.65 to unset(nfs): request from non-local host
May 25 12:57:46 brian-desktop portmap[7602]: connect from 192.168.1.65 to unset(nfs): request from non-local host
I don't know why I get permission denied, and I don't know anything about NFS.
I am running the setup script with the following command in a terminal window
sudo ./setup.sh
or, I can start up a terminal window with root permission already and run the script and get the same error.