Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) random: nonblocking pool is initialized
# Number of servers to start up RPCNFSDCOUNT="-V 2 8"
# Runtime priority of server (see nice(1)) RPCNFSDPRIORITY=0
# Options for rpc.mountd. # If you have a port-based firewall, you might want to set up # a fixed port here using the --port option. For more information, # see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS # To disable NFSv4 on the server, specify '--no-nfs-version 4' here RPCMOUNTDOPTS="-V 2 --manage-gids"
# Do you want to start the svcgssd daemon? It is only required for Kerberos # exports. Valid alternatives are "yes" and "no"; the default is "no". NEED_SVCGSSD=""
# Options for rpc.svcgssd. RPCSVCGSSDOPTS="" RPCSNFSDOPTS="--nfs-version 2,3,4 --debug --syslog"
上面的之对ubuntu20.04以前的版本生效
20.04以后的版本需要将sudo vim /etc/nfs.conf 中的将文件中的udp和ver2打开