User Tools

Site Tools


operating_systems:linux:debian:nfsboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
operating_systems:linux:debian:nfsboot [2012/08/26 09:00] – [The problem] sbolayoperating_systems:linux:debian:nfsboot [2012/08/26 09:16] (current) – [LINKS] sbolay
Line 23: Line 23:
 <html> <html>
 <div style="width: 75%; border-width: 1px; border: solid; text-align: center; padding: 10px; margin: 10px"> <div style="width: 75%; border-width: 1px; border: solid; text-align: center; padding: 10px; margin: 10px">
-Finally, I found that both the mount and nfsmount present in the initrd doesn't work!+Finally, I found that both the mount and nfsmount present in the initrd doesn't work!<br>
 So, I <a href="http://wiki.bolay.net/doku.php?id=operating_systems:linux:debian:nfsboot#with_initrd">replaced one line in the nfs script present in the initrd and added in /sbin the mount.nfs command</a>. So, I <a href="http://wiki.bolay.net/doku.php?id=operating_systems:linux:debian:nfsboot#with_initrd">replaced one line in the nfs script present in the initrd and added in /sbin the mount.nfs command</a>.
 </div> </div>
Line 35: Line 35:
   - Give the opportunity to boot through PXE on an NFS filesystem.   - Give the opportunity to boot through PXE on an NFS filesystem.
  
 +<html>
 +<div style="color: red; font-size: large;">
 Personally and in accordance with the DEBIAN guidelines, I finally chose to boot with an initrd. Personally and in accordance with the DEBIAN guidelines, I finally chose to boot with an initrd.
 +</div> 
 +</html>
 ===== Network structure ===== ===== Network structure =====
   * server: NFS/TFTP (ETCH - Linux server 2.6.18-6-686)    * server: NFS/TFTP (ETCH - Linux server 2.6.18-6-686) 
Line 64: Line 67:
  
 ==== Kernel ==== ==== Kernel ====
-([[http://packages.debian.org/search?keywords=git-core|git cloned]]) +([[http://packages.debian.org/search?keywords=git-core|git cloned]])\\ 
-The directory structure is (so you have to do a mkdir):+ 
 +The directory structure is (so you have to do a **mkdir**):
   * kernel 2.6.20 (for etch): /srv/work/tftp/distro/linux-kernel-2.6.20   * kernel 2.6.20 (for etch): /srv/work/tftp/distro/linux-kernel-2.6.20
   * kernel 2.6.26 (for lenny): /srv/work/tftp/distro/linux-kernel-2.6.26   * kernel 2.6.26 (for lenny): /srv/work/tftp/distro/linux-kernel-2.6.26
Line 214: Line 218:
 ==== DHCP/TFTP/NFS server installation ==== ==== DHCP/TFTP/NFS server installation ====
 First install your DHCP/TFTP/NFS server as widely explained in [[operating_systems:linux:debian:nfsboot#links|other how-to]].\\ First install your DHCP/TFTP/NFS server as widely explained in [[operating_systems:linux:debian:nfsboot#links|other how-to]].\\
 +
 For information, This is my configuration: For information, This is my configuration:
 === TFTP === === TFTP ===
 +
 served by [[http://packages.debian.org/search?keywords=tftpd-hpa|tftpd-hpa]]\\ served by [[http://packages.debian.org/search?keywords=tftpd-hpa|tftpd-hpa]]\\
 +
 root@server:/#cat /etc/xinetd.d/tftp root@server:/#cat /etc/xinetd.d/tftp
 <code bash> <code bash>
Line 235: Line 242:
 === DHCP === === DHCP ===
  
-served by [[http://packages.debian.org/search?keywords=dhcp3-server|dhcp3-server]]+served by [[http://packages.debian.org/search?keywords=dhcp3-server|dhcp3-server]]\\ 
 root@server2:#cat /etc/dhcp3/dhcpd.conf root@server2:#cat /etc/dhcp3/dhcpd.conf
 <code bash> <code bash>
Line 243: Line 251:
  next-server server; #in fact here I have the IP address of the TFTP server  next-server server; #in fact here I have the IP address of the TFTP server
 } }
-<code>+</code>
  
 === NFS === === NFS ===
-served by [[http://packages.debian.org/search?keywords=nfs-kernel-server|nfs-kernel-server]]+served by [[http://packages.debian.org/search?keywords=nfs-kernel-server|nfs-kernel-server]]\\ 
 root@server:#cat /etc/exports root@server:#cat /etc/exports
 <code bash> <code bash>
Line 270: Line 279:
 === Package verification/installation === === Package verification/installation ===
 First check that all tools you need are present. First check that all tools you need are present.
 +
 In this example, I show the missing nfs support for the **mount** command, then the installation of the respective package and finally a successfully test: In this example, I show the missing nfs support for the **mount** command, then the installation of the respective package and finally a successfully test:
 <code bash> <code bash>
Line 311: Line 321:
 </code> </code>
  
-=== WITH initrd ===+==== WITH initrd ====
 (see Documentation/initrd.txt)\\ (see Documentation/initrd.txt)\\
 +
 FIXME http://www.lugatgt.org/articles/booting.inittools/downloads/presentation.pdf \\ FIXME http://www.lugatgt.org/articles/booting.inittools/downloads/presentation.pdf \\
 FIXME http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html \\ FIXME http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html \\
Line 359: Line 370:
 ==== WHITOUT initrd ==== ==== WHITOUT initrd ====
 (see Documentation/nfsroot.txt at least in 2.6.20! It has disappeared in 2.6.26!) (see Documentation/nfsroot.txt at least in 2.6.20! It has disappeared in 2.6.26!)
 +
 /srv/work/tftp/linux/debian/menu/default /srv/work/tftp/linux/debian/menu/default
 <code bash> <code bash>
Line 390: Line 402:
  
 Q: mountd[11516]: refused mount request from gateway.iro for /srv/work/tftp/distro/lenny (/srv/work/tftp/distro/lenny): illegal port 12817 \\ Q: mountd[11516]: refused mount request from gateway.iro for /srv/work/tftp/distro/lenny (/srv/work/tftp/distro/lenny): illegal port 12817 \\
-
A: add in the /etc/exports the option insecure in the corresponding exporting line+
A: add in the /etc/exports the option **insecure** in the corresponding exporting line
  
 ===== LINKS ===== ===== LINKS =====
-  * This howto was mainly based on jukie.net/~bart work! Many thanks to Bart Trojanowski!+  * This howto was mainly based on [[http://www.jukie.net/~bart/blog/20070316092236|jukie.net/~bart]] work! Many thanks to Bart Trojanowski!
   * http://www.kernel.org/doc/   * http://www.kernel.org/doc/
   * http://www.linuxhq.com/kernel/   * http://www.linuxhq.com/kernel/
operating_systems/linux/debian/nfsboot.1345971633.txt.gz · Last modified: 2012/08/26 09:00 by sbolay