The Ubuntu nfs-kernel-server package installs an init script in /etc/init.d/nfs-kernel-server that checks the kernel for a certain ksym to determine if the kernel has NFS support compiled in. Rackspace Cloud Servers use a custom kernel that does not include that particular ksym, however NFS functionality is fully supported.

To enable NFS with Ubuntu on a Cloud Server you’ll need to edit /etc/init.d/nfs-kernel-server and remove or comment out the following lines:

# See if our running kernel supports the NFS kernel server
if [ -f /proc/kallsyms ] && ! grep -qE ' nfsd_serv      ' /proc/kallsyms; then
        log_warning_msg "Not starting $DESC: no support in current kernel."
        exit 0
fi

After this, start NFS as normal: sudo /etc/init.d/nfs-kernel-server and everything should work properly.

« »