Forums

Resolved
0 votes
Hi all,

I have ClearOS 5.2 and I want to provide the option for workstations to PXE boot into a Ubuntu LiveCD.

This is what I have done so far:
* created a flexshare called netboot where I have placed the latest Ubuntu Desktop ISO image
* Installed nfs-utils and palced the following line in the /etc/exports file:
/var/flexshare/shares/netboot *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
* Restarted NFS
* I have correctly setup DHCP
* Downloaded the Netboot file for Ubuntu and extracted it to the netboot share.
* A workstation can successfully PXE boot and get to the menu and I can run the Install option in the menu

The problem is that the pxelinux menu does not have a Menu Item for starting the LiveCD and I can't figure out now how best to do this.

The 2 options I see are as follows:
1) Get the menu to "mount" the ISO and start Ubuntu
2) I extract the contents of the ISO to the netboot share and set the menu to start Ubuntu.

Any thoughts on what the menu items should look like?

This is what the pxelinux menu files currently look like:

/pxelink.cfg/default:


# D-I config version 2.0
include ubuntu-installer/i386/boot-screens/menu.cfg
default ubuntu-installer/i386/boot-screens/vesamenu.c32
prompt 0
timeout 0



/ubuntu-installer/i386/boot-screens/menu.cfg


menu hshift 13
menu width 49
menu margin 8

menu title Installer boot menu
include ubuntu-installer/i386/boot-screens/stdmenu.cfg
include ubuntu-installer/i386/boot-screens/txt.cfg
include ubuntu-installer/i386/boot-screens/gtk.cfg

menu begin advanced
menu title Advanced options
include ubuntu-installer/i386/boot-screens/stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
include ubuntu-installer/i386/boot-screens/adtxt.cfg
include ubuntu-installer/i386/boot-screens/adgtk.cfg
menu end
label help
menu label ^Help
text help
Display help screens; type 'menu' at boot prompt to return to this menu
endtext
config ubuntu-installer/i386/boot-screens/prompt.cfg



/ubuntu-installer/i386/boot-screens/txt.cfg:


default install
LABEL ^Ubuntu 12.04 LiveCD
menu default
find --set-root ubuntu-12.04-desktop-i386.iso
map ubuntu-12.04-desktop-i386.iso (0xff) || map --mem ubuntu-12.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel casper/vmlinuz file=ubuntu/preseed/ubuntu.seed noprompt boot=casper persistent iso-scan-filename=ubuntu-12.04-desktop-i386.iso quiet splash --
initrd casper/initrd.lz
label install
menu label ^Install
kernel ubuntu-installer/i386/linux
append vga=788 initrd=ubuntu-installer/i386/initrd.gz -- quiet
label cli
menu label ^Command-line install
kernel ubuntu-installer/i386/linux
append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=788 initrd=ubuntu-installer/i386/initrd.gz -- quiet
Saturday, June 09 2012, 08:44 AM
Share this post:
Responses (11)
  • Accepted Answer

    Saturday, June 08 2013, 08:50 PM - #Permalink
    Resolved
    0 votes
    I didn't get to test it for that long as it was a testbed and ended up nuking the filesystem by accident so I never came across this issue but it worked for me while the box was running.

    Still, given a choice, I would also run it on COS 6.x
    The reply is currently minimized Show
  • Accepted Answer

    John
    John
    Offline
    Friday, June 07 2013, 10:55 AM - #Permalink
    Resolved
    0 votes
    I see ... so that would mean that on a COS 5.2 box the same instability issues would occur when using "portmap".
    See: NFS Server on COS 5.2 & -6.4

    The only solution I know is to install COS 6.#, because AFAIK there is no way to install "rpcbind" on COS 5.2.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 07 2013, 07:08 AM - #Permalink
    Resolved
    0 votes
    It does require the pxe boot server.

    Fog actually installs all the required elements and isn't as difficult as it looks as far as I remember
    The reply is currently minimized Show
  • Accepted Answer

    John
    John
    Offline
    Wednesday, June 05 2013, 03:27 PM - #Permalink
    Resolved
    0 votes
    Hi James,

    No problem ... live goes on ... I know all about it.
    I could not find a How To install FOG on COS.
    It looks rather complicated when I check the video tutorial.
    I am not sure if it is required to run a PXE server.
    If it is ... then please clarify in more detail, how FOG helped to fix that last 10% ...

    Greetings,

    John
    The reply is currently minimized Show
  • Accepted Answer

    Monday, May 27 2013, 08:37 AM - #Permalink
    Resolved
    0 votes
    Sorry for the late reply, married with children and busy with work and all of that.

    I could not get the full configuration correct (was 90% there) and FOG helped to fix that.
    The reply is currently minimized Show
  • Accepted Answer

    John
    John
    Offline
    Tuesday, May 07 2013, 09:40 PM - #Permalink
    Resolved
    0 votes
    Hi all,

    This issue may be solved for some, but not for me ... and many others when I Google it.
    The error message I get is:
    IP-Config: no response after # secs

    The end result is a kernel panic ... :ohmy:

    I realize that this is an old thread and I have opened a new one for this and many other issues I have with PXE booting:
    [ul]HowTo: Add functionality to your PXE server[/ul]
    Please advice,

    John

    Ps.
    James ... what does FOG have to do with solving this issue for you ... ?!?

    EDIT:
    I have found the solution and I have updated my own thread.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 11 2012, 09:15 AM - #Permalink
    Resolved
    0 votes
    Glad it worked out for you :)
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 10 2012, 07:16 PM - #Permalink
    Resolved
    0 votes
    Okay, I tossed caution into the wind and actually installed FOG, had a closer look at the documentation and got it working.

    The catch was this (had 1 first two of these correct):
    * mount the ISO image into a folder within one of the flexshares
    * NFS export the mounted ISO folder
    * create an entry in the pxelinux.cfg/default file with the following information:
    LABEL Ubuntu 12.04 DVD
    KERNEL ubuntu12.04x86/casper/vmlinuz
    APPEND root=/dev/nfs boot=casper netboot=nfs nfsroot=10.0.0.2:/var/flexshare/shares/netboot/ubuntu12.04x86 initrd=/ubuntu12.04x86/casper/initrd.lz quiet splash --


    Can't believe I struggled for a whole day on this issue but it is now solved.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 10 2012, 07:43 AM - #Permalink
    Resolved
    0 votes
    Thanks for the suggestion, herballizard, it is a goo one and in the long-term that could be something to work towards.

    In reading through the documentation, it is possible run a LiveCD, but it will require editing the very config files that I am struggling with right now. Which means I have to get past this stumbling block before testing FOG.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 10 2012, 02:40 AM - #Permalink
    Resolved
    0 votes
    Just throwing it out there. Have you had a look at FOG http://www.fogproject.org/?q=node/1
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 09 2012, 10:09 AM - #Permalink
    Resolved
    0 votes
    Forgot to add, I plan to add additional items to the menu options to run other LiveCDs like Clonezilla, Knoppix, etc. So it would be useful to get this solved before I move onto the others.
    The reply is currently minimized Show
Your Reply