network boot problems

Patrick Fröger patrick.froeger at web.de
Mon Sep 8 16:06:38 CEST 2003


Hello everybody,

  A few months ago, I installed FAI 2.4 on a Debian Woody and configured everything.
  No (major) problems.
  Now, I installed the new FAI 2.5 on a Debian Sarge and copied my old
  config files over (at least, I hope to have copied everything...).

  I'm booting the clients over network with PXE. The first problem i
  had was that the clients stopped booting with an "Could not fond
  kernel image: linux." error. Therefore, I created a linux ->
  vmlinuz-install link. Now, that part works.
  But now, when the client boots the kernel, I get the following
  error:
  .
  .
  .
  kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno = 2
  VFS cannot open root device "" or 08:01
  Please append a correct "root=" boot option
  Kernel panic: VFS: Unable to mount root fs on 08:01

  I checked /etc/exports and /etc/dhcp3/dhcpd.conf and I couldn't find
  any error in there.

  Anyway, here are some of my config files. I hope someone can help
  me...

 --
 Best regards,
  Patrick                          mailto:patrick.froeger at web.de


  
/etc/exports:
-------------
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#/usr/local/share/fai @faiclients(ro)
#/usr/lib/fai/nfsroot @faiclients(ro,no_root_squash)

/usr/local/share/fai 192.168.0.0/255.255.255.0(ro)
/usr/lib/fai/nfsroot 192.168.0.0/255.255.255.0(ro,no_root_squash)
  

/etc/dhcp3/dhcpd.conf:
---------------------
log-facility local7;
option dhcp-max-message-size 2048;
use-host-decl-names on;

#filename "/boot/fai/pxelinux.0";
filename "pxelinux.0";

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.50 192.168.0.60;
  option domain-name-servers 192.76.144.66;
  option routers 192.168.0.100;
  option broadcast-address 192.168.0.255;
  default-lease-time 600;
  max-lease-time 7200;
  option host-name "ids";
  option root-path "/usr/lib/fai/nfsroot";
}


ls -laR /boot/fai/:
-------------------
/boot/fai/:
total 980
drwxr-xr-x    3 root     root         1024 Sep  8 15:51 .
drwxr-xr-x    4 root     root         1024 Sep  1 11:27 ..
lrwxrwxrwx    1 root     root           15 Sep  8 15:51 linux -> vmlinuz-install
-rw-r--r--    1 root     root        11168 Sep  5 15:02 pxelinux.0
drw-r--r--    2 root     root         1024 Sep  8 16:08 pxelinux.cfg
-rw-r--r--    1 root     root       983355 Apr 29 16:17 vmlinuz-install

/boot/fai/pxelinux.cfg:
total 3
drw-r--r--    2 root     root         1024 Sep  8 16:08 .
drwxr-xr-x    3 root     root         1024 Sep  8 15:51 ..
-rw-r--r--    1 root     root          608 Sep  8 16:08 default


/boot/fai/pxelinux.cfg/default:
-------------------------------
label fai-install
kernel vmlinuz-install
append ip=dhcp root=/dev/nfs FAI_FLAGS=verbose,createvt,sshd

# if you have a problem add next line
 append auto rw root=/dev/nfs nfsroot=/usr/lib/fai/nfsroot nfsaddrs=kernel ip=255.255.255.255:autoconf

label fai-local
kernel localkernel

# the following parameters are not needed since this information is
# received from the dhcp daemon
# if you want to use this, please read Documentation/nfsroot.txt in
# the kernel sources
# append nfsroot=<NFSERVER>:/usr/lib/fai/nfsroot
# ip=<CLIENT_IP>:<SERVER_IP>:<GATEWAY>:<NETMASK>:<HOSTNAME>:<ETH-device>:dhcp


/etc/inetd.conf:
----------------
.
.
.
#:BOOT: Tftp service is provided primarily for booting.  Most sites
# run this only on machines acting as "boot servers."
#tftp           dgram   udp     wait    root  /usr/sbin/in.tftpd /var/ftpd
tftp            dgram   udp     wait    root  /usr/sbin/in.tftpd in.tftpd -s -r blksize /boot/fai
.
.
.




More information about the linux-fai mailing list