Results 1 to 2 of 2

Thread: Ubuntu over PXE

  1. #1
    Join Date
    Aug 2012
    Beans
    17

    Ubuntu over PXE

    The goal: Boot Ubuntu 12.04 over network using NFS, TFTPD-HPA, and dhcp

    DHCP is provided by a pfsense router. This has been forwarded to the IP and filename pxelinux.0
    TFTPD-HPA is started by init.d and NFS is by itself to start.

    In /etc/inetd.conf I have:

    tftp dgram udp wait root /usr/sbin/in.tftpd/usr/sbin/in.tftpd -s /var/lib/tftpboot

    I installed nfs-kernelserver and in /etc/exports I added this:

    /var/lib/tftpboot/0 192.168.1.0/24(ro,sync,insecure,all_squash)


    Under the /var/lib/tftpboot/ folder, I have some stuffs:

    /var/lib/tftpboot/

    <DIR> 0
    pxelinux.0
    <DIR> pxelinux.cfg
    <DIR> syslinux

    The 0 folder will contain all future media
    The pxelinux.0 originated from the syslinux folder (see below)
    The pxelinux.cfg folder has the default file in it for initial connection
    The syslinux folder has all files originally found in /usr/lib/syslinux/*
    The pxelinux.0 file was copied from here.

    After that, in the 0 directory I extracted all of the files from the ubuntu iso to a folder called ubuntu

    I then copied the vmlinuz and initrd.lz files from /var/lib/tftpboot/0/ubuntu/casper to /var/lib/tftpboot/0/ubuntu

    My pxelinux.cfg/default is as follows:

    UI syslinux/menu.C32
    PROMPT 0

    LABEL UBUNTU

    MENU LABEL UBUNTU
    KERNEL 0/ubuntu/vmlinuz
    APPEND boot=casper netboot=nfs nfsroot=192.168.1.184:/var/lib/tftpboot/0/ubuntu initrd=0/ubuntu/initrd.lz

    When I boot a client, however, I get this: http://i.imgur.com/5hkRUkD.png (This occurs on both VMs and real machines) Typing results in nothing, but the keyboards are not the issue, as if one of laptops turns off one of its screens, I can activate it by using a keypress.

    Last edited by jamesaepp; May 16th, 2013 at 06:01 AM.

  2. #2
    Join Date
    Apr 2009
    Beans
    3

    Re: Ubuntu over PXE

    You didn't copy everything over to var/lib/tftpboot/0/ubuntu. A .disk folder was missed.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •