Remote boot / dynamic linking probs

From: Mads Andreasen (manREMOVETHIS_at_aub.dk)
Date: 11/03/03


Date: Mon, 3 Nov 2003 19:50:54 +0100

Hi All

I'm trying to boot a linux machine via a network connection. I am at a point
where I can boot the kernel, but not much more.

My Setup:
Client (the one that needs to boot): Low end pc system with no form for
disk. Network adapter with PXE support.

Server: Redhat 8, DHCP, TFTP, NFS. I've exportet a directory over NFS, that
the client will use as it's root fileystem. Into that I've copied some
initial programs and the libraries that they use (found with ldd).

When I boot the client, I see the kernel beeing startet, but when it comes
to calling the init program it hangs.

To ifnd possible errors I've created a HelloWorld init replacement. It has 2
library dependencies (ld-x.x.x.so and libc6.so). I've made a communications
trace with Ethereal, and I can see that it retrieves the ld.x.so over NFS
protocol, but then nothing happens. If I delete the ld.x.so an error is
printed.

I then tried to link HelloWorld statically, and that executes, prints
HelloWorld and exits with kernel panic (just as expected).

On the server I've tried to do a chroot to the NFS exported directory, and
the dynamic linked helloworld executes fine there.

I'm really at a loss here.. I've tried to google for a solution, but to no
avail... heeeeelp.....

-Mads



Relevant Pages

  • Re: PXE boot
    ... The DHCP server ... The NFS server ... The DHCP servers task is to tell any asking clients that a boot image is ... The next step is to tell it about where to get a kernel and ...
    (Ubuntu)
  • Remote boot / dynamic linking probs
    ... I'm trying to boot a linux machine via a network connection. ... Redhat 8, DHCP, TFTP, NFS. ... When I boot the client, I see the kernel beeing startet, but when it comes ... To ifnd possible errors I've created a HelloWorld init replacement. ...
    (comp.os.linux.embedded)
  • Re: [opensuse] Root on NFS
    ... Once upon a time there was an option in Linux kernel that was ... called "Root file system on NFS" or something like that. ... needs to boot something first, typically from a NIC bootrom, a floppy, ...
    (SuSE)
  • RE: nfsiod tasks started in error
    ... This may be a error in the new boot up process. ... threads simply allow multiple concurrent NFS requests. ... They aren't tasks, but kernel threads. ...
    (freebsd-stable)
  • 2.6.28-rc2: REGRESSION in early boot
    ... I've opened a Kernel Bug to track this regression: ... Essentially, the system panics in early boot, resulting in multiple ... commit d6c88a507ef0b6afdb013cba4e7804ba7324d99a ... # Device Drivers ...
    (Linux-Kernel)