Diskless with Ubuntu 12.04












1














I'm trying to setup a new diskless solution with ubuntu 12.04 without any success. I followed this Diskless Ubuntu HowTo



But the initramfs seems not to be able to mount my nfs share.



On my server side:



My /etc/exports




/srv/nfs4 192.168.0.0/24(fsid=0,rw,no_subtree_check)

/srv/nfs4/nfsroot 192.168.0.0/24(rw,no_root_squash,no_subtree_check,fsid=1,nohide,insecure,sync)


I'm able to mount my nfs share on standard Ubuntu installation without any problem.



I can mount my nfs on any client with those commands:



mount 192.168.0.3:/nfsroot /mnt


or



mount 192.168.0.3:/srv/nfs4/nfsroot /mnt


My /tftpboot/pxelinux.cfg/default config file is



DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/nfsroot ip=dhcp rw


I also tried



DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/srv/nfs4/nfsroot ip=dhcp rw.


What I got in initramfs:



With the setting [nfsroot=192.168.0.3:/nfsroot]



Diskless output:



mount call failed - server replied: Permission denied


On Syslog of my nfs server:



rpc.mountd[1266]: refused mount request from 192.168.0.10 for /nfsroot (/): not exported


With the setting [nfsroot=192.168.0.3:/srv/nfs4/nfsroot]



Diskless output:



mount: the kernel lacks NFS v3 support


On Syslog of my nfs server I got:




Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: authenticated mount request from 192.168.0.10:834 for /srv/nfs4/nfsroot (/srv/nfs4/nfsroot)
Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: refused unmount request from 192.168.0.10 for /root (/): not exported









