• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Booting Ubuntu 18.04 Live CD

Scheduled Pinned Locked Moved Solved
Linux Problems
5
11
6.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    george1421 Moderator
    last edited by george1421 Aug 17, 2018, 8:05 PM Aug 18, 2018, 2:05 AM

    Did you grab vmlinuz from the netboot directory on the iso? I have not personally tested 18.04, but I think you need to ensure that you are using a boot kernel that has nfs support enabled. The default cdrom kernel does not. The root= warning is the telling bit from the image you posted.

    Look at my warning (note) here for 16.04: https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images/6

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

    1 Reply Last reply Reply Quote 0
    • N
      nsherin
      last edited by Aug 18, 2018, 8:41 AM

      Thanks for your reply.

      Still no luck I’m afraid - I downloaded netboot.tar.gz from http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/

      I then extracted the tar file and from /ubuntu-installer/amd64, copied the file ‘linux’ to /images/os/ubuntu/18.04/mate/casper

      I then edited my Fog menu entry as follows:

      kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/linux
      initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz imgargs linux root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
      boot || goto MENU

      The error is still the same one.

      Any ideas would be great.

      Many thanks,
      Neil

      G 1 Reply Last reply Aug 18, 2018, 11:25 AM Reply Quote 0
      • G
        george1421 Moderator @nsherin
        last edited by Aug 18, 2018, 11:25 AM

        @nsherin said in Booting Ubuntu 18.04 Live CD:

        kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/linux
        initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz imgargs linux root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
        boot || goto MENU

        The one thing I noticed is this is wrong. Imgargs is an iPXE command not a command line parameter. I don’t know if it would throw the boot kernel off, but your iPXE menu item should look like this.

        kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/linux
        initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz 
        imgargs linux root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
        boot || goto MENU
        

        Also I didn’t reread my own warning message in the tutorial I linked. Here is what I said:
        Note2: If your Ubuntu 16.04 disk image does NOT CONTAIN A NETBOOT DIRECTORY (some users are reporting this), then download http://archive.ubuntu.com/ubuntu/dists/artful/main/installer-amd64/current/images/netboot/netboot.tar.gz file and extract the initrd.gz from ubuntu-installer/amd64 directory and copy to /tftpboot/os/ubuntu/16.04. The DVD I downloaded {ubuntu-16.04.3-server-amd64.iso} contained the netboot files

        You need the initrd.gz file not the kernel from the netboot.tar.gz file.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        N 1 Reply Last reply Aug 18, 2018, 12:02 PM Reply Quote 0
        • N
          nsherin @george1421
          last edited by Aug 18, 2018, 12:02 PM

          Thanks again for your reply. I get a bit further now, but end up being booted into emergency mode.

          I’ve copied over initrd.gz from the netboot.tar.gz file and placed it into /images/os/ubuntu/18.04/mate/casper/linux

          I’ve changed my menu entry to read:

          kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/linux
          initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz
          imgargs linux root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
          boot || goto MENU

          If I use the ‘linux’ file from the netboot.tar.gz file, I get:

          0_1534593597801_pxetest-2018-08-18-12-57-43.png

          If I rename the vmlinuz file that is part of the Live CD ISO to linux in /images/os/ubuntu/18.04/mate/casper/, I get:

          0_1534593681068_pxetest-2018-08-18-13-01-04.png

          1 Reply Last reply Reply Quote 0
          • T
            TaTa
            last edited by TaTa Aug 22, 2018, 2:03 PM Aug 22, 2018, 8:03 PM

            You need to add initrd=initrd.lz. I found it here: https://forums.fogproject.org/topic/11063/ubuntu-17-10-desktop-pxe-boot-no-internetl and it worked for me.

            Your code should look something like this.

            kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/vmlinuz
            initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz 
            imgargs vmlinuz initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
            boot || goto MENU
            
            N 1 Reply Last reply Aug 24, 2018, 10:45 PM Reply Quote 0
            • N
              nsherin @TaTa
              last edited by nsherin Aug 24, 2018, 4:46 PM Aug 24, 2018, 10:45 PM

              @TaTa

              Thanks for your reply - I’ve been away for a few days, so have only just got back to working with this.

              I’ve now put the following code in the menu:

              kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/vmlinuz
              initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz
              imgargs vmlinuz initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
              boot || goto MENU

              But when booting, I get booted into maintenance mode. Pressing CTRL+D allows me to get a prompt. I can then run startx to bring up the GUI. However, starting the installer doesn’t work. Opening a terminal and typing ifconfig gives me an IP address but the machine won’t do any DNS lookups or ping to say google.com

              Here’s the error I get on boot up:

              0_1535149856022_pxetest-2018-08-24-23-25-53.png

              I also tried using ‘linux’ from the netboot installer and initrd.lz with this combination:

              kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/linux
              initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd.lz
              imgargs linux initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
              boot || goto MENU

              Same result

              Any help would be much appreciated.

              Many thanks,
              Neil

              1 Reply Last reply Reply Quote 0
              • T
                TaTa
                last edited by Aug 30, 2018, 8:50 PM

                @nsherin I didn’t use any other files beside the ones came with 18.04.1 LTS. Can you re-extract all files in 18.04.1LTS iso and then reupload them back to /images/os/ubuntu/18.04/mate. You might need to add this line to your /etc/exports file and restart nfs services or restart your fog server.

                /images/os/ubuntu/18.04/mate *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
                

                Internet connection is still an issue with this method. You need to go to /etc/network/interfaces and change from manual to dhcp then restart your interface sudo /etc/init.d/networking restart

                N 1 Reply Last reply Sep 1, 2018, 10:56 PM Reply Quote 0
                • N
                  nsherin @TaTa
                  last edited by nsherin Sep 1, 2018, 4:58 PM Sep 1, 2018, 10:56 PM

                  Thanks again for your reply. Still no joy.

                  I’ve recopied the contents of the 18.04.1 LTS iso to /images/os/ubuntu/18.04/mate. after cleaning out that directory.

                  My menu config is as follows:

                  kernel nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/vmlinuz
                  initrd nfs://192.168.0.14/images/os/ubuntu/18.04/mate/casper/initrd imgargs vmlinuz initrd=initrd root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.0.14:/images/os/ubuntu/18.04/mate/ locale=en_GB.UTF-8 keyboard-configuration/layoutcode=gb quiet splash toram ip=dhcp rw
                  boot || goto MENU

                  There is no initrd.lz so had to change it to initrd

                  Booting up my test PXE client VM gives me a kernel panic:

                  0_1535842388321_pxetest-2018-09-01-23-52-10.png ![alt text](image url)

                  I added the following to /etc/exports:

                  /images/os/ubuntu/18.04/mate *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)

                  And rebooted the server. Same result!

                  I don’t want to use a DHCP assigned IP on my PXE server as I need it to resolve local DNS queries from my internal DNS server on the network. Is there a workaround/

                  Many thanks,
                  Neil

                  1 Reply Last reply Reply Quote 0
                  • D
                    davistran86
                    last edited by Dec 6, 2018, 3:50 AM

                    hi @nsherin , I succeed pxe boot with ubuntu 18.04 using following:

                    kernel tftp://192.168.84.16/os/ubuntu/Desk18.04/vmlinuz
                    initrd tftp://192.168.84.16/os/ubuntu/Desk18.04/initrd.lz
                    imgargs vmlinuz initrd=initrd.lz root=/dev/nfs boot=casper netboot=nfs nfsroot=192.168.84.16:/images/os/ubuntu/Desk18.04/ ip=dhcp systemd.mask=tmp.mount rw -- || read void
                    boot || goto MENU
                    
                    D 1 Reply Last reply Oct 19, 2019, 7:22 AM Reply Quote 1
                    • D
                      dureal99d @davistran86
                      last edited by Oct 19, 2019, 7:22 AM

                      @davistran86 this worked excellently.

                      i adopted mine to http flawless

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post

                      162

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project