NFS/dhcp/tftp on eth1, kernel search NFS it on eth0

Frédéric BOITEUX fboiteux at calistel.com
Mon Oct 6 10:33:42 CEST 2008


Le dim 05 oct 2008 12:17:43 CEST, Jean Spirat <jeanspirat at squirk.org> a
écrit :

> Jean Spirat a écrit :
> > Hello,
> >
> >  All my tests works well but i have a failure when i try to install a 
> > host with two ethernet cards. The dhcp and tftp runs on the eth1 
> > network and it works fine. But the issue is that the fai kernel when 
> > loaded bring not eth1 but eth0.
> >
> >  So it can never connect to the nfs server.i tried to add 
> > ether=0,0,eth1 to the pxe config but this does not work as it seems 
> > the tg3 modules is not in kernel but comes from the initramfs. I do 
> > not see how i can change anything in the fai kernel or initd to make 
> > this works. Anyone know how to deal with this problem or know if i do 
> > something wrong ?

  Hello,

  I've got the same problem with a Debian-Live system booted from PXE
network (follow this thread :
http://lists.debian.org/debian-live/2008/09/msg00248.html), and the solution was to use a small script (attached to this e-mail) to select the right interface (one connected) to do the DHCP, then NFS mount. The script has to be installed in the FAI's initrd : put it in the scripts/init-premount/ of the FAI Initramfs' config directory () and rebuild the initrd for your net boot.

	Fred.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select_eth_device
Type: application/octet-stream
Size: 1909 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20081006/06ef521b/attachment.obj 


More information about the linux-fai mailing list