Skip to content

kernel module nfs is missing #82

@alen-linux

Description

@alen-linux
haiyue@Qinghui:~/win10/docker-data/nfs$ uname -a
Linux Qinghui 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

haiyue@Qinghui:~/win10/docker-data/nfs$ cat /etc/modules-load.d/modules.conf 
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

modprobe nfs
modprobe nfsd


haiyue@Qinghui:~/win10/docker-data/nfs$ docker run \
-v /home/haiyue/win10/docker-data/nfs:/nfsshare:rw \
-e "NFS_EXPORT_0"="/nfsshare  *(rw,sync,no_root_squash,no_all_squash,no_subtree_check,nohide,crossmnt)"  \
--privileged \
-p 2049:2049 \
erichough/nfs-server

==================================================================
      SETTING UP ...
==================================================================
----> building /etc/exports from environment variables
----> collected 1 valid export(s) from NFS_EXPORT_* environment variables
----> kernel module nfs is missing
----> 
----> ERROR: nfs module is not loaded in the Docker host's kernel (try: modprobe nfs)
----> 

why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions