- Timestamp:
- 02/21/02 16:30:43 (22 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/INSTALL
r8 r9 1 Here follow some basic installation sinstructions.1 Here follow some basic installation instructions. 2 2 3 3 To activate the 'pxeconfigd' daemon the following actions are required: … … 28 28 29 29 4) As you can see '/tftpboot/pxelinux.cfg/' is the default directory. If 30 you placed the config files some 30 you placed the config files somewhere else you can add the 31 31 '-d/--directory' option, eg: 32 32 pxeconfigd stream tcp nowait root.sys /usr/sbin/tcpd \ 33 33 /usr/sara/sbin/pxeconfigd -d /<some>/<other>/<place> 34 34 35 If the daemon works and you want to install/reinstall a node a link35 If the daemon works and you want to install/reinstall a node, a link 36 36 must be placed in the '/tftpboot/pxelinux.cfg' directory. This can 37 37 be done with the 'pxeconfig' utility. This utility will ask some 38 question and make the links for you. The utility requirethe following38 questions and will make the links for you. The utility requires the following 39 39 setup: 40 1) All the pxe configuration files must start with preamble 'default.' 40 1) All the pxe configuration files must start with the keyword 'default.' 41 N.B.: yes, the dot after 'default' is part and parcel of the keyword! 41 42 In this distribution two examples are included. Pxeconfig lets the 42 user decide w itch 'default.' config file to use.43 user decide which 'default.' config file to use. 43 44 44 2) If default is a link to for example default.harddisk. Then45 2) If default is a symbolic link to for example default.harddisk, then 45 46 default.harddisk is not included in the list where the user can 46 47 choose from. 47 48 48 3) You can give command line switch to specifiy where the49 3) You can give a command line switch to specify where the 49 50 pxe config files reside: 50 51 pxeconfig -d /<some>/<other>/<place> 51 52 52 53 The last utility is 'hexls'. This utility will display the hex pxe config 53 file with the corresponding ip-addres .54 file with the corresponding ip-addresses. 54 55 55 To activate this on a client you must add the thisline to the 'master'56 To activate this on a client you must add the following line to the 'master' 56 57 script of the node. It will remove the pxe config file for the node 57 58 on the bootserver. I personally place the line just before the network -
trunk/pxeconfig/README
r8 r9 2 2 ------------- 3 3 4 These is a release of the SARA utilities that we use to boot our nodes with 5 PXE network cards. This was developed because we always want to use the 6 PXE network card as our first boot device. With pxelinux which is a derivative 7 of syslinux you can specify how the node must boot by a configuration 8 file. This configuration is placed in, eg '/tftpboot/pxelinux.cfg' directory. 4 This is a release of the SARA package of utilities that we use to boot 5 our nodes with PXE-enabled network cards. This was developed because we 6 always want to use the PXE-enabled network card as our first boot device. 7 With pxelinux, which is a derivative 8 of syslinux, you can specify with a PXE configuration file how the node must 9 boot. 10 This configuration is placed in, e.g. '/tftpboot/pxelinux.cfg' directory. 9 11 10 12 In our setup we have a default setup. The default setup is to boot from 11 harddisk. When node boots it fetches the default configuraion file and the13 harddisk. When a node boots it fetches the default configuraion file and the 12 14 configuration file tells the node to boot from the harddisk. This setup 13 15 is used for nodes that have already been installed by systemimager. 14 16 15 At SARA we have developed astrategy how to install a fresh node.17 At SARA we have developed the following strategy how to install a fresh node. 16 18 17 19 1) The ip-address in our setup is known for the new node. So … … 40 42 41 43 hexls) 42 Is a utility that diplays a directory andif in this directory43 contains HEX files it will convert them to IP-numbers.44 Is a utility that diplays a directory, and, if in this directory 45 contains HEX files, it will convert them to IP-numbers. 44 46 45 47 46 All th isutilities are written in Python.48 All these utilities are written in Python. 47 49 48 50 Comments or Suggestions mail them to: -
trunk/pxeconfig/changelog
r8 r9 1 Always edit this file when changes are commited:: a1 Always edit this file when changes are commited:: 2 2 3 3 $Log: changelog,v $ 4 Revision 1.8 2002/02/21 15:30:43 sscpbas 5 Fixes some typos. Thanks to Huun Stoffers 6 4 7 Revision 1.7 2002/02/21 15:05:48 sscpbas 5 8 Fix some spell errors. Thanks Jaap -
trunk/pxeconfig/pxeconfig
r6 r9 7 7 # 8 8 # CVS info 9 # $Date: 2002/02/21 1 3:21:51$10 # $Revision: 1. 4$9 # $Date: 2002/02/21 15:30:43 $ 10 # $Revision: 1.5 $ 11 11 # 12 12 # Copyright (C) 2000, SARA. … … 26 26 """ 27 27 With this program you can configure which PXE configuration file 28 to use when a node boots. The program mwill ask the following questions:28 to use when a node boots. The program will ask the following questions: 29 29 1) Network address (Class C-network address only) 30 2) Starting num mber30 2) Starting number 31 31 3) Ending number 32 4) Which PXE config file to use .32 4) Which PXE config file to use 33 33 34 34 For example, if the answers are: … … 66 66 def choice_pxe_configfile(): 67 67 """ 68 Let user cho ice which pxeconfig file to use.68 Let user choose which pxeconfig file to use. 69 69 """ 70 70 71 71 os.chdir(PXE_CONF_DIR) 72 72 73 # Try to determine to which default file point toand74 # if exists remove it from te list.73 # Try to determine to which file the default symlink points, and 74 # if it exists, remove it from the list. 75 75 # 76 76 try: … … 103 103 104 104 # Is the user smart enough to select 105 # the right value 105 # the right value?? 106 106 # 107 107 if 0 < index <= len(files): break … … 112 112 """ 113 113 Create the links in the PXE_CONF_DIR, 114 list : A list containing: network hex addres , pxe config file,114 list : A list containing: network hex address, pxe config file, 115 115 start number, end number 116 116 """ … … 127 127 def check_network(net): 128 128 """ 129 This function check if the give network is a Class C-network and will129 This function checks if the give network is a Class C-network and will 130 130 convert the network address to a hex address if true. 131 131 """ … … 170 170 print __doc__ 171 171 172 network = raw_input('Give network addres (xxx.xxx.xxx): ')172 network = raw_input('Give network address (xxx.xxx.xxx): ') 173 173 naddr = check_network(network) 174 174
Note: See TracChangeset
for help on using the changeset viewer.