share|improve this question





























    1














    I'm trying to setup a new diskless solution with ubuntu 12.04 without any success. I followed this Diskless Ubuntu HowTo



    But the initramfs seems not to be able to mount my nfs share.



    On my server side:



    My /etc/exports




    /srv/nfs4 192.168.0.0/24(fsid=0,rw,no_subtree_check)

    /srv/nfs4/nfsroot 192.168.0.0/24(rw,no_root_squash,no_subtree_check,fsid=1,nohide,insecure,sync)


    I'm able to mount my nfs share on standard Ubuntu installation without any problem.



    I can mount my nfs on any client with those commands:



    mount 192.168.0.3:/nfsroot /mnt


    or



    mount 192.168.0.3:/srv/nfs4/nfsroot /mnt


    My /tftpboot/pxelinux.cfg/default config file is



    DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/nfsroot ip=dhcp rw


    I also tried



    DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/srv/nfs4/nfsroot ip=dhcp rw.


    What I got in initramfs:



    With the setting [nfsroot=192.168.0.3:/nfsroot]



    Diskless output:



    mount call failed - server replied: Permission denied


    On Syslog of my nfs server:



    rpc.mountd[1266]: refused mount request from 192.168.0.10 for /nfsroot (/): not exported


    With the setting [nfsroot=192.168.0.3:/srv/nfs4/nfsroot]



    Diskless output:



    mount: the kernel lacks NFS v3 support


    On Syslog of my nfs server I got:




    Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: authenticated mount request from 192.168.0.10:834 for /srv/nfs4/nfsroot (/srv/nfs4/nfsroot)
    Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: refused unmount request from 192.168.0.10 for /root (/): not exported









    share|improve this question



























      1












      1








      1


      1





      I'm trying to setup a new diskless solution with ubuntu 12.04 without any success. I followed this Diskless Ubuntu HowTo



      But the initramfs seems not to be able to mount my nfs share.



      On my server side:



      My /etc/exports




      /srv/nfs4 192.168.0.0/24(fsid=0,rw,no_subtree_check)

      /srv/nfs4/nfsroot 192.168.0.0/24(rw,no_root_squash,no_subtree_check,fsid=1,nohide,insecure,sync)


      I'm able to mount my nfs share on standard Ubuntu installation without any problem.



      I can mount my nfs on any client with those commands:



      mount 192.168.0.3:/nfsroot /mnt


      or



      mount 192.168.0.3:/srv/nfs4/nfsroot /mnt


      My /tftpboot/pxelinux.cfg/default config file is



      DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/nfsroot ip=dhcp rw


      I also tried



      DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/srv/nfs4/nfsroot ip=dhcp rw.


      What I got in initramfs:



      With the setting [nfsroot=192.168.0.3:/nfsroot]



      Diskless output:



      mount call failed - server replied: Permission denied


      On Syslog of my nfs server:



      rpc.mountd[1266]: refused mount request from 192.168.0.10 for /nfsroot (/): not exported


      With the setting [nfsroot=192.168.0.3:/srv/nfs4/nfsroot]



      Diskless output:



      mount: the kernel lacks NFS v3 support


      On Syslog of my nfs server I got:




      Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: authenticated mount request from 192.168.0.10:834 for /srv/nfs4/nfsroot (/srv/nfs4/nfsroot)
      Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: refused unmount request from 192.168.0.10 for /root (/): not exported









      share|improve this question















      I'm trying to setup a new diskless solution with ubuntu 12.04 without any success. I followed this Diskless Ubuntu HowTo



      But the initramfs seems not to be able to mount my nfs share.



      On my server side:



      My /etc/exports




      /srv/nfs4 192.168.0.0/24(fsid=0,rw,no_subtree_check)

      /srv/nfs4/nfsroot 192.168.0.0/24(rw,no_root_squash,no_subtree_check,fsid=1,nohide,insecure,sync)


      I'm able to mount my nfs share on standard Ubuntu installation without any problem.



      I can mount my nfs on any client with those commands:



      mount 192.168.0.3:/nfsroot /mnt


      or



      mount 192.168.0.3:/srv/nfs4/nfsroot /mnt


      My /tftpboot/pxelinux.cfg/default config file is



      DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/nfsroot ip=dhcp rw


      I also tried



      DEFAULT vmlinuz-3.5.0-25-generic root=/dev/nfs initrd=initrd.img-3.5.0-25-generic nfsroot=192.168.0.3:/srv/nfs4/nfsroot ip=dhcp rw.


      What I got in initramfs:



      With the setting [nfsroot=192.168.0.3:/nfsroot]



      Diskless output:



      mount call failed - server replied: Permission denied


      On Syslog of my nfs server:



      rpc.mountd[1266]: refused mount request from 192.168.0.10 for /nfsroot (/): not exported


      With the setting [nfsroot=192.168.0.3:/srv/nfs4/nfsroot]



      Diskless output:



      mount: the kernel lacks NFS v3 support


      On Syslog of my nfs server I got:




      Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: authenticated mount request from 192.168.0.10:834 for /srv/nfs4/nfsroot (/srv/nfs4/nfsroot)
      Mar 11 14:03:06 BootFromLan rpc.mountd[1266]: refused unmount request from 192.168.0.10 for /root (/): not exported






      12.04 boot nfs initramfs pxe






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 26 '15 at 18:10









      bcbc

      5,82142866




      5,82142866










      asked Mar 11 '13 at 18:15









      user139462

      612




      612






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Your first attempt seems to be wrong because the full path is not specified.



          Your second attempt seems to be that there is a mismatch in nfs versions: The initramfs loads version 4 but the server only serves version 3.



          Probably this might help:



          https://help.ubuntu.com/community/SettingUpNFSHowTo



          You might try to compile the TFTP-Served kernel with nfs-3-support, see lsinitramfs initrd.img-3.5.0-25-generic to check what's inside.






          share|improve this answer





















          • But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
            – user139462
            Mar 11 '13 at 19:09












          • And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
            – user139462
            Mar 11 '13 at 19:11






          • 1




            Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
            – aquaherd
            Mar 11 '13 at 21:33



















          0














          Maybe issue with the files, did you use cp -ax to copy the files from the DVD/image to NFS. See http://ubuntuforums.org/archive/index.php/t-921313.html



          Or, it will automatically unmount the given NFS share when it doesn't find the kernel stuff it is looking for.



          You might need the boot=casper or similiar. Check your NFS directory structure. dirname find /nfs -type f -name "*linuz*"






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f266642%2fdiskless-with-ubuntu-12-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Your first attempt seems to be wrong because the full path is not specified.



            Your second attempt seems to be that there is a mismatch in nfs versions: The initramfs loads version 4 but the server only serves version 3.



            Probably this might help:



            https://help.ubuntu.com/community/SettingUpNFSHowTo



            You might try to compile the TFTP-Served kernel with nfs-3-support, see lsinitramfs initrd.img-3.5.0-25-generic to check what's inside.






            share|improve this answer





















            • But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
              – user139462
              Mar 11 '13 at 19:09












            • And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
              – user139462
              Mar 11 '13 at 19:11






            • 1




              Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
              – aquaherd
              Mar 11 '13 at 21:33
















            0














            Your first attempt seems to be wrong because the full path is not specified.



            Your second attempt seems to be that there is a mismatch in nfs versions: The initramfs loads version 4 but the server only serves version 3.



            Probably this might help:



            https://help.ubuntu.com/community/SettingUpNFSHowTo



            You might try to compile the TFTP-Served kernel with nfs-3-support, see lsinitramfs initrd.img-3.5.0-25-generic to check what's inside.






            share|improve this answer





















            • But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
              – user139462
              Mar 11 '13 at 19:09












            • And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
              – user139462
              Mar 11 '13 at 19:11






            • 1




              Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
              – aquaherd
              Mar 11 '13 at 21:33














            0












            0








            0






            Your first attempt seems to be wrong because the full path is not specified.



            Your second attempt seems to be that there is a mismatch in nfs versions: The initramfs loads version 4 but the server only serves version 3.



            Probably this might help:



            https://help.ubuntu.com/community/SettingUpNFSHowTo



            You might try to compile the TFTP-Served kernel with nfs-3-support, see lsinitramfs initrd.img-3.5.0-25-generic to check what's inside.






            share|improve this answer












            Your first attempt seems to be wrong because the full path is not specified.



            Your second attempt seems to be that there is a mismatch in nfs versions: The initramfs loads version 4 but the server only serves version 3.



            Probably this might help:



            https://help.ubuntu.com/community/SettingUpNFSHowTo



            You might try to compile the TFTP-Served kernel with nfs-3-support, see lsinitramfs initrd.img-3.5.0-25-generic to check what's inside.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 11 '13 at 19:00









            aquaherd

            5,2892336




            5,2892336












            • But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
              – user139462
              Mar 11 '13 at 19:09












            • And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
              – user139462
              Mar 11 '13 at 19:11






            • 1




              Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
              – aquaherd
              Mar 11 '13 at 21:33


















            • But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
              – user139462
              Mar 11 '13 at 19:09












            • And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
              – user139462
              Mar 11 '13 at 19:11






            • 1




              Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
              – aquaherd
              Mar 11 '13 at 21:33
















            But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
            – user139462
            Mar 11 '13 at 19:09






            But when I try to mount my nfs share remotely I can mount with nfs V4: mount -t nfs4 192.168.0.3:/nfsroot /mnt.
            – user139462
            Mar 11 '13 at 19:09














            And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
            – user139462
            Mar 11 '13 at 19:11




            And when I list my mount, I can see: 192.168.0.3:/nfsroot on /mnt type nfs4 (rw,addr=192.168.0.3,clientaddr=192.168.0.2)
            – user139462
            Mar 11 '13 at 19:11




            1




            1




            Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
            – aquaherd
            Mar 11 '13 at 21:33




            Yes, since the module is not present in the initramfs. Perhapse replace root=/dev/nfs with rootfstype=nfs4 root=/dev/nfs4
            – aquaherd
            Mar 11 '13 at 21:33













            0














            Maybe issue with the files, did you use cp -ax to copy the files from the DVD/image to NFS. See http://ubuntuforums.org/archive/index.php/t-921313.html



            Or, it will automatically unmount the given NFS share when it doesn't find the kernel stuff it is looking for.



            You might need the boot=casper or similiar. Check your NFS directory structure. dirname find /nfs -type f -name "*linuz*"






            share|improve this answer




























              0














              Maybe issue with the files, did you use cp -ax to copy the files from the DVD/image to NFS. See http://ubuntuforums.org/archive/index.php/t-921313.html



              Or, it will automatically unmount the given NFS share when it doesn't find the kernel stuff it is looking for.



              You might need the boot=casper or similiar. Check your NFS directory structure. dirname find /nfs -type f -name "*linuz*"






              share|improve this answer


























                0












                0








                0






                Maybe issue with the files, did you use cp -ax to copy the files from the DVD/image to NFS. See http://ubuntuforums.org/archive/index.php/t-921313.html



                Or, it will automatically unmount the given NFS share when it doesn't find the kernel stuff it is looking for.



                You might need the boot=casper or similiar. Check your NFS directory structure. dirname find /nfs -type f -name "*linuz*"






                share|improve this answer














                Maybe issue with the files, did you use cp -ax to copy the files from the DVD/image to NFS. See http://ubuntuforums.org/archive/index.php/t-921313.html



                Or, it will automatically unmount the given NFS share when it doesn't find the kernel stuff it is looking for.



                You might need the boot=casper or similiar. Check your NFS directory structure. dirname find /nfs -type f -name "*linuz*"







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 12 '13 at 15:05









                Masroor

                1,61332042




                1,61332042










                answered Nov 12 '13 at 7:21









                Matti A. Pentti

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f266642%2fdiskless-with-ubuntu-12-04%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