Project

General

Profile

Actions

PXE Server

this image server lives on giljagaur because there is a potential security risk.
Note: foley setup the multiboot, but it is not documented yet. It is in SVN under Machines/PXE

Default config

  • user root, passwd 100feet
  • user test, passwd heistesty!

Guides

Installation

  1. Login to pxe.dev.ru.is (password 100feet for now)
    ssh root@pxe.dev.ru.is
  1. Install packages
    sudo apt-get install openbsd-inetd tftpd-hpa
  2. setup DHCP Server to give appropriate image (edit /etc/dhcp3/dhcpd.conf on dhcp.dev.ru.is)
    subnet 130.208.209.0 netmask 255.255.255.224 {
        <other config here>
        filename "pxelinux.0";
        next-server pxe;
    }
    
  3. Download the latest version of the alternate install netboot stuff (precise is the name of ubuntu release 12.04, change it for installing an different version)
    wget -r -nH -P ubuntu-netboot/ --cut-dirs=8 -np http://ubuntu.lhi.is/ubuntu/dists/precise/main/installer-i386/current/images/netboot/
    # remove some unnecessary files
    find ubuntu-netboot/ -name 'index.html*' -exec rm {} \;
    
  4. Copy the data into the tftp directory
    sudo cp -r ubuntu-netboot/* /var/lib/tftpboot/
  5. Test that tfpd is working. You should see a pxelinux.0 file when this runs correctly and some information about the transfer
    sudo apt-get install tftp-hpa
    cd /tmp
    tftp pxe -v -m binary -c get pxelinux.0
    

Kickstart

Kickstart allows you to answer most of the questions that would occur during install beforehand and save this information as file.

  1. Install apache (or some other webserver) to make the kickstart file available
    sudo apt-get install apache2
  2. Find a debian machine with Xwindows and use system-config-kickstart to create ks.cfg
    sudo apt-get install system-config-kickstart
    system-config-kickstart
    scp ks.cfg root@pxe.dev.ru.is:/var/www  # copy to http server on pxe
  3. OR Grab the ks.cfg from SVN in Machines/PXE. You may need to be in www-data group on the machine
    cp /afs/dev.ru.is/project/devnet/workspace/Machines/PXE/ks.cfg /var/www
  4. edit the pxe boot menu /var/lib/tftpboot/ubuntu-installer/i386/boot-screens/txt.cfg (text.cfg in older versions) and add the following lines to add an entry which uses the kickstart file
    label install-ks
            menu label ^Install using Kickstart
            menu default
            kernel ubuntu-installer/i386/linux
            append ks=http://pxe.dev.ru.is/ks.cfg vga=normal initrd=ubuntu-install\
    er/i386/initrd.gz --
    

Install Useful things

  • apt-get install openssh-server

Updated by Joseph Foley over 9 years ago · 1 revisions