Ubuntu Diskless 16.04.3 LTS (Xenial Xerus)





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















I am following this HowTo on setting up a diskless ubuntu client.




  1. I am using 2 virtualbox VMs one server and one client.

  2. I am trying to boot the client using pxe but I get a kernel panic error like
    THIS

  3. I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.

  4. The server is a FULL install while client is minimal install.


The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.



Here is my setup:



Ubuntu Server has dhcp server configured for pxe boot.



I ran the following commands on minimal ubuntu client:




  1. sudo cp /boot/vmlinuz-uname -r ~

  2. Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs

  3. Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot

  4. Put modules needed for network adapters into /etc/initramfs-tools/modules

  5. Ran mkinitramfs mkinitramfs -o ~/initrd.img-uname -r

  6. Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):


     mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt 
    cp -ax /. /mnt/.
    cp -ax /dev/. /mnt/dev/. (This command didn't work)



  7. Copied kernel and initrd to tftp root.

  8. /tftpboot/ now contains vmlinuz and initrd image made in step 5

  9. Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.


/nfsroot/etc/fstab



proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 1 1
none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0


/tftpboot/pxelinux.cfg/default



LABEL linux
DEFAULT vmlinuz-4.10.0-28-generic
INITRD initrd.img-4.4.0-87-generic
APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw


/etc/default/tftpd-hpa



TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"


/etc/default/dhcp/dhcpd.conf



allow booting;
allow bootp;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.5 192.168.2.250;
option broadcast-address 192.168.2.255;
option routers 192.168.2.10;
option domain-name-servers 192.168.2.11;
filename "pxelinux.0";
}
# force the client to this ip for pxe.
# This is only necessary assuming you want to send different images to differen$
host pxe_client {
hardware ethernet 00:00:00:00:12:34;
fixed-address 192.168.2.7;
}


PLEASE HELP!!!










