[ltsp] problemas con booteo de clientes
Milton Galo Patricio Inostroza Aguilera
minoztro en gmail.com
Sab Mar 22 11:50:50 GMT 2008
Estimados:
Llevo varios días tratando de configurar ltsp en mi [1] ubuntu 7.10
y no he podido lograr hacer bootear los clientes a través de PXE.
[1] Linux peregrino 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC
2008 i686 GNU/Linux
Para instalar ltsp seguí el siguiente manual [2] y muestro los
archivos de configuración correspondientes que fuí editando:
[2] https://help.ubuntu.com/community/ThinClientHowto
Configuración de mi interfaz de red que entregará el dchp:
minostro en peregrino:~$ ifconfig eth0
eth0 Link encap:Ethernet direcciónHW 00:18:8B:A8:C7:66
inet addr:10.0.0.1 Difusión:10.0.0.255 Mask:255.255.255.0
UP DIFUSIÓN MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisiones:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Archivo de configuración /etc/ltsp/dhcp.conf:
minostro en peregrino:~$ cat /etc/ltsp/dhcpd.conf
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
next-server 10.0.0.1;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.20 10.0.0.250;
option domain-name "example.com";
option domain-name-servers 10.0.0.1;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}
}
El archivo de configuración portmap
minostro en peregrino:~$ cat /etc/default/portmap
# Portmap configuration file
#
# Note: if you manually edit this configuration file,
# portmap configuration scripts will avoid modifying it
# (for example, by running 'dpkg-reconfigure portmap').
# If you want portmap to listen only to the loopback
# interface, uncomment the following line (it will be
# uncommented automatically if you configure this
# through debconf).
#OPTIONS="-i 127.0.0.1"
Ahora muestro el archivo /etc/hosts.allow:
minostro en peregrino:~$ cat /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
nbdrootd: ALL: keepalive
portmap: 10.0.0.0/24
rpc.mountd: 10.0.0.0/24
rpc.statd: 10.0.0.0/24
in.tftpd: 10.0.0.0/24
Ahora muestro el fichero /opt/ltsp/i386/etc/ssh/ssh_known_hosts
minostro en peregrino:~$ cat /opt/ltsp/i386/etc/ssh/ssh_known_hosts
peregrino ssh-dss
AAAAB3NzaC1kc3MAAACBAKDovEhUDXLbmZRBGGWnVeir7qQLLmUaWbA714uhzVUSZR25U0jzRjLB1mulBpCiISVOL5ANuFW+0ZX7uu/hSzHkqmc1dFAJai2QV44H302Ct8Ng1YC5NVyWUjvs7kGkeRHxjB6GR4gxliCLYCf8R2pd+0uYyaxIltKGF0B6IgqfAAAAFQCy49hWNAcEwSvkfW8Nh9bVAyR6KwAAAIApp4Tmi22B8enFNfbgqED0h3EJed/ZNWRDzzWW7tkkSdDUrYkYlHyzOlho5hy0kTZm9blGjORTnxK1EiTKCcvUCFErqnEezjmoN45Ttbgk/tg9l/h5IFZq2ctrpE5yoREPwQHYk3Dx8DR/D/vd9qo/tQ1jg+w/BdtEUBVHMLQM2AAAAIBk2ugo7pQ3qG/LXIX+AjsBWYKZH5dg8B3MzsISAvHnzRw5ZVUrNOJtoA2N7ih8273w55Oc17vKpkbFUWyhrEPcggGbKQolb7JMlYB0XtSlrsHeHMlCgE7Q3hSntz03W56Ixdi/8LMjvZeLO5cFel1hmaAQtqnNB5EeJV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oXKxTZ3N7LTqlErwHBcjW+lt8UvXB2Bb4LweSa2ff4Hq1essBXAkFbjkO9dm2dGKYxJpa4XknhJhCNbZSXnqhfLNp8J5+EQ0FBL7eU3WOM6NqSJchYhlBTV+mTQQYzdKFPYOrmdmRGuBMQT4Sgq2tmE0bvtJoKdap6gemfrtXbNmlnlC3V/mH78QlDoDXYUnGsny68wkIwrG5WqrDYGPZASIhAXcue24IUY6wQlnb6xSwGPlFjph6b0bPl3SDFjIyxj5C3ZsOzVQ8M1h+w1aMMYr8oOO3u0qKqOmLkA1uDvCVSUuDIiGTOnKHeuQ==
Cuando realicé la instalación todo fue exitoso y no me arrojó ningún
problema...no sé en que estoy errando...he leído que quizás el tftp
está apuntando a un directorio erroneo o que mi archivo de
configuración exports tenía algún problema, muestro detalle de estos:
Archivo /etc/exports
minostro en peregrino:~$ sudo cat /etc/exports
[sudo] password for minostro:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
Estaba todo comentado y leí por ahí que agregando la linea siguiente
podría arrancar el cliente {luego ejecutar sudo invoke-rc.d
nfs-kernel-server reload }:
/opt/ltsp/i386
10.0.0.1/255.255.255.0(ro,no_root_squash,async,no_subtree_check)
Pero no logro que los clientes logren bootear.
Luego verifiqué si es que tftp estaba escuchando:
minostro en peregrino:~$ sudo netstat -anp | grep ":69 "
udp 0 0 0.0.0.0:69 0.0.0.0:*
5639/inetd
y como dato ultimo estas son las direcciones de mis archivos de ltsp:
minostro en peregrino:/opt/ltsp/i386$ ls
bin boot dev etc home initrd lib media mnt opt proc root
sbin srv sys tmp usr var
minostro en peregrino:/var/lib/tftpboot/ltsp/i386$ ls -lisa
total 17656
523406 4 drwxr-xr-x 3 root root 4096 2008-03-22 02:08 .
522952 4 drwxr-xr-x 3 root root 4096 2008-03-22 02:08 ..
523414 416 -rw-r--r-- 1 root root 420774 2007-10-14 22:35 abi-2.6.22-14-386
523411 80 -rw-r--r-- 1 root root 75391 2007-10-14 22:35 config-2.6.22-14-386
523419 0 lrwxrwxrwx 1 root root 24 2008-03-22 02:08 initrd.img
-> initrd.img-2.6.22-14-386
523412 4340 -rw-r--r-- 1 root root 4430491 2008-03-22 02:08
initrd.img-2.6.22-14-386
523418 4340 -rw-r--r-- 1 root root 4430593 2008-03-22 02:08
initrd.img-2.6.22-14-386.bak
523415 0 lrwxrwxrwx 1 root root 21 2008-03-22 02:08 nbi.img ->
nbi.img-2.6.22-14-386
523407 5996 -r--r--r-- 1 root root 6124833 2008-03-22 02:08
nbi.img-2.6.22-14-386
523416 16 -rw-r--r-- 1 root root 13552 2008-03-22 02:08 pxelinux.0
523408 4 drwxr-xr-x 2 root root 4096 2008-03-22 02:08 pxelinux.cfg
523417 792 -rw-r--r-- 1 root root 803541 2007-10-14 22:35
System.map-2.6.22-14-386
523410 0 lrwxrwxrwx 1 root root 21 2008-03-22 02:08 vmlinuz ->
vmlinuz-2.6.22-14-386
523413 1664 -rw-r--r-- 1 root root 1696312 2007-10-14 22:35
vmlinuz-2.6.22-14-386
El ultimo listado lo muestro para que vean los permisos.
La tarjeta del cliente creo que no interesa tanto ya que he probado
con varios computadores y ninguno ha funcionado....haciendo un tail -f
/var/log/sys al momento que el cliente no logra bootear y entra a su
sistema operativo y realiza la petición dhcp en mi computador
{servidor} veo lo siguiente:
Mar 22 02:26:33 peregrino dhcpd: DHCPREQUEST for 10.0.0.250 (10.0.0.1)
from 00:1e:8c:5c:84:ef (peregrino) via eth0
Mar 22 02:26:33 peregrino dhcpd: DHCPACK on 10.0.0.250 to
00:1e:8c:5c:84:ef (peregrino) via eth0
Mar 22 02:26:56 peregrino dhcpd: DHCPDISCOVER from 00:1e:8c:5c:84:ef
(peregrino) via eth0
Mar 22 02:26:56 peregrino dhcpd: DHCPOFFER on 10.0.0.250 to
00:1e:8c:5c:84:ef (peregrino) via eth0
Mar 22 02:26:56 peregrino dhcpd: DHCPREQUEST for 10.0.0.250 (10.0.0.1)
from 00:1e:8c:5c:84:ef (peregrino) via eth0
Mar 22 02:26:56 peregrino dhcpd: DHCPACK on 10.0.0.250 to
00:1e:8c:5c:84:ef (peregrino) via eth0
es decir el dhcp está funcionando.
Por favor a alguien que me pueda ayudar...estoy desesperado ya que
debo terminar está configuración antes de irme de viaje =/...disculpen
por lo extenso del correo pero creo que era necesario, saludos
--
Milton Inostroza Aguilera
Más información sobre la lista de distribución ubuntu-es