> > The reason I was test mounting a share on the server is that I could not > > mount the share from inside a qemu-2.5.1 vm on the same machine - as soon as > > I specified "nfsvers=3" then the vm mount also worked fine. > > > OK. I've never built the bridging part of the book's qemu (I > already had a working nfs server where I store my sources and > notes), and I haven't *used* qemu for some months. But when I last > used it, no special actions seemed to be needed in LFS (i.e. > mounting /sources in nfs v3 without forcing a version just worked. > Net bridging is not required. By default a qemu guest finds the host at 10.0.0.2, so you only need something like this:
$ sudo mount.nfs -o nfsvers=3 10.0.0.2:/mnt/nfs /mnt/nfs > > I did not compile against any of the blfs optional dependencies only > > libtirpc and I aslo tried with and without the "mount.nfs4" symlink. > > > The only other thing that comes to mind is the kernel config on the > server. Mine has > > CONFIG_NETWORK_FILESYSTEMS=y > CONFIG_NFS_FS=y > CONFIG_NFS_V2=y > CONFIG_NFS_V3=y > # CONFIG_NFS_V3_ACL is not set > # CONFIG_NFS_V4 is not set > # CONFIG_NFS_SWAP is not set > CONFIG_NFSD=y > CONFIG_NFSD_V3=y > # CONFIG_NFSD_V3_ACL is not set > # CONFIG_NFSD_V4 is not set > CONFIG_GRACE_PERIOD=y > CONFIG_LOCKD=y > CONFIG_LOCKD_V4=y > CONFIG_NFS_COMMON=y > CONFIG_SUNRPC=y > > And perhaps on the client too, i.e. turn off NFS_V4 (I also turn off > V2 on the clients, ISTR that is a client-only option). I keep > forgetting that we recommend people to start with 'make defconfig', > which almost certainly turns all the nfs options on, probably because > it has rarely born any useful relationship to my hardware. > I have (4.2.9 kernel): CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=y CONFIG_NFS_V2=y CONFIG_NFS_V3=y # CONFIG_NFS_V3_ACL is not set CONFIG_NFS_V4=y CONFIG_NFS_SWAP=y CONFIG_NFS_V4_1=y CONFIG_NFS_V4_2=y CONFIG_PNFS_FILE_LAYOUT=y CONFIG_PNFS_BLOCK=m CONFIG_PNFS_OBJLAYOUT=m CONFIG_PNFS_FLEXFILE_LAYOUT=m CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" # CONFIG_NFS_V4_1_MIGRATION is not set # CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFSD=m CONFIG_NFSD_V3=y # CONFIG_NFSD_V3_ACL is not set CONFIG_NFSD_V4=y CONFIG_NFSD_PNFS=y # CONFIG_NFSD_FAULT_INJECTION is not set CONFIG_GRACE_PERIOD=y CONFIG_LOCKD=y CONFIG_LOCKD_V4=y CONFIG_NFS_COMMON=y CONFIG_SUNRPC=y Regards John -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
