• [gentoo-user] How to enable NFS v2

    From Fabulous Zhang Zheng@21:1/5 to All on Sat Jul 23 07:30:01 2022
    Dear genteel users,


    Recently I'm trying to run Open Genera on Gentoo, which requires the old
    NFS v2 protocol for communication.

    I successfully run it on a Ubuntu 16.04 virtual machine, which enables it
    by default.

    In 5.18.12 it seems deprecated and not supported, am I supposed to revert
    back to a kernel version before its removal, or manually patch it into the current kernel ? Or there might be some more elegant methods ?

    It will be much appreciated if anyone could help :)

    <div dir="ltr"><div>Dear genteel users,</div><div><br></div><div><br></div><div>Recently I&#39;m trying to run Open Genera on Gentoo, which requires the old NFS v2 protocol for communication.</div><div><br></div><div>I successfully run it on a Ubuntu 16.
    04 virtual machine, which enables it by default.</div><div><br></div><div>In 5.18.12 it seems deprecated and not supported, am I supposed to revert back to a kernel version before its removal, or manually patch it into the current kernel ? Or there might
    be some more elegant methods ?<br></div><div><br></div><div>It will be much appreciated if anyone could help :)<br></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to Fabulous Zhang Zheng on Sat Jul 23 21:40:01 2022
    On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
    Dear genteel users,


    Recently I'm trying to run Open Genera on Gentoo, which requires the
    old
    NFS v2 protocol for communication.

    I successfully run it on a Ubuntu 16.04 virtual machine, which
    enables it
    by default.

    In 5.18.12 it seems deprecated and not supported, am I supposed to
    revert
    back to a kernel version before its removal, or manually patch it
    into the
    current kernel ? Or there might be some more elegant methods ?

    It will be much appreciated if anyone could help :)

    Looking at the config for 5.18.14, I see no evidence V2 has been
    deprecated. However, your kernel may well have been configured to not
    use V2. Note the kernel has different client and server settings for
    this. Most likely, you just need to reconfigure and recompile your
    kernel.

    Also, I don't see any genera available in portage. If it is in an
    overlay, I would check for any documentation in the overlay about
    necessary kernel configuration.

    Jack

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fabulous Zhang Zheng@21:1/5 to All on Sun Jul 24 04:00:01 2022
    Dear Jack,

    thanks for your reply, I reconfigured menuconfig.

    NFS v2 support I found is client support, and I can't still find v2 support
    for server ( sorry for not mentioning it in my ambiguous question )
    I also looked up in forum and wiki, and recent posts seem to indicate
    the removal of nfs v2 server support.

    I followed this link for open genera
    ( https://archives.loomcom.com/genera/genera-install.html )
    not in portage or an overlay.

    Best regards :)

    Jack <ostroffjh@users.sourceforge.net> 于2022年7月24日周日 03:30写道:

    On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
    Dear genteel users,


    Recently I'm trying to run Open Genera on Gentoo, which requires the
    old
    NFS v2 protocol for communication.

    I successfully run it on a Ubuntu 16.04 virtual machine, which
    enables it
    by default.

    In 5.18.12 it seems deprecated and not supported, am I supposed to
    revert
    back to a kernel version before its removal, or manually patch it
    into the
    current kernel ? Or there might be some more elegant methods ?

    It will be much appreciated if anyone could help :)

    Looking at the config for 5.18.14, I see no evidence V2 has been
    deprecated. However, your kernel may well have been configured to not
    use V2. Note the kernel has different client and server settings for
    this. Most likely, you just need to reconfigure and recompile your
    kernel.

    Also, I don't see any genera available in portage. If it is in an
    overlay, I would check for any documentation in the overlay about
    necessary kernel configuration.

    Jack



    <div dir="ltr"><div>Dear Jack,</div><div><br></div><div>thanks for your reply, I reconfigured menuconfig.</div><div><br></div><div>NFS v2 support I found is client support, and I can&#39;t still find v2 support</div><div>for server ( sorry for not
    mentioning it in my ambiguous question )</div><div>I also looked up in forum and wiki, and recent posts seem to indicate <br></div><div>the removal of nfs v2 server support.</div><div><br></div><div>I followed this link for open genera <br></div><div>( <
    a href="https://archives.loomcom.com/genera/genera-install.html" target="_blank">https://archives.loomcom.com/genera/genera-install.html</a> )<br></div><div>not in portage or an overlay.</div><div><br></div><div>Best regards :)<br></div></div><br><div
    class="gmail_quote"><div dir="ltr" class="gmail_attr">Jack &lt;<a href="mailto:ostroffjh@users.sourceforge.net">ostroffjh@users.sourceforge.net</a>&gt; 于2022年7月24日周日 03:30写道:<br></div><blockquote class="gmail_quote" style="margin:0px
    0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:<br>
    &gt; Dear genteel users,<br>
    &gt; <br>
    &gt; <br>
    &gt; Recently I&#39;m trying to run Open Genera on Gentoo, which requires the  <br>
    &gt; old<br>
    &gt; NFS v2 protocol for communication.<br>
    &gt; <br>
    &gt; I successfully run it on a Ubuntu 16.04 virtual machine, which  <br>
    &gt; enables it<br>
    &gt; by default.<br>
    &gt; <br>
    &gt; In 5.18.12 it seems deprecated and not supported, am I supposed to  <br> &gt; revert<br>
    &gt; back to a kernel version before its removal, or manually patch it  <br> &gt; into the<br>
    &gt; current kernel ? Or there might be some more elegant methods ?<br>
    &gt; <br>
    &gt; It will be much appreciated if anyone could help :)<br>
    &gt; <br>
    Looking at the config for 5.18.14, I see no evidence V2 has been  <br> deprecated.  However, your kernel may well have been configured to not  <br> use V2.  Note the kernel has different client and server settings for  <br> this.  Most likely, you just need to reconfigure and recompile your  <br> kernel.<br>

    Also, I don&#39;t see any genera available in portage.  If it is in an  <br> overlay, I would check for any documentation in the overlay about  <br> necessary kernel configuration.<br>

    Jack<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to Fabulous Zhang Zheng on Wed Jul 27 01:00:01 2022
    This list prefers bottom posting. See below.

    On 2022.07.23 21:52, Fabulous Zhang Zheng wrote:
    Dear Jack,

    thanks for your reply, I reconfigured menuconfig.

    NFS v2 support I found is client support, and I can't still find v2
    support
    for server ( sorry for not mentioning it in my ambiguous question )
    I also looked up in forum and wiki, and recent posts seem to indicate
    the removal of nfs v2 server support.

    I followed this link for open genera
    ( https://archives.loomcom.com/genera/genera-install.html )
    not in portage or an overlay.

    Best regards :)

    Jack <ostroffjh@users.sourceforge.net> 于2022年7月24日周日 03:30写道:

    On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
    Dear genteel users,


    Recently I'm trying to run Open Genera on Gentoo, which requires
    the
    old
    NFS v2 protocol for communication.

    I successfully run it on a Ubuntu 16.04 virtual machine, which
    enables it
    by default.

    In 5.18.12 it seems deprecated and not supported, am I supposed to
    revert
    back to a kernel version before its removal, or manually patch it
    into the
    current kernel ? Or there might be some more elegant methods ?

    It will be much appreciated if anyone could help :)

    Looking at the config for 5.18.14, I see no evidence V2 has been deprecated. However, your kernel may well have been configured to
    not
    use V2. Note the kernel has different client and server settings
    for
    this. Most likely, you just need to reconfigure and recompile your
    kernel.

    Also, I don't see any genera available in portage. If it is in an
    overlay, I would check for any documentation in the overlay about
    necessary kernel configuration.

    Jack



    I am aware that NFSv2 is likely to be deprecated due to security
    concerns, but it hasn't happened yet in the Linux kernel.

    The entry (5.18.14) for "NFS server support (NFSD)" or CONFIG_NFSD: says

    -----
    Choose Y here if you want to allow other computers to access files
    residing on this system using Sun's Network File System protocol. To
    compile the NFS server support as a module, choose M here: the module
    will be called nfsd.

    You may choose to use a user-space NFS server instead, in which case
    you can choose N here.

    To export local file systems using NFS, you also need to install user
    space programs which can be found in the Linux nfs-utils package,
    available from http://linux-nfs.org/. More detail about the Linux NFS
    server implementation is available via the exports(5) man page.

    Below you can choose which versions of the NFS protocol are available
    to clients mounting the NFS server on this system. Support for NFS
    version 2 (RFC 1094) is always available when CONFIG_NFSD is selected.
    -----

    In addition, from just a very brief search, it is likely that there are
    other configuration files you may need to alter in order for the nfs
    server to actually respond to V2 requests. This is likely how some distributions have blocked V2 from the default configuration. Google
    is your friend.

    Jack

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fabulous Zhang Zheng@21:1/5 to All on Fri Jul 29 19:00:01 2022
    Dear Jack,


    Jack <ostroffjh@users.sourceforge.net> 于2022年7月27日周三 06:59写道:

    This list prefers bottom posting. See below.

    On 2022.07.23 21:52, Fabulous Zhang Zheng wrote:
    Dear Jack,

    thanks for your reply, I reconfigured menuconfig.

    NFS v2 support I found is client support, and I can't still find v2
    support
    for server ( sorry for not mentioning it in my ambiguous question )
    I also looked up in forum and wiki, and recent posts seem to indicate
    the removal of nfs v2 server support.

    I followed this link for open genera
    ( https://archives.loomcom.com/genera/genera-install.html )
    not in portage or an overlay.

    Best regards :)

    Jack <ostroffjh@users.sourceforge.net> 于2022年7月24日周日 03:30写道:

    On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
    Dear genteel users,


    Recently I'm trying to run Open Genera on Gentoo, which requires
    the
    old
    NFS v2 protocol for communication.

    I successfully run it on a Ubuntu 16.04 virtual machine, which
    enables it
    by default.

    In 5.18.12 it seems deprecated and not supported, am I supposed to revert
    back to a kernel version before its removal, or manually patch it
    into the
    current kernel ? Or there might be some more elegant methods ?

    It will be much appreciated if anyone could help :)

    Looking at the config for 5.18.14, I see no evidence V2 has been deprecated. However, your kernel may well have been configured to
    not
    use V2. Note the kernel has different client and server settings
    for
    this. Most likely, you just need to reconfigure and recompile your kernel.

    Also, I don't see any genera available in portage. If it is in an overlay, I would check for any documentation in the overlay about necessary kernel configuration.

    Jack



    I am aware that NFSv2 is likely to be deprecated due to security
    concerns, but it hasn't happened yet in the Linux kernel.

    The entry (5.18.14) for "NFS server support (NFSD)" or CONFIG_NFSD: says

    -----
    Choose Y here if you want to allow other computers to access files
    residing on this system using Sun's Network File System protocol. To
    compile the NFS server support as a module, choose M here: the module
    will be called nfsd.

    You may choose to use a user-space NFS server instead, in which case
    you can choose N here.

    To export local file systems using NFS, you also need to install user
    space programs which can be found in the Linux nfs-utils package,
    available from http://linux-nfs.org/. More detail about the Linux NFS
    server implementation is available via the exports(5) man page.

    Below you can choose which versions of the NFS protocol are available
    to clients mounting the NFS server on this system. Support for NFS
    version 2 (RFC 1094) is always available when CONFIG_NFSD is selected.
    -----

    In addition, from just a very brief search, it is likely that there are
    other configuration files you may need to alter in order for the nfs
    server to actually respond to V2 requests. This is likely how some distributions have blocked V2 from the default configuration. Google
    is your friend.

    Jack


    Sorry for the late reply,

    I found this commit <https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=2c2c36c59fa1de2ff7fd28917e54700ecb39b730>
    of last November, which might be the reason.
    2.5.4 might be the last version with such support.

    I emerged manually changed ebuild and $( rpcinfo -p localhost | grep nfs
    )
    explicitly indicates the version 2 of nfs, which runs successfully.

    Thanks again for your dedicated and detailed reply,
    and also the bottom-posting reminder.


    Best regards :)

    <div dir="ltr"><div dir="ltr"><div>Dear Jack,</div><div><br></div><div><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Jack &lt;<a href="mailto:ostroffjh@users.sourceforge.net">ostroffjh@users.sourceforge.net</a>&gt; 于2022年
    7月27日周三 06:59写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This list prefers bottom posting.  See below.<br>

    On 2022.07.23 21:52, Fabulous Zhang Zheng wrote:<br>
    &gt; Dear Jack,<br>
    &gt; <br>
    &gt; thanks for your reply, I reconfigured menuconfig.<br>
    &gt; <br>
    &gt; NFS v2 support I found is client support, and I can&#39;t still find v2  <br>
    &gt; support<br>
    &gt; for server ( sorry for not mentioning it in my ambiguous question )<br> &gt; I also looked up in forum and wiki, and recent posts seem to indicate<br> &gt; the removal of nfs v2 server support.<br>
    &gt; <br>
    &gt; I followed this link for open genera<br>
    &gt; ( <a href="https://archives.loomcom.com/genera/genera-install.html" rel="noreferrer" target="_blank">https://archives.loomcom.com/genera/genera-install.html</a> )<br>
    &gt; not in portage or an overlay.<br>
    &gt; <br>
    &gt; Best regards :)<br>
    &gt; <br>
    &gt; Jack &lt;<a href="mailto:ostroffjh@users.sourceforge.net" target="_blank">ostroffjh@users.sourceforge.net</a>&gt; 于2022年7月24日周日 03:30写道:<br>
    &gt; <br>
    &gt; &gt; On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:<br>
    &gt; &gt; &gt; Dear genteel users,<br>
    &gt; &gt; &gt;<br>
    &gt; &gt; &gt;<br>
    &gt; &gt; &gt; Recently I&#39;m trying to run Open Genera on Gentoo, which requires  <br>
    &gt; the<br>
    &gt; &gt; &gt; old<br>
    &gt; &gt; &gt; NFS v2 protocol for communication.<br>
    &gt; &gt; &gt;<br>
    &gt; &gt; &gt; I successfully run it on a Ubuntu 16.04 virtual machine, which<br>
    &gt; &gt; &gt; enables it<br>
    &gt; &gt; &gt; by default.<br>
    &gt; &gt; &gt;<br>
    &gt; &gt; &gt; In 5.18.12 it seems deprecated and not supported, am I supposed to<br>
    &gt; &gt; &gt; revert<br>
    &gt; &gt; &gt; back to a kernel version before its removal, or manually patch it<br>
    &gt; &gt; &gt; into the<br>
    &gt; &gt; &gt; current kernel ? Or there might be some more elegant methods ?<br>
    &gt; &gt; &gt;<br>
    &gt; &gt; &gt; It will be much appreciated if anyone could help :)<br>
    &gt; &gt; &gt;<br>
    &gt; &gt; Looking at the config for 5.18.14, I see no evidence V2 has been<br> &gt; &gt; deprecated.  However, your kernel may well have been configured to  <br>
    &gt; not<br>
    &gt; &gt; use V2.  Note the kernel has different client and server settings  <br>
    &gt; for<br>
    &gt; &gt; this.  Most likely, you just need to reconfigure and recompile your<br>
    &gt; &gt; kernel.<br>
    &gt; &gt;<br>
    &gt; &gt; Also, I don&#39;t see any genera available in portage.  If it is in an<br>
    &gt; &gt; overlay, I would check for any documentation in the overlay about<br> &gt; &gt; necessary kernel configuration.<br>
    &gt; &gt;<br>
    &gt; &gt; Jack<br>
    &gt; &gt;<br>
    &gt; &gt;<br>
    &gt; <br>
    I am aware that NFSv2 is likely to be deprecated due to security  <br> concerns, but it hasn&#39;t happened yet in the Linux kernel.<br>

    The entry (5.18.14) for &quot;NFS server support (NFSD)&quot; or CONFIG_NFSD: says<br>

    -----<br>
    Choose Y here if you want to allow other computers to access files  <br> residing on this system using Sun&#39;s Network File System protocol. To  <br> compile the NFS server support as a module, choose M here: the module  <br> will be called nfsd.<br>

    You may choose to use a user-space NFS server instead, in which case  <br>
    you can choose N here.<br>

    To export local file systems using NFS, you also need to install user  <br> space programs which can be found in the Linux nfs-utils package,  <br> available from <a href="http://linux-nfs.org/" rel="noreferrer" target="_blank">http://linux-nfs.org/</a>. More detail about the Linux NFS  <br>
    server implementation is available via the exports(5) man page.<br>

    Below you can choose which versions of the NFS protocol are available  <br>
    to clients mounting the NFS server on this system. Support for NFS  <br> version 2 (RFC 1094) is always available when CONFIG_NFSD is selected.<br> -----<br>

    In addition, from just a very brief search, it is likely that there are  <br> other configuration files you may need to alter in order for the nfs  <br> server to actually respond to V2 requests.  This is likely how some  <br> distributions have blocked V2 from the default configuration.  Google  <br> is your friend.<br>

    Jack<br>
    <br></blockquote><div><div><br></div><div>Sorry for the late reply,</div><div><br></div><div>I found this <a href="https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=2c2c36c59fa1de2ff7fd28917e54700ecb39b730">commit</a> of last November, which
    might be the reason.</div><div>2.5.4 might be the last version with such support.</div><div><br></div><div>I emerged manually changed ebuild  and  $( rpcinfo -p localhost | grep nfs ) <br></div><div>explicitly indicates the version 2 of nfs, which runs
    successfully.<br></div><div><br></div><div>Thanks again for your dedicated and detailed reply,</div><div>and also the bottom-posting reminder.</div><div><br></div><div><br></div><div>Best regards :)<br></div> </div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to Fabulous Zhang Zheng on Fri Jul 29 19:20:01 2022
    On 2022.07.29 12:54, Fabulous Zhang Zheng wrote:
    Dear Jack,


    Jack <ostroffjh@users.sourceforge.net> 于2022年7月27日周三 06:59写道:

    This list prefers bottom posting. See below.

    On 2022.07.23 21:52, Fabulous Zhang Zheng wrote:
    Dear Jack,

    thanks for your reply, I reconfigured menuconfig.

    NFS v2 support I found is client support, and I can't still find
    v2
    support
    for server ( sorry for not mentioning it in my ambiguous question
    )
    I also looked up in forum and wiki, and recent posts seem to
    indicate
    the removal of nfs v2 server support.

    I followed this link for open genera
    ( https://archives.loomcom.com/genera/genera-install.html )
    not in portage or an overlay.

    Best regards :)

    Jack <ostroffjh@users.sourceforge.net> 于2022年7月24日周日 03:30写道:

    On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
    Dear genteel users,


    Recently I'm trying to run Open Genera on Gentoo, which
    requires
    the
    old
    NFS v2 protocol for communication.

    I successfully run it on a Ubuntu 16.04 virtual machine, which enables it
    by default.

    In 5.18.12 it seems deprecated and not supported, am I
    supposed to
    revert
    back to a kernel version before its removal, or manually
    patch it
    into the
    current kernel ? Or there might be some more elegant methods ?

    It will be much appreciated if anyone could help :)

    Looking at the config for 5.18.14, I see no evidence V2 has been deprecated. However, your kernel may well have been configured
    to
    not
    use V2. Note the kernel has different client and server
    settings
    for
    this. Most likely, you just need to reconfigure and recompile
    your
    kernel.

    Also, I don't see any genera available in portage. If it is in
    an
    overlay, I would check for any documentation in the overlay
    about
    necessary kernel configuration.

    Jack



    I am aware that NFSv2 is likely to be deprecated due to security
    concerns, but it hasn't happened yet in the Linux kernel.

    The entry (5.18.14) for "NFS server support (NFSD)" or CONFIG_NFSD:
    says

    -----
    Choose Y here if you want to allow other computers to access files
    residing on this system using Sun's Network File System protocol. To compile the NFS server support as a module, choose M here: the
    module
    will be called nfsd.

    You may choose to use a user-space NFS server instead, in which case
    you can choose N here.

    To export local file systems using NFS, you also need to install
    user
    space programs which can be found in the Linux nfs-utils package,
    available from http://linux-nfs.org/. More detail about the Linux
    NFS
    server implementation is available via the exports(5) man page.

    Below you can choose which versions of the NFS protocol are
    available
    to clients mounting the NFS server on this system. Support for NFS
    version 2 (RFC 1094) is always available when CONFIG_NFSD is
    selected.
    -----

    In addition, from just a very brief search, it is likely that there
    are
    other configuration files you may need to alter in order for the nfs
    server to actually respond to V2 requests. This is likely how some distributions have blocked V2 from the default configuration.
    Google
    is your friend.

    Jack


    Sorry for the late reply,

    I found this commit <https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=2c2c36c59fa1de2ff7fd28917e54700ecb39b730>
    of last November, which might be the reason.
    2.5.4 might be the last version with such support.

    I emerged manually changed ebuild and $( rpcinfo -p localhost |
    grep nfs
    )
    explicitly indicates the version 2 of nfs, which runs successfully.

    Thanks again for your dedicated and detailed reply,
    and also the bottom-posting reminder.


    Best regards :)

    I don't fully understand the interactions and relationship, but there
    are obviously some differences between the kernel nfs and userland
    nfs. Glad you got it working for you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)