Changes between Initial Version and Version 1 of PxeInstallation


Ignore:
Timestamp:
11/14/06 11:04:33 (15 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PxeInstallation

    v1 v1  
     1[[ShowPath]]
     2[[PageOutline]]
     3
     4== Installation ==
     5First get the latest stable source of the package from:
     6
     7    * ftp://ftp.sara.nl/pub/outgoing/pxeconfig.tar.gz
     8
     9Then unpack the package. There are 3 methods to build the package:
     10    * Debian package
     11    *
     12
     13== Debian package ==
     14
     15{{{
     16
     17Here follow some basic installation instructions.
     18
     19If you are using DEBIAN then you can run the following utility:
     20 make_deb_pkg.sh) This will make debian package that you can install
     21                  with dpkg -i <packagename>
     22
     23
     24To activate the 'pxeconfigd' daemon utility on other platforms use this
     25procedure:
     26 1) edit '/etc/services', eg:
     27      pxeconfigd      6611/tcp                       # pxe config daemon
     28
     29 2) Install the server:
     30    a) inetd.conf
     31      - edit '/etc/inetd.conf', eg:
     32        pxeconfigd stream  tcp nowait  root.sys /usr/sbin/tcpd \
     33          /usr/sara/sbin/pxeconfigd
     34
     35      - /etc/init.d/inetd reload
     36
     37    b) xinetd
     38      - cp pxeconfigd.xinetd /etc/xinetd.d/pxeconfigd
     39      - /etc/init.d/xinetd reload
     40
     41    NOTE: the pxeconfigd can only be started from inetd or xinetd!!!
     42
     43
     44 4) You can test it by:
     45     telnet localhost pxeconfigd (or port number)
     46
     47     output:
     48       Trying 127.0.0.1...
     49       Connected to localhost.
     50       Escape character is '^]'.
     51       ip = 127.0.0.1, hex = 7F000001
     52       file = /tftpboot/pxelinux.cfg/7F000001
     53       Connection closed by foreign host.
     54
     55     In syslog a line will be added if the removal is succesful:
     56      Feb 20 09:32:40 test pxeconfigd: /tftpboot/pxelinux.cfg/7F000001
     57
     58 4) As you can see '/tftpboot/pxelinux.cfg/' is the default directory. If
     59    you placed the config files somewhere else you can add the
     60    '-d/--directory' option, eg:
     61       pxeconfigd stream  tcp nowait  root.sys /usr/sbin/tcpd \
     62        /usr/sara/sbin/pxeconfigd -d /<some>/<other>/<place>
     63
     64If the daemon works and you want to install/reinstall a node, a link
     65must be placed in the '/tftpboot/pxelinux.cfg' directory. This can
     66be done with the 'pxeconfig' utility. This utility will ask some
     67questions and will make the links for you. The utility requires the following
     68
     69setup:
     70  1) All the pxe configuration files must start with the keyword 'default.'
     71     N.B.: yes, the dot after 'default' is part and parcel of the keyword!
     72     In this distribution two examples are included. Pxeconfig lets the
     73     user decide which 'default.' config file to use.
     74
     75  2) If default is a symbolic link to for example default.harddisk, then
     76     default.harddisk is not included in the list where the user can
     77     choose from.
     78
     79  3) You can give a command line switch to specify where the
     80     pxe config files reside:
     81        pxeconfig -d /<some>/<other>/<place>
     82
     83The last utility is 'hexls'. This utility will display the hex pxe config
     84file with the corresponding ip-addresses.
     85
     86To activate this on a client you must add the following line to the 'master'
     87script of the node. It will remove the pxe config file for the node
     88from the pxe bootserver. I personally place the line just before the umount
     89commands. See below which command to use for which systemimager version.
     90Telnet is not included in the 3.X versions.
     91   # Remove the <hex_ipaddr> file from the pxelinux.cfg directory.
     92   # So the client will boot from disk
     93   #
     94   3.X)  chroot /a telnet $IMAGESERVER 6611
     95   2.X)  telnet $IMAGESERVER 6611
     96
     97
     98Comments or Suggestions mail them to:
     99 Bas van der Vlies <basv@sara.nl>
     100 http://www.sara.nl for more info about SARA
     101}}}
     102
     103