share|improve this question































    4















    I am following this HowTo on setting up a diskless ubuntu client.




    1. I am using 2 virtualbox VMs one server and one client.

    2. I am trying to boot the client using pxe but I get a kernel panic error like
      THIS

    3. I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.

    4. The server is a FULL install while client is minimal install.


    The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.



    Here is my setup:



    Ubuntu Server has dhcp server configured for pxe boot.



    I ran the following commands on minimal ubuntu client:




    1. sudo cp /boot/vmlinuz-uname -r ~

    2. Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs

    3. Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot

    4. Put modules needed for network adapters into /etc/initramfs-tools/modules

    5. Ran mkinitramfs mkinitramfs -o ~/initrd.img-uname -r

    6. Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):


       mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt 
      cp -ax /. /mnt/.
      cp -ax /dev/. /mnt/dev/. (This command didn't work)



    7. Copied kernel and initrd to tftp root.

    8. /tftpboot/ now contains vmlinuz and initrd image made in step 5

    9. Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.


    /nfsroot/etc/fstab



    proc /proc proc defaults 0 0
    /dev/nfs / nfs defaults 1 1
    none /tmp tmpfs defaults 0 0
    none /var/run tmpfs defaults 0 0
    none /var/lock tmpfs defaults 0 0
    none /var/tmp tmpfs defaults 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0


    /tftpboot/pxelinux.cfg/default



    LABEL linux
    DEFAULT vmlinuz-4.10.0-28-generic
    INITRD initrd.img-4.4.0-87-generic
    APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw


    /etc/default/tftpd-hpa



    TFTP_USERNAME="tftp"
    TFTP_DIRECTORY="/tftpboot"
    TFTP_ADDRESS=":69"
    TFTP_OPTIONS="--secure"


    /etc/default/dhcp/dhcpd.conf



    allow booting;
    allow bootp;
    subnet 192.168.2.0 netmask 255.255.255.0 {
    range 192.168.2.5 192.168.2.250;
    option broadcast-address 192.168.2.255;
    option routers 192.168.2.10;
    option domain-name-servers 192.168.2.11;
    filename "pxelinux.0";
    }
    # force the client to this ip for pxe.
    # This is only necessary assuming you want to send different images to differen$
    host pxe_client {
    hardware ethernet 00:00:00:00:12:34;
    fixed-address 192.168.2.7;
    }


    PLEASE HELP!!!










    share|improve this question



























      4












      4








      4








      I am following this HowTo on setting up a diskless ubuntu client.




      1. I am using 2 virtualbox VMs one server and one client.

      2. I am trying to boot the client using pxe but I get a kernel panic error like
        THIS

      3. I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.

      4. The server is a FULL install while client is minimal install.


      The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.



      Here is my setup:



      Ubuntu Server has dhcp server configured for pxe boot.



      I ran the following commands on minimal ubuntu client:




      1. sudo cp /boot/vmlinuz-uname -r ~

      2. Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs

      3. Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot

      4. Put modules needed for network adapters into /etc/initramfs-tools/modules

      5. Ran mkinitramfs mkinitramfs -o ~/initrd.img-uname -r

      6. Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):


         mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt 
        cp -ax /. /mnt/.
        cp -ax /dev/. /mnt/dev/. (This command didn't work)



      7. Copied kernel and initrd to tftp root.

      8. /tftpboot/ now contains vmlinuz and initrd image made in step 5

      9. Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.


      /nfsroot/etc/fstab



      proc /proc proc defaults 0 0
      /dev/nfs / nfs defaults 1 1
      none /tmp tmpfs defaults 0 0
      none /var/run tmpfs defaults 0 0
      none /var/lock tmpfs defaults 0 0
      none /var/tmp tmpfs defaults 0 0
      /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0


      /tftpboot/pxelinux.cfg/default



      LABEL linux
      DEFAULT vmlinuz-4.10.0-28-generic
      INITRD initrd.img-4.4.0-87-generic
      APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw


      /etc/default/tftpd-hpa



      TFTP_USERNAME="tftp"
      TFTP_DIRECTORY="/tftpboot"
      TFTP_ADDRESS=":69"
      TFTP_OPTIONS="--secure"


      /etc/default/dhcp/dhcpd.conf



      allow booting;
      allow bootp;
      subnet 192.168.2.0 netmask 255.255.255.0 {
      range 192.168.2.5 192.168.2.250;
      option broadcast-address 192.168.2.255;
      option routers 192.168.2.10;
      option domain-name-servers 192.168.2.11;
      filename "pxelinux.0";
      }
      # force the client to this ip for pxe.
      # This is only necessary assuming you want to send different images to differen$
      host pxe_client {
      hardware ethernet 00:00:00:00:12:34;
      fixed-address 192.168.2.7;
      }


      PLEASE HELP!!!










      share|improve this question
















      I am following this HowTo on setting up a diskless ubuntu client.




      1. I am using 2 virtualbox VMs one server and one client.

      2. I am trying to boot the client using pxe but I get a kernel panic error like
        THIS

      3. I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.

      4. The server is a FULL install while client is minimal install.


      The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.



      Here is my setup:



      Ubuntu Server has dhcp server configured for pxe boot.



      I ran the following commands on minimal ubuntu client:




      1. sudo cp /boot/vmlinuz-uname -r ~

      2. Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs

      3. Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot

      4. Put modules needed for network adapters into /etc/initramfs-tools/modules

      5. Ran mkinitramfs mkinitramfs -o ~/initrd.img-uname -r

      6. Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):


         mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt 
        cp -ax /. /mnt/.
        cp -ax /dev/. /mnt/dev/. (This command didn't work)



      7. Copied kernel and initrd to tftp root.

      8. /tftpboot/ now contains vmlinuz and initrd image made in step 5

      9. Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.


      /nfsroot/etc/fstab



      proc /proc proc defaults 0 0
      /dev/nfs / nfs defaults 1 1
      none /tmp tmpfs defaults 0 0
      none /var/run tmpfs defaults 0 0
      none /var/lock tmpfs defaults 0 0
      none /var/tmp tmpfs defaults 0 0
      /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0


      /tftpboot/pxelinux.cfg/default



      LABEL linux
      DEFAULT vmlinuz-4.10.0-28-generic
      INITRD initrd.img-4.4.0-87-generic
      APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw


      /etc/default/tftpd-hpa



      TFTP_USERNAME="tftp"
      TFTP_DIRECTORY="/tftpboot"
      TFTP_ADDRESS=":69"
      TFTP_OPTIONS="--secure"


      /etc/default/dhcp/dhcpd.conf



      allow booting;
      allow bootp;
      subnet 192.168.2.0 netmask 255.255.255.0 {
      range 192.168.2.5 192.168.2.250;
      option broadcast-address 192.168.2.255;
      option routers 192.168.2.10;
      option domain-name-servers 192.168.2.11;
      filename "pxelinux.0";
      }
      # force the client to this ip for pxe.
      # This is only necessary assuming you want to send different images to differen$
      host pxe_client {
      hardware ethernet 00:00:00:00:12:34;
      fixed-address 192.168.2.7;
      }


      PLEASE HELP!!!







      boot server kernel pxe






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 7 '18 at 18:39







      umar14

















      asked Jan 7 '18 at 18:31









      umar14umar14

      215




      215






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Your /tftpboot/pxelinux.cfg/default file is wrong.
          It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)



          LABEL linux
          KERNEL vmlinuz-2.6.15-23-686
          APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw






          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%2f993305%2fubuntu-diskless-16-04-3-lts-xenial-xerus%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Your /tftpboot/pxelinux.cfg/default file is wrong.
            It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)



            LABEL linux
            KERNEL vmlinuz-2.6.15-23-686
            APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw






            share|improve this answer




























              0














              Your /tftpboot/pxelinux.cfg/default file is wrong.
              It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)



              LABEL linux
              KERNEL vmlinuz-2.6.15-23-686
              APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw






              share|improve this answer


























                0












                0








                0







                Your /tftpboot/pxelinux.cfg/default file is wrong.
                It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)



                LABEL linux
                KERNEL vmlinuz-2.6.15-23-686
                APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw






                share|improve this answer













                Your /tftpboot/pxelinux.cfg/default file is wrong.
                It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)



                LABEL linux
                KERNEL vmlinuz-2.6.15-23-686
                APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 13 at 6:01









                SamuilSamuil

                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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f993305%2fubuntu-diskless-16-04-3-lts-xenial-xerus%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

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents