Using Khadas official build of Ubuntu 22.04.1 Fenix 1.4 downloaded and installed from OOWOW
Installed NFS with
sudo apt install nfs-kernel-server
Found errors on install:
Unpacking nfs-kernel-server (1:2.6.1-1ubuntu1.2) …
Setting up rpcbind (1.2.6-2build1) …
Setting up nfs-common (1:2.6.1-1ubuntu1.2) …
auth-rpcgss-module.service is a disabled or a static unit not running, not starting it.
nfs-idmapd.service is a disabled or a static unit not running, not starting it.
nfs-utils.service is a disabled or a static unit not running, not starting it.
proc-fs-nfsd.mount is a disabled or a static unit not running, not starting it.
rpc-gssd.service is a disabled or a static unit not running, not starting it.
rpc-statd-notify.service is a disabled or a static unit not running, not starting it.
rpc-statd.service is a disabled or a static unit not running, not starting it.
rpc-svcgssd.service is a disabled or a static unit not running, not starting it.
rpc_pipefs.target is a disabled or a static unit not running, not starting it.
var-lib-nfs-rpc_pipefs.mount is a disabled or a static unit not running, not starting it.
Setting up nfs-kernel-server (1:2.6.1-1ubuntu1.2) …
nfs-mountd.service is a disabled or a static unit not running, not starting it.
nfsdcld.service is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
A dependency job for nfs-server.service failed. See ‘journalctl -xe’ for details.
invoke-rc.d: initscript nfs-kernel-server, action “restart” failed.
○ nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Mar 29 17:07:53 Khadas systemd[1]: Dependency failed for NFS server and services.
Mar 29 17:07:53 Khadas systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result ‘dependency’.
Mar 29 17:16:29 Khadas systemd[1]: Dependency failed for NFS server and services.
Mar 29 17:16:29 Khadas systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result ‘dependency’.
Mar 29 17:16:43 Khadas systemd[1]: Dependency failed for NFS server and services.
Mar 29 17:16:43 Khadas systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result ‘dependency’.
Mar 29 17:27:32 Khadas systemd[1]: Dependency failed for NFS server and services.
Mar 29 17:27:32 Khadas systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result ‘dependency’.
Mar 29 17:27:35 Khadas systemd[1]: Dependency failed for NFS server and services.
Mar 29 17:27:35 Khadas systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result ‘dependency’.
Failed to restart nfs-kernel-server, ignoring.
Processing triggers for man-db (2.10.2-1) …
When I look at journalctl -xe I see the following:
Mar 29 17:33:12 Khadas systemd[1]: proc-fs-nfsd.mount: Mount process exited, code=exited, status=32/n/a
Mar 29 17:33:12 Khadas systemd[1]: proc-fs-nfsd.mount: Failed with result ‘exit-code’.
Mar 29 17:33:12 Khadas systemd[1]: Failed to mount NFSD configuration filesystem.
Mar 29 17:33:12 Khadas systemd[1]: Dependency failed for NFS server and services.
Mar 29 17:33:12 Khadas systemd[1]: Dependency failed for NFSv4 ID-name mapping service.
Mar 29 17:33:12 Khadas systemd[1]: nfs-idmapd.service: Job nfs-idmapd.service/start failed with result ‘dependency’.
Mar 29 17:33:12 Khadas systemd[1]: Dependency failed for NFS Mount Daemon.
Mar 29 17:33:12 Khadas systemd[1]: nfs-mountd.service: Job nfs-mountd.service/start failed with result ‘dependency’.
Mar 29 17:33:12 Khadas systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result ‘dependency’.
Mar 29 17:33:12 Khadas systemd[1]: Dependency failed for NFSv4 Client Tracking Daemon.
Mar 29 17:33:12 Khadas systemd[1]: nfsdcld.service: Job nfsdcld.service/start failed with result ‘dependency’.
Mar 29 17:33:12 Khadas rpc.idmapd[3288]: exiting on signal 15
Mar 29 17:33:12 Khadas systemd[1]: Stopping NFSv4 ID-name mapping service…
Mar 29 17:33:12 Khadas systemd[1]: nfs-idmapd.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 17:33:12 Khadas systemd[1]: nfs-idmapd.service: Failed with result ‘exit-code’.
Mar 29 17:33:12 Khadas sudo[3282]: pam_unix(sudo:session): session closed for user root
Mar 29 17:33:12 Khadas systemd[1]: Stopped NFSv4 ID-name mapping service.
For the following I see;
khadas@Khadas:~$ sudo systemctl list-dependencies nfs-kernel-server
nfs-kernel-server.service
○ ├─auth-rpcgss-module.service
× ├─nfs-idmapd.service
○ ├─nfs-mountd.service
○ ├─nfsdcld.service
× ├─proc-fs-nfsd.mount
● ├─rpc-statd-notify.service
● ├─rpc-statd.service
○ ├─rpc-svcgssd.service
● ├─rpcbind.socket
● ├─system.slice
● ├─network-online.target
● │ ├─networking.service
● │ └─NetworkManager-wait-online.service
● └─network.target
Found a solution
sudo modprobe nfsd
sudo systemctl daemon-reload
sudo systemctl start nfs-server
Need to know how to do modprobe nfsd at boot